Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1290)

Unified Diff: Source/modules/mediastream/MediaStreamRegistry.cpp

Issue 16753003: Revert "Remove MediaStreamDescriptor and call/use WebMediaStream directly" (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/modules/mediastream/MediaStreamRegistry.h ('k') | Source/modules/mediastream/MediaStreamTrack.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/mediastream/MediaStreamRegistry.cpp
diff --git a/Source/modules/mediastream/MediaStreamRegistry.cpp b/Source/modules/mediastream/MediaStreamRegistry.cpp
index 3be64be14c7991b2ef7e37ee081fae0675fe1928..a51836890cc816ac5970fd505bf4248bd32d481c 100644
--- a/Source/modules/mediastream/MediaStreamRegistry.cpp
+++ b/Source/modules/mediastream/MediaStreamRegistry.cpp
@@ -43,19 +43,19 @@ void MediaStreamRegistry::registerURL(SecurityOrigin*, const KURL& url, URLRegis
{
ASSERT(&stream->registry() == this);
ASSERT(isMainThread());
- m_webMediaStreams.set(url.string(), static_cast<MediaStream*>(stream)->webStream());
+ m_streamDescriptors.set(url.string(), static_cast<MediaStream*>(stream)->descriptor());
}
void MediaStreamRegistry::unregisterURL(const KURL& url)
{
ASSERT(isMainThread());
- m_webMediaStreams.remove(url.string());
+ m_streamDescriptors.remove(url.string());
}
-WebKit::WebMediaStream MediaStreamRegistry::lookupWebMediaStream(const String& url)
+MediaStreamDescriptor* MediaStreamRegistry::lookupMediaStreamDescriptor(const String& url)
{
ASSERT(isMainThread());
- return m_webMediaStreams.get(url);
+ return m_streamDescriptors.get(url);
}
} // namespace WebCore
« no previous file with comments | « Source/modules/mediastream/MediaStreamRegistry.h ('k') | Source/modules/mediastream/MediaStreamTrack.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698