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

Unified Diff: content/renderer/render_view_impl.cc

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/render_view_impl.h ('k') | content/renderer/renderer_webkitplatformsupport_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_view_impl.cc
diff --git a/content/renderer/render_view_impl.cc b/content/renderer/render_view_impl.cc
index 308f0d6959afbde603dfff151fb8dc02d4b170b5..8e4731848d27c89503d2aa51a0dd5a71722defa6 100644
--- a/content/renderer/render_view_impl.cc
+++ b/content/renderer/render_view_impl.cc
@@ -839,14 +839,6 @@ RenderViewImpl* RenderViewImpl::Create(
accessibility_mode);
}
-WebPeerConnection00Handler* RenderViewImpl::CreatePeerConnectionHandlerJsep(
- WebPeerConnection00HandlerClient* client) {
- EnsureMediaStreamImpl();
- if (!media_stream_impl_)
- return NULL;
- return media_stream_impl_->CreatePeerConnectionHandlerJsep(client);
-}
-
void RenderViewImpl::AddObserver(RenderViewObserver* observer) {
observers_.AddObserver(observer);
}
@@ -3836,14 +3828,11 @@ void RenderViewImpl::EnsureMediaStreamImpl() {
media_stream_dispatcher_ = new MediaStreamDispatcher(this);
if (!media_stream_impl_) {
- MediaStreamDependencyFactory* factory = new MediaStreamDependencyFactory(
- RenderThreadImpl::current()->video_capture_impl_manager());
media_stream_impl_ = new MediaStreamImpl(
this,
media_stream_dispatcher_,
- RenderThreadImpl::current()->p2p_socket_dispatcher(),
RenderThreadImpl::current()->video_capture_impl_manager(),
- factory);
+ RenderThreadImpl::current()->GetMediaStreamDependencyFactory());
}
#endif
}
« no previous file with comments | « content/renderer/render_view_impl.h ('k') | content/renderer/renderer_webkitplatformsupport_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698