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

Unified Diff: content/renderer/media/media_stream_impl.cc

Issue 10917167: Refactor the P2PSocketDispatcher to be created on the RenderThread instead of the RenderView. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed nits 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/media_stream_impl.h ('k') | content/renderer/media/media_stream_impl_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/media/media_stream_impl.cc
diff --git a/content/renderer/media/media_stream_impl.cc b/content/renderer/media/media_stream_impl.cc
index 689c4d0b6183b6925a0e1123a772e3391d328db8..ee94acd70d4c2a649024dd04e7d930617e5d02fc 100644
--- a/content/renderer/media/media_stream_impl.cc
+++ b/content/renderer/media/media_stream_impl.cc
@@ -384,10 +384,6 @@ void MediaStreamImpl::FrameWillClose(WebKit::WebFrame* frame) {
}
}
-void MediaStreamImpl::OnSocketDispatcherDestroyed() {
- CleanupPeerConnectionFactory();
-}
-
void MediaStreamImpl::InitializeWorkerThread(talk_base::Thread** thread,
base::WaitableEvent* event) {
jingle_glue::JingleThreadWrapper::EnsureForCurrentMessageLoop();
@@ -442,7 +438,6 @@ bool MediaStreamImpl::EnsurePeerConnectionFactory() {
base::Unretained(this),
&event));
event.Wait();
- p2p_socket_dispatcher_->AddDestructionObserver(this);
}
if (!socket_factory_.get()) {
@@ -482,7 +477,6 @@ void MediaStreamImpl::CleanupPeerConnectionFactory() {
} else {
NOTREACHED() << "Worker thread not running.";
}
- p2p_socket_dispatcher_->RemoveDestructionObserver(this);
}
}
« no previous file with comments | « content/renderer/media/media_stream_impl.h ('k') | content/renderer/media/media_stream_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698