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

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

Issue 15741003: Moving WebRTC logging related files from content to chrome. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 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 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 #include "webkit/glue/resource_type.h" 127 #include "webkit/glue/resource_type.h"
128 #include "webkit/plugins/plugin_switches.h" 128 #include "webkit/plugins/plugin_switches.h"
129 129
130 #if defined(OS_WIN) 130 #if defined(OS_WIN)
131 #include "base/win/scoped_com_initializer.h" 131 #include "base/win/scoped_com_initializer.h"
132 #include "content/common/font_cache_dispatcher_win.h" 132 #include "content/common/font_cache_dispatcher_win.h"
133 #include "content/common/sandbox_win.h" 133 #include "content/common/sandbox_win.h"
134 #include "content/public/common/sandboxed_process_launcher_delegate.h" 134 #include "content/public/common/sandboxed_process_launcher_delegate.h"
135 #endif 135 #endif
136 136
137 #if defined(ENABLE_WEBRTC)
138 #include "content/browser/renderer_host/media/webrtc_logging_handler_host.h"
139 #endif
140
141 #include "third_party/skia/include/core/SkBitmap.h" 137 #include "third_party/skia/include/core/SkBitmap.h"
142 138
143 extern bool g_exited_main_message_loop; 139 extern bool g_exited_main_message_loop;
144 140
145 static const char* kSiteProcessMapKeyName = "content_site_process_map"; 141 static const char* kSiteProcessMapKeyName = "content_site_process_map";
146 142
147 namespace content { 143 namespace content {
148 namespace { 144 namespace {
149 145
150 base::MessageLoop* g_in_process_thread; 146 base::MessageLoop* g_in_process_thread;
(...skipping 536 matching lines...) Expand 10 before | Expand all | Expand 10 after
687 channel_->AddFilter(new ResolveProxyMsgHelper( 683 channel_->AddFilter(new ResolveProxyMsgHelper(
688 browser_context->GetRequestContextForRenderProcess(GetID()))); 684 browser_context->GetRequestContextForRenderProcess(GetID())));
689 channel_->AddFilter(new QuotaDispatcherHost( 685 channel_->AddFilter(new QuotaDispatcherHost(
690 GetID(), 686 GetID(),
691 storage_partition_impl_->GetQuotaManager(), 687 storage_partition_impl_->GetQuotaManager(),
692 GetContentClient()->browser()->CreateQuotaPermissionContext())); 688 GetContentClient()->browser()->CreateQuotaPermissionContext()));
693 channel_->AddFilter(new GamepadBrowserMessageFilter()); 689 channel_->AddFilter(new GamepadBrowserMessageFilter());
694 channel_->AddFilter(new ProfilerMessageFilter(PROCESS_TYPE_RENDERER)); 690 channel_->AddFilter(new ProfilerMessageFilter(PROCESS_TYPE_RENDERER));
695 channel_->AddFilter(new HistogramMessageFilter()); 691 channel_->AddFilter(new HistogramMessageFilter());
696 channel_->AddFilter(new HyphenatorMessageFilter(this)); 692 channel_->AddFilter(new HyphenatorMessageFilter(this));
697 #if defined(ENABLE_WEBRTC)
698 channel_->AddFilter(new WebRtcLoggingHandlerHost());
699 #endif
700 } 693 }
701 694
702 int RenderProcessHostImpl::GetNextRoutingID() { 695 int RenderProcessHostImpl::GetNextRoutingID() {
703 return widget_helper_->GetNextRoutingID(); 696 return widget_helper_->GetNextRoutingID();
704 } 697 }
705 698
706 void RenderProcessHostImpl::SimulateSwapOutACK( 699 void RenderProcessHostImpl::SimulateSwapOutACK(
707 const ViewMsg_SwapOut_Params& params) { 700 const ViewMsg_SwapOut_Params& params) {
708 widget_helper_->SimulateSwapOutACK(params); 701 widget_helper_->SimulateSwapOutACK(params);
709 } 702 }
(...skipping 1046 matching lines...) Expand 10 before | Expand all | Expand 10 after
1756 TRACE_EVENT0("renderer_host", 1749 TRACE_EVENT0("renderer_host",
1757 "RenderWidgetHostImpl::OnCompositorSurfaceBuffersSwappedNoHost"); 1750 "RenderWidgetHostImpl::OnCompositorSurfaceBuffersSwappedNoHost");
1758 AcceleratedSurfaceMsg_BufferPresented_Params ack_params; 1751 AcceleratedSurfaceMsg_BufferPresented_Params ack_params;
1759 ack_params.sync_point = 0; 1752 ack_params.sync_point = 0;
1760 RenderWidgetHostImpl::AcknowledgeBufferPresent(route_id, 1753 RenderWidgetHostImpl::AcknowledgeBufferPresent(route_id,
1761 gpu_process_host_id, 1754 gpu_process_host_id,
1762 ack_params); 1755 ack_params);
1763 } 1756 }
1764 1757
1765 } // namespace content 1758 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698