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

Unified Diff: content/renderer/media/media_stream_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: Fixed UMA_HISTOGRAM_ENUMERATION and cleaned up. 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_impl.cc
diff --git a/content/renderer/media/media_stream_impl.cc b/content/renderer/media/media_stream_impl.cc
index c794f05bd4380adef63045076e1a407356d5c527..089fdc2b87cb17ca43cd0df2b55afe6c3e8587a4 100644
--- a/content/renderer/media/media_stream_impl.cc
+++ b/content/renderer/media/media_stream_impl.cc
@@ -93,23 +93,6 @@ MediaStreamImpl::~MediaStreamImpl() {
CleanupPeerConnectionFactory();
}
-WebKit::WebPeerConnection00Handler*
-MediaStreamImpl::CreatePeerConnectionHandlerJsep(
- WebKit::WebPeerConnection00HandlerClient* client) {
- // Save histogram data so we can see how much PeerConnetion is used.
- // The histogram counts the number of calls to the JS API
- // webKitPeerConnection00.
- UpdateWebRTCMethodCount(kWebkitPeerConnection);
- DCHECK(CalledOnValidThread());
- if (!EnsurePeerConnectionFactory())
- return NULL;
-
- PeerConnectionHandlerJsep* pc_handler = new PeerConnectionHandlerJsep(
- client,
- dependency_factory_.get());
- return pc_handler;
-}
-
void MediaStreamImpl::StopLocalMediaStream(
const WebKit::WebMediaStreamDescriptor& stream) {
DVLOG(1) << "MediaStreamImpl::StopLocalMediaStream";
@@ -446,7 +429,7 @@ bool MediaStreamImpl::EnsurePeerConnectionFactory() {
}
void MediaStreamImpl::CleanupPeerConnectionFactory() {
- if (dependency_factory_.get())
+ if (dependency_factory_)
dependency_factory_->ReleasePeerConnectionFactory();
piman 2012/09/06 17:04:45 Should this logic move to RenderThreadImpl? IIUC y
perkj_chrome 2012/09/12 13:54:38 This have not moved to the dependency factory and
if (network_manager_) {
// The network manager needs to free its resources on the thread they were

Powered by Google App Engine
This is Rietveld 408576698