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

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

Issue 10919122: Move creation of PeerConnection from the RenderView to the RenderThreadImpl. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased to latest codec base. Created 8 years, 3 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_center.h
diff --git a/content/renderer/media/media_stream_center.h b/content/renderer/media/media_stream_center.h
index d24ba7558f7a6b3a5311b0e168fb7fdc61ce90fe..1b05a41e3b4bda261e8c8dc617e5ded18d5b7413 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*,
tommi (sloooow) - chröme 2012/09/12 13:10:24 missing variable name
perkj_chrome 2012/09/12 13:54:39 Added - but it is unused.
+ 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);
};

Powered by Google App Engine
This is Rietveld 408576698