Changeset 124798 in webkit
- Timestamp:
- Aug 6, 2012 1:41:20 PM (12 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r124797 r124798 1 2012-08-06 Anna Cavender <annacc@chromium.org> 2 3 MediaSource should use it's own list of source URLs 4 https://bugs.webkit.org/show_bug.cgi?id=93285 5 6 Reviewed by Eric Carlson. 7 8 r124780 added MediaSource objects to PublicURLManager's streamURLs list, 9 piggy-backing on MEDIA_STREAM. This patch creates a sourceURLs list so 10 that MediaSource can stand on its own. 11 12 Test: builds on Andriod even when MEDIA_STREAM is disabled. 13 14 * html/DOMURL.cpp: 15 (WebCore::DOMURL::createObjectURL): 16 * html/PublicURLManager.h: 17 (WebCore::PublicURLManager::contextDestroyed): 18 (PublicURLManager): 19 (WebCore::PublicURLManager::sourceURLs): 20 1 21 2012-08-06 Nico Weber <thakis@chromium.org> 2 22 -
trunk/Source/WebCore/html/DOMURL.cpp
r124780 r124798 69 69 70 70 MediaSourceRegistry::registry().registerMediaSourceURL(publicURL, source); 71 scriptExecutionContext->publicURLManager().s treamURLs().add(publicURL.string());71 scriptExecutionContext->publicURLManager().sourceURLs().add(publicURL.string()); 72 72 73 73 return publicURL.string(); -
trunk/Source/WebCore/html/PublicURLManager.h
r107082 r124798 38 38 #endif 39 39 40 #if ENABLE(MEDIA_SOURCE) 41 #include "MediaSource.h" 42 #include "MediaSourceRegistry.h" 43 #endif 44 40 45 namespace WebCore { 41 46 … … 57 62 MediaStreamRegistry::registry().unregisterMediaStreamURL(KURL(ParsedURLString, *iter)); 58 63 #endif 64 #if ENABLE(MEDIA_SOURCE) 65 HashSet<String>::iterator sourceURLsEnd = m_sourceURLs.end(); 66 for (HashSet<String>::iterator iter = m_sourceURLs.begin(); iter != sourceURLsEnd; ++iter) 67 MediaSourceRegistry::registry().unregisterMediaSourceURL(KURL(ParsedURLString, *iter)); 68 #endif 59 69 } 60 70 … … 62 72 #if ENABLE(MEDIA_STREAM) 63 73 HashSet<String>& streamURLs() { return m_streamURLs; } 74 #endif 75 #if ENABLE(MEDIA_SOURCE) 76 HashSet<String>& sourceURLs() { return m_sourceURLs; } 64 77 #endif 65 78 … … 69 82 HashSet<String> m_streamURLs; 70 83 #endif 84 #if ENABLE(MEDIA_SOURCE) 85 HashSet<String> m_sourceURLs; 86 #endif 71 87 }; 72 88
Note: See TracChangeset
for help on using the changeset viewer.