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

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: #if defined(ENABLE_WEBRTC) in RendererWebKitPlatformSupportImpl::createPeerConnection00Handler to b… 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
« no previous file with comments | « content/content_tests.gypi ('k') | content/renderer/media/media_stream_center.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
};
« no previous file with comments | « content/content_tests.gypi ('k') | content/renderer/media/media_stream_center.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698