| 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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 #include "content/browser/renderer_host/database_message_filter.h" | 68 #include "content/browser/renderer_host/database_message_filter.h" |
| 69 #include "content/browser/renderer_host/file_utilities_message_filter.h" | 69 #include "content/browser/renderer_host/file_utilities_message_filter.h" |
| 70 #include "content/browser/renderer_host/gamepad_browser_message_filter.h" | 70 #include "content/browser/renderer_host/gamepad_browser_message_filter.h" |
| 71 #include "content/browser/renderer_host/gpu_message_filter.h" | 71 #include "content/browser/renderer_host/gpu_message_filter.h" |
| 72 #include "content/browser/renderer_host/media/audio_input_renderer_host.h" | 72 #include "content/browser/renderer_host/media/audio_input_renderer_host.h" |
| 73 #include "content/browser/renderer_host/media/audio_mirroring_manager.h" | 73 #include "content/browser/renderer_host/media/audio_mirroring_manager.h" |
| 74 #include "content/browser/renderer_host/media/audio_renderer_host.h" | 74 #include "content/browser/renderer_host/media/audio_renderer_host.h" |
| 75 #include "content/browser/renderer_host/media/media_stream_dispatcher_host.h" | 75 #include "content/browser/renderer_host/media/media_stream_dispatcher_host.h" |
| 76 #include "content/browser/renderer_host/media/peer_connection_tracker_host.h" | 76 #include "content/browser/renderer_host/media/peer_connection_tracker_host.h" |
| 77 #include "content/browser/renderer_host/media/video_capture_host.h" | 77 #include "content/browser/renderer_host/media/video_capture_host.h" |
| 78 #include "content/browser/renderer_host/memory_benchmark_message_filter.h" |
| 78 #include "content/browser/renderer_host/p2p/socket_dispatcher_host.h" | 79 #include "content/browser/renderer_host/p2p/socket_dispatcher_host.h" |
| 79 #include "content/browser/renderer_host/pepper/pepper_message_filter.h" | 80 #include "content/browser/renderer_host/pepper/pepper_message_filter.h" |
| 80 #include "content/browser/renderer_host/quota_dispatcher_host.h" | 81 #include "content/browser/renderer_host/quota_dispatcher_host.h" |
| 81 #include "content/browser/renderer_host/render_message_filter.h" | 82 #include "content/browser/renderer_host/render_message_filter.h" |
| 82 #include "content/browser/renderer_host/render_view_host_delegate.h" | 83 #include "content/browser/renderer_host/render_view_host_delegate.h" |
| 83 #include "content/browser/renderer_host/render_view_host_impl.h" | 84 #include "content/browser/renderer_host/render_view_host_impl.h" |
| 84 #include "content/browser/renderer_host/render_widget_helper.h" | 85 #include "content/browser/renderer_host/render_widget_helper.h" |
| 85 #include "content/browser/renderer_host/socket_stream_dispatcher_host.h" | 86 #include "content/browser/renderer_host/socket_stream_dispatcher_host.h" |
| 86 #include "content/browser/renderer_host/text_input_client_message_filter.h" | 87 #include "content/browser/renderer_host/text_input_client_message_filter.h" |
| 87 #include "content/browser/resolve_proxy_msg_helper.h" | 88 #include "content/browser/resolve_proxy_msg_helper.h" |
| (...skipping 602 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 690 GetID(), | 691 GetID(), |
| 691 storage_partition_impl_->GetQuotaManager(), | 692 storage_partition_impl_->GetQuotaManager(), |
| 692 GetContentClient()->browser()->CreateQuotaPermissionContext())); | 693 GetContentClient()->browser()->CreateQuotaPermissionContext())); |
| 693 channel_->AddFilter(new GamepadBrowserMessageFilter()); | 694 channel_->AddFilter(new GamepadBrowserMessageFilter()); |
| 694 channel_->AddFilter(new ProfilerMessageFilter(PROCESS_TYPE_RENDERER)); | 695 channel_->AddFilter(new ProfilerMessageFilter(PROCESS_TYPE_RENDERER)); |
| 695 channel_->AddFilter(new HistogramMessageFilter()); | 696 channel_->AddFilter(new HistogramMessageFilter()); |
| 696 channel_->AddFilter(new HyphenatorMessageFilter(this)); | 697 channel_->AddFilter(new HyphenatorMessageFilter(this)); |
| 697 #if defined(ENABLE_WEBRTC) | 698 #if defined(ENABLE_WEBRTC) |
| 698 channel_->AddFilter(new WebRtcLoggingHandlerHost()); | 699 channel_->AddFilter(new WebRtcLoggingHandlerHost()); |
| 699 #endif | 700 #endif |
| 701 #if defined(USE_TCMALLOC) && (defined(OS_LINUX) || defined(OS_ANDROID)) |
| 702 if (CommandLine::ForCurrentProcess()->HasSwitch( |
| 703 switches::kEnableMemoryBenchmarking)) |
| 704 channel_->AddFilter(new MemoryBenchmarkMessageFilter()); |
| 705 #endif |
| 700 } | 706 } |
| 701 | 707 |
| 702 int RenderProcessHostImpl::GetNextRoutingID() { | 708 int RenderProcessHostImpl::GetNextRoutingID() { |
| 703 return widget_helper_->GetNextRoutingID(); | 709 return widget_helper_->GetNextRoutingID(); |
| 704 } | 710 } |
| 705 | 711 |
| 706 void RenderProcessHostImpl::SimulateSwapOutACK( | 712 void RenderProcessHostImpl::SimulateSwapOutACK( |
| 707 const ViewMsg_SwapOut_Params& params) { | 713 const ViewMsg_SwapOut_Params& params) { |
| 708 widget_helper_->SimulateSwapOutACK(params); | 714 widget_helper_->SimulateSwapOutACK(params); |
| 709 } | 715 } |
| (...skipping 1046 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1756 TRACE_EVENT0("renderer_host", | 1762 TRACE_EVENT0("renderer_host", |
| 1757 "RenderWidgetHostImpl::OnCompositorSurfaceBuffersSwappedNoHost"); | 1763 "RenderWidgetHostImpl::OnCompositorSurfaceBuffersSwappedNoHost"); |
| 1758 AcceleratedSurfaceMsg_BufferPresented_Params ack_params; | 1764 AcceleratedSurfaceMsg_BufferPresented_Params ack_params; |
| 1759 ack_params.sync_point = 0; | 1765 ack_params.sync_point = 0; |
| 1760 RenderWidgetHostImpl::AcknowledgeBufferPresent(route_id, | 1766 RenderWidgetHostImpl::AcknowledgeBufferPresent(route_id, |
| 1761 gpu_process_host_id, | 1767 gpu_process_host_id, |
| 1762 ack_params); | 1768 ack_params); |
| 1763 } | 1769 } |
| 1764 | 1770 |
| 1765 } // namespace content | 1771 } // namespace content |
| OLD | NEW |