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

Side by Side Diff: content/browser/renderer_host/render_process_host_impl.cc

Issue 183973021: Add metrics to track the duration of tracks received over a PeerConnection. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge to LKGR. Created 6 years, 9 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Represents the browser side of the browser <--> renderer communication 5 // Represents the browser side of the browser <--> renderer communication
6 // channel. There will be one RenderProcessHost per renderer process. 6 // channel. There will be one RenderProcessHost per renderer process.
7 7
8 #include "content/browser/renderer_host/render_process_host_impl.h" 8 #include "content/browser/renderer_host/render_process_host_impl.h"
9 9
10 #include <algorithm> 10 #include <algorithm>
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 146
147 #if defined(OS_WIN) 147 #if defined(OS_WIN)
148 #include "base/win/scoped_com_initializer.h" 148 #include "base/win/scoped_com_initializer.h"
149 #include "content/common/font_cache_dispatcher_win.h" 149 #include "content/common/font_cache_dispatcher_win.h"
150 #include "content/common/sandbox_win.h" 150 #include "content/common/sandbox_win.h"
151 #include "content/public/common/sandboxed_process_launcher_delegate.h" 151 #include "content/public/common/sandboxed_process_launcher_delegate.h"
152 #endif 152 #endif
153 153
154 #if defined(ENABLE_WEBRTC) 154 #if defined(ENABLE_WEBRTC)
155 #include "content/browser/media/webrtc_internals.h" 155 #include "content/browser/media/webrtc_internals.h"
156 #include "content/browser/renderer_host/media/media_stream_track_metrics_host.h"
156 #include "content/browser/renderer_host/media/webrtc_identity_service_host.h" 157 #include "content/browser/renderer_host/media/webrtc_identity_service_host.h"
157 #include "content/common/media/media_stream_messages.h" 158 #include "content/common/media/media_stream_messages.h"
158 #endif 159 #endif
159 160
160 #include "third_party/skia/include/core/SkBitmap.h" 161 #include "third_party/skia/include/core/SkBitmap.h"
161 162
162 extern bool g_exited_main_message_loop; 163 extern bool g_exited_main_message_loop;
163 164
164 static const char* kSiteProcessMapKeyName = "content_site_process_map"; 165 static const char* kSiteProcessMapKeyName = "content_site_process_map";
165 166
(...skipping 534 matching lines...) Expand 10 before | Expand all | Expand 10 after
700 AddFilter(new WebRTCIdentityServiceHost( 701 AddFilter(new WebRTCIdentityServiceHost(
701 GetID(), storage_partition_impl_->GetWebRTCIdentityStore())); 702 GetID(), storage_partition_impl_->GetWebRTCIdentityStore()));
702 peer_connection_tracker_host_ = new PeerConnectionTrackerHost(GetID()); 703 peer_connection_tracker_host_ = new PeerConnectionTrackerHost(GetID());
703 AddFilter(peer_connection_tracker_host_.get()); 704 AddFilter(peer_connection_tracker_host_.get());
704 AddFilter(new MediaStreamDispatcherHost( 705 AddFilter(new MediaStreamDispatcherHost(
705 GetID(), 706 GetID(),
706 browser_context->GetResourceContext()->GetMediaDeviceIDSalt(), 707 browser_context->GetResourceContext()->GetMediaDeviceIDSalt(),
707 media_stream_manager)); 708 media_stream_manager));
708 AddFilter( 709 AddFilter(
709 new DeviceRequestMessageFilter(resource_context, media_stream_manager)); 710 new DeviceRequestMessageFilter(resource_context, media_stream_manager));
711 AddFilter(new MediaStreamTrackMetricsHost());
710 #endif 712 #endif
711 #if defined(ENABLE_PLUGINS) 713 #if defined(ENABLE_PLUGINS)
712 AddFilter(new PepperRendererConnection(GetID())); 714 AddFilter(new PepperRendererConnection(GetID()));
713 #endif 715 #endif
714 #if defined(ENABLE_INPUT_SPEECH) 716 #if defined(ENABLE_INPUT_SPEECH)
715 AddFilter(new InputTagSpeechDispatcherHost( 717 AddFilter(new InputTagSpeechDispatcherHost(
716 IsGuest(), GetID(), storage_partition_impl_->GetURLRequestContext())); 718 IsGuest(), GetID(), storage_partition_impl_->GetURLRequestContext()));
717 #endif 719 #endif
718 AddFilter(new SpeechRecognitionDispatcherHost( 720 AddFilter(new SpeechRecognitionDispatcherHost(
719 IsGuest(), GetID(), storage_partition_impl_->GetURLRequestContext())); 721 IsGuest(), GetID(), storage_partition_impl_->GetURLRequestContext()));
(...skipping 1392 matching lines...) Expand 10 before | Expand all | Expand 10 after
2112 2114
2113 void RenderProcessHostImpl::DecrementWorkerRefCount() { 2115 void RenderProcessHostImpl::DecrementWorkerRefCount() {
2114 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); 2116 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
2115 DCHECK_GT(worker_ref_count_, 0); 2117 DCHECK_GT(worker_ref_count_, 0);
2116 --worker_ref_count_; 2118 --worker_ref_count_;
2117 if (worker_ref_count_ == 0) 2119 if (worker_ref_count_ == 0)
2118 Cleanup(); 2120 Cleanup();
2119 } 2121 }
2120 2122
2121 } // namespace content 2123 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/renderer_host/media/media_stream_track_metrics_host.cc ('k') | content/common/content_message_generator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698