Changeset 124798 in webkit


Ignore:
Timestamp:
Aug 6, 2012 1:41:20 PM (12 years ago)
Author:
annacc@chromium.org
Message:

MediaSource should use it's own list of source URLs
https://bugs.webkit.org/show_bug.cgi?id=93285

Reviewed by Eric Carlson.

r124780 added MediaSource objects to PublicURLManager's streamURLs list,
piggy-backing on MEDIA_STREAM. This patch creates a sourceURLs list so
that MediaSource can stand on its own.

Test: builds on Andriod even when MEDIA_STREAM is disabled.

  • html/DOMURL.cpp:

(WebCore::DOMURL::createObjectURL):

  • html/PublicURLManager.h:

(WebCore::PublicURLManager::contextDestroyed):
(PublicURLManager):
(WebCore::PublicURLManager::sourceURLs):

Location:
trunk/Source/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r124797 r124798  
     12012-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
    1212012-08-06  Nico Weber  <thakis@chromium.org>
    222
  • trunk/Source/WebCore/html/DOMURL.cpp

    r124780 r124798  
    6969
    7070    MediaSourceRegistry::registry().registerMediaSourceURL(publicURL, source);
    71     scriptExecutionContext->publicURLManager().streamURLs().add(publicURL.string());
     71    scriptExecutionContext->publicURLManager().sourceURLs().add(publicURL.string());
    7272
    7373    return publicURL.string();
  • trunk/Source/WebCore/html/PublicURLManager.h

    r107082 r124798  
    3838#endif
    3939
     40#if ENABLE(MEDIA_SOURCE)
     41#include "MediaSource.h"
     42#include "MediaSourceRegistry.h"
     43#endif
     44
    4045namespace WebCore {
    4146
     
    5762            MediaStreamRegistry::registry().unregisterMediaStreamURL(KURL(ParsedURLString, *iter));
    5863#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
    5969    }
    6070
     
    6272#if ENABLE(MEDIA_STREAM)
    6373    HashSet<String>& streamURLs() { return m_streamURLs; }
     74#endif
     75#if ENABLE(MEDIA_SOURCE)
     76    HashSet<String>& sourceURLs() { return m_sourceURLs; }
    6477#endif
    6578
     
    6982    HashSet<String> m_streamURLs;
    7083#endif
     84#if ENABLE(MEDIA_SOURCE)
     85    HashSet<String> m_sourceURLs;
     86#endif
    7187};
    7288
Note: See TracChangeset for help on using the changeset viewer.