OLD | NEW |
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 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
128 #include "webkit/glue/resource_type.h" | 128 #include "webkit/glue/resource_type.h" |
129 #include "webkit/plugins/plugin_switches.h" | 129 #include "webkit/plugins/plugin_switches.h" |
130 | 130 |
131 #if defined(OS_WIN) | 131 #if defined(OS_WIN) |
132 #include "base/win/scoped_com_initializer.h" | 132 #include "base/win/scoped_com_initializer.h" |
133 #include "content/common/font_cache_dispatcher_win.h" | 133 #include "content/common/font_cache_dispatcher_win.h" |
134 #include "content/common/sandbox_win.h" | 134 #include "content/common/sandbox_win.h" |
135 #include "content/public/common/sandboxed_process_launcher_delegate.h" | 135 #include "content/public/common/sandboxed_process_launcher_delegate.h" |
136 #endif | 136 #endif |
137 | 137 |
138 #if defined(ENABLE_WEBRTC) | |
139 #include "content/browser/renderer_host/media/webrtc_logging_handler_host.h" | |
140 #endif | |
141 | |
142 #include "third_party/skia/include/core/SkBitmap.h" | 138 #include "third_party/skia/include/core/SkBitmap.h" |
143 | 139 |
144 extern bool g_exited_main_message_loop; | 140 extern bool g_exited_main_message_loop; |
145 | 141 |
146 static const char* kSiteProcessMapKeyName = "content_site_process_map"; | 142 static const char* kSiteProcessMapKeyName = "content_site_process_map"; |
147 | 143 |
148 namespace content { | 144 namespace content { |
149 namespace { | 145 namespace { |
150 | 146 |
151 base::MessageLoop* g_in_process_thread; | 147 base::MessageLoop* g_in_process_thread; |
(...skipping 536 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
688 channel_->AddFilter(new ResolveProxyMsgHelper( | 684 channel_->AddFilter(new ResolveProxyMsgHelper( |
689 browser_context->GetRequestContextForRenderProcess(GetID()))); | 685 browser_context->GetRequestContextForRenderProcess(GetID()))); |
690 channel_->AddFilter(new QuotaDispatcherHost( | 686 channel_->AddFilter(new QuotaDispatcherHost( |
691 GetID(), | 687 GetID(), |
692 storage_partition_impl_->GetQuotaManager(), | 688 storage_partition_impl_->GetQuotaManager(), |
693 GetContentClient()->browser()->CreateQuotaPermissionContext())); | 689 GetContentClient()->browser()->CreateQuotaPermissionContext())); |
694 channel_->AddFilter(new GamepadBrowserMessageFilter()); | 690 channel_->AddFilter(new GamepadBrowserMessageFilter()); |
695 channel_->AddFilter(new ProfilerMessageFilter(PROCESS_TYPE_RENDERER)); | 691 channel_->AddFilter(new ProfilerMessageFilter(PROCESS_TYPE_RENDERER)); |
696 channel_->AddFilter(new HistogramMessageFilter()); | 692 channel_->AddFilter(new HistogramMessageFilter()); |
697 channel_->AddFilter(new HyphenatorMessageFilter(this)); | 693 channel_->AddFilter(new HyphenatorMessageFilter(this)); |
698 #if defined(ENABLE_WEBRTC) | |
699 channel_->AddFilter(new WebRtcLoggingHandlerHost()); | |
700 #endif | |
701 #if defined(USE_TCMALLOC) && (defined(OS_LINUX) || defined(OS_ANDROID)) | 694 #if defined(USE_TCMALLOC) && (defined(OS_LINUX) || defined(OS_ANDROID)) |
702 if (CommandLine::ForCurrentProcess()->HasSwitch( | 695 if (CommandLine::ForCurrentProcess()->HasSwitch( |
703 switches::kEnableMemoryBenchmarking)) | 696 switches::kEnableMemoryBenchmarking)) |
704 channel_->AddFilter(new MemoryBenchmarkMessageFilter()); | 697 channel_->AddFilter(new MemoryBenchmarkMessageFilter()); |
705 #endif | 698 #endif |
706 } | 699 } |
707 | 700 |
708 int RenderProcessHostImpl::GetNextRoutingID() { | 701 int RenderProcessHostImpl::GetNextRoutingID() { |
709 return widget_helper_->GetNextRoutingID(); | 702 return widget_helper_->GetNextRoutingID(); |
710 } | 703 } |
(...skipping 1062 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1773 TRACE_EVENT0("renderer_host", | 1766 TRACE_EVENT0("renderer_host", |
1774 "RenderWidgetHostImpl::OnCompositorSurfaceBuffersSwappedNoHost"); | 1767 "RenderWidgetHostImpl::OnCompositorSurfaceBuffersSwappedNoHost"); |
1775 AcceleratedSurfaceMsg_BufferPresented_Params ack_params; | 1768 AcceleratedSurfaceMsg_BufferPresented_Params ack_params; |
1776 ack_params.sync_point = 0; | 1769 ack_params.sync_point = 0; |
1777 RenderWidgetHostImpl::AcknowledgeBufferPresent(params.route_id, | 1770 RenderWidgetHostImpl::AcknowledgeBufferPresent(params.route_id, |
1778 params.gpu_process_host_id, | 1771 params.gpu_process_host_id, |
1779 ack_params); | 1772 ack_params); |
1780 } | 1773 } |
1781 | 1774 |
1782 } // namespace content | 1775 } // namespace content |
OLD | NEW |