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

Unified Diff: content/renderer/media/media_stream_impl.h

Issue 9309078: Adding a skeleton MediaStreamCenter. (Closed)
Patch Set: Fixed review comments Created 8 years, 10 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: content/renderer/media/media_stream_impl.h
diff --git a/content/renderer/media/media_stream_impl.h b/content/renderer/media/media_stream_impl.h
index 503c510b12659c43c84580402d10476ea3f617fb..38182a6bf43e56ec8b3e2ffb4c8be8fbba3b977b 100644
--- a/content/renderer/media/media_stream_impl.h
+++ b/content/renderer/media/media_stream_impl.h
@@ -41,10 +41,16 @@ class Thread;
}
namespace WebKit {
+class WebMediaStreamCenter;
+class WebMediaStreamCenterClient;
class WebPeerConnectionHandler;
class WebPeerConnectionHandlerClient;
}
+namespace content {
+class MediaStreamCenter;
+}
+
class MediaStreamDispatcher;
class MediaStreamDependencyFactory;
class PeerConnectionHandler;
@@ -72,6 +78,8 @@ class CONTENT_EXPORT MediaStreamImpl
virtual WebKit::WebPeerConnectionHandler* CreatePeerConnectionHandler(
WebKit::WebPeerConnectionHandlerClient* client);
+ virtual WebKit::WebMediaStreamCenter* CreateMediaStreamCenter(
+ WebKit::WebMediaStreamCenterClient* client);
virtual void ClosePeerConnection();
virtual webrtc::MediaStreamTrackInterface* GetLocalMediaStreamTrack(
const std::string& label);
@@ -158,6 +166,10 @@ class CONTENT_EXPORT MediaStreamImpl
// TODO(grunell): Support several PeerConnectionsHandlers.
PeerConnectionHandler* peer_connection_handler_;
+ // media_stream_center_ is a raw pointer, owned by WebKit. It's valid for
+ // the lifetime of RenderView.
+ content::MediaStreamCenter* media_stream_center_;
+
// We keep a list of the generated local tracks, so that we can add capture
// devices when generated and also use them for recording.
typedef talk_base::scoped_refptr<webrtc::MediaStreamTrackInterface>

Powered by Google App Engine
This is Rietveld 408576698