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

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: Use pointer value as ID. 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 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 144
145 #if defined(OS_WIN) 145 #if defined(OS_WIN)
146 #include "base/win/scoped_com_initializer.h" 146 #include "base/win/scoped_com_initializer.h"
147 #include "content/common/font_cache_dispatcher_win.h" 147 #include "content/common/font_cache_dispatcher_win.h"
148 #include "content/common/sandbox_win.h" 148 #include "content/common/sandbox_win.h"
149 #include "content/public/common/sandboxed_process_launcher_delegate.h" 149 #include "content/public/common/sandboxed_process_launcher_delegate.h"
150 #endif 150 #endif
151 151
152 #if defined(ENABLE_WEBRTC) 152 #if defined(ENABLE_WEBRTC)
153 #include "content/browser/media/webrtc_internals.h" 153 #include "content/browser/media/webrtc_internals.h"
154 #include "content/browser/renderer_host/media/media_stream_track_metrics_host.h"
154 #include "content/browser/renderer_host/media/webrtc_identity_service_host.h" 155 #include "content/browser/renderer_host/media/webrtc_identity_service_host.h"
155 #include "content/common/media/media_stream_messages.h" 156 #include "content/common/media/media_stream_messages.h"
156 #endif 157 #endif
157 158
158 #include "third_party/skia/include/core/SkBitmap.h" 159 #include "third_party/skia/include/core/SkBitmap.h"
159 160
160 extern bool g_exited_main_message_loop; 161 extern bool g_exited_main_message_loop;
161 162
162 static const char* kSiteProcessMapKeyName = "content_site_process_map"; 163 static const char* kSiteProcessMapKeyName = "content_site_process_map";
163 164
(...skipping 532 matching lines...) Expand 10 before | Expand all | Expand 10 after
696 AddFilter(new WebRTCIdentityServiceHost( 697 AddFilter(new WebRTCIdentityServiceHost(
697 GetID(), storage_partition_impl_->GetWebRTCIdentityStore())); 698 GetID(), storage_partition_impl_->GetWebRTCIdentityStore()));
698 peer_connection_tracker_host_ = new PeerConnectionTrackerHost(GetID()); 699 peer_connection_tracker_host_ = new PeerConnectionTrackerHost(GetID());
699 AddFilter(peer_connection_tracker_host_.get()); 700 AddFilter(peer_connection_tracker_host_.get());
700 AddFilter(new MediaStreamDispatcherHost( 701 AddFilter(new MediaStreamDispatcherHost(
701 GetID(), 702 GetID(),
702 browser_context->GetResourceContext()->GetMediaDeviceIDSalt(), 703 browser_context->GetResourceContext()->GetMediaDeviceIDSalt(),
703 media_stream_manager)); 704 media_stream_manager));
704 AddFilter( 705 AddFilter(
705 new DeviceRequestMessageFilter(resource_context, media_stream_manager)); 706 new DeviceRequestMessageFilter(resource_context, media_stream_manager));
707 AddFilter(new MediaStreamTrackMetricsHost(this));
706 #endif 708 #endif
707 #if defined(ENABLE_PLUGINS) 709 #if defined(ENABLE_PLUGINS)
708 AddFilter(new PepperRendererConnection(GetID())); 710 AddFilter(new PepperRendererConnection(GetID()));
709 #endif 711 #endif
710 #if defined(ENABLE_INPUT_SPEECH) 712 #if defined(ENABLE_INPUT_SPEECH)
711 AddFilter(new InputTagSpeechDispatcherHost( 713 AddFilter(new InputTagSpeechDispatcherHost(
712 IsGuest(), GetID(), storage_partition_impl_->GetURLRequestContext())); 714 IsGuest(), GetID(), storage_partition_impl_->GetURLRequestContext()));
713 #endif 715 #endif
714 AddFilter(new SpeechRecognitionDispatcherHost( 716 AddFilter(new SpeechRecognitionDispatcherHost(
715 IsGuest(), GetID(), storage_partition_impl_->GetURLRequestContext())); 717 IsGuest(), GetID(), storage_partition_impl_->GetURLRequestContext()));
(...skipping 1361 matching lines...) Expand 10 before | Expand all | Expand 10 after
2077 return; 2079 return;
2078 Send(new MediaStreamMsg_EnableAecDump(file_for_transit)); 2080 Send(new MediaStreamMsg_EnableAecDump(file_for_transit));
2079 } 2081 }
2080 2082
2081 void RenderProcessHostImpl::SendDisableAecDumpToRenderer() { 2083 void RenderProcessHostImpl::SendDisableAecDumpToRenderer() {
2082 Send(new MediaStreamMsg_DisableAecDump()); 2084 Send(new MediaStreamMsg_DisableAecDump());
2083 } 2085 }
2084 #endif 2086 #endif
2085 2087
2086 } // namespace content 2088 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698