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..66801b8f2b525d3d5af09e6dfafebbb21399ffe9 100644 |
--- a/content/renderer/media/media_stream_impl.h |
+++ b/content/renderer/media/media_stream_impl.h |
@@ -41,10 +41,13 @@ class Thread; |
} |
namespace WebKit { |
+class WebMediaStreamCenter; |
+class WebMediaStreamCenterClient; |
class WebPeerConnectionHandler; |
class WebPeerConnectionHandlerClient; |
} |
+class MediaStreamCenter; |
class MediaStreamDispatcher; |
class MediaStreamDependencyFactory; |
class PeerConnectionHandler; |
@@ -72,6 +75,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 +163,10 @@ class CONTENT_EXPORT MediaStreamImpl |
// TODO(grunell): Support several PeerConnectionsHandlers. |
PeerConnectionHandler* peer_connection_handler_; |
+ // media_stream_center_ is a weak reference, owned by WebKit. It's valid for |
piman
2012/02/08 01:52:24
"weak reference" suggests base::WeakPtr, which thi
tommyw
2012/02/08 13:14:18
Done.
|
+ // the lifetime of RenderView. |
+ 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> |