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

Unified Diff: Source/WebCore/platform/mediastream/MediaStreamDescriptor.h

Issue 13844006: MediaStream API: Moving Add/Remove track from WebMediaStreamCenterClient to WebMediaStream (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased Created 7 years, 8 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
Index: Source/WebCore/platform/mediastream/MediaStreamDescriptor.h
diff --git a/Source/WebCore/platform/mediastream/MediaStreamDescriptor.h b/Source/WebCore/platform/mediastream/MediaStreamDescriptor.h
index 04d279e710b4a0e7e367019d917211958da31af6..73c7754741aeb29a398c7cab03f8907d9fe4c166 100644
--- a/Source/WebCore/platform/mediastream/MediaStreamDescriptor.h
+++ b/Source/WebCore/platform/mediastream/MediaStreamDescriptor.h
@@ -87,9 +87,21 @@ public:
void addVideoComponent(PassRefPtr<MediaStreamComponent> component) { m_videoComponents.append(component); }
void removeVideoComponent(MediaStreamComponent* component)
{
- size_t pos = m_audioComponents.find(component);
+ size_t pos = m_videoComponents.find(component);
if (pos != notFound)
- m_audioComponents.remove(pos);
+ m_videoComponents.remove(pos);
+ }
+
+ void addRemoteTrack(MediaStreamComponent* component)
+ {
+ if (m_client)
+ m_client->addRemoteTrack(component);
+ }
+
+ void removeRemoteTrack(MediaStreamComponent* component)
+ {
+ if (m_client)
+ m_client->removeRemoteTrack(component);
}
bool ended() const { return m_ended; }

Powered by Google App Engine
This is Rietveld 408576698