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

Unified Diff: content/renderer/render_thread_impl.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/renderer/media/webrtc_uma_histograms.h ('k') | content/renderer/render_thread_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_thread_impl.h
diff --git a/content/renderer/render_thread_impl.h b/content/renderer/render_thread_impl.h
index 77773a1d36e17985b47d564bdcb1e4757973d4fa..d8f379866084d100a31d18ab135383308358fce5 100644
--- a/content/renderer/render_thread_impl.h
+++ b/content/renderer/render_thread_impl.h
@@ -32,6 +32,7 @@ class DevToolsAgentFilter;
class DomStorageDispatcher;
class GpuChannelHost;
class IndexedDBDispatcher;
+class MediaStreamDependencyFactory;
class RendererWebKitPlatformSupportImpl;
class SkBitmap;
class VideoCaptureImplManager;
@@ -201,11 +202,16 @@ class CONTENT_EXPORT RenderThreadImpl : public content::RenderThread,
return audio_message_filter_.get();
}
+
+
// Creates the embedder implementation of WebMediaStreamCenter.
// The resulting object is owned by WebKit and deleted by WebKit at tear-down.
WebKit::WebMediaStreamCenter* CreateMediaStreamCenter(
WebKit::WebMediaStreamCenterClient* client);
+ // Returns a factory used for creating RTC PeerConnection objects.
+ MediaStreamDependencyFactory* GetMediaStreamDependencyFactory();
+
// Current P2PSocketDispatcher. Set to NULL if P2P API is disabled.
content::P2PSocketDispatcher* p2p_socket_dispatcher() {
return p2p_socket_dispatcher_.get();
@@ -323,6 +329,8 @@ class CONTENT_EXPORT RenderThreadImpl : public content::RenderThread,
scoped_refptr<AudioMessageFilter> audio_message_filter_;
scoped_refptr<DevToolsAgentFilter> devtools_agent_message_filter_;
+ scoped_ptr<MediaStreamDependencyFactory> media_stream_factory_;
+
// Dispatches all P2P sockets.
scoped_refptr<content::P2PSocketDispatcher> p2p_socket_dispatcher_;
« no previous file with comments | « content/renderer/media/webrtc_uma_histograms.h ('k') | content/renderer/render_thread_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698