Index: content/renderer/media/media_stream_center.h |
diff --git a/content/renderer/media/media_stream_center.h b/content/renderer/media/media_stream_center.h |
index d24ba7558f7a6b3a5311b0e168fb7fdc61ce90fe..c10080efd045971c34f45e2f9a8e95f3291f2cd9 100644 |
--- a/content/renderer/media/media_stream_center.h |
+++ b/content/renderer/media/media_stream_center.h |
@@ -14,12 +14,15 @@ namespace WebKit { |
class WebMediaStreamCenterClient; |
} |
+class MediaStreamDependencyFactory; |
+ |
namespace content { |
class CONTENT_EXPORT MediaStreamCenter |
: NON_EXPORTED_BASE(public WebKit::WebMediaStreamCenter) { |
public: |
- explicit MediaStreamCenter(WebKit::WebMediaStreamCenterClient*); |
+ MediaStreamCenter(WebKit::WebMediaStreamCenterClient* client, |
+ MediaStreamDependencyFactory* factory); |
virtual void queryMediaStreamSources( |
const WebKit::WebMediaStreamSourcesRequest& request) OVERRIDE; |
@@ -45,6 +48,10 @@ class CONTENT_EXPORT MediaStreamCenter |
const WebKit::WebSessionDescriptionDescriptor& description) OVERRIDE; |
private: |
+ // |rtc_factory_| is a weak pointer and is owned by the RenderThreadImpl. |
+ // It is valid as long as RenderThreadImpl exist. |
+ MediaStreamDependencyFactory* rtc_factory_; |
+ |
DISALLOW_COPY_AND_ASSIGN(MediaStreamCenter); |
}; |