OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 #include "content/browser/renderer_host/clipboard_message_filter.h" | 90 #include "content/browser/renderer_host/clipboard_message_filter.h" |
91 #include "content/browser/renderer_host/database_message_filter.h" | 91 #include "content/browser/renderer_host/database_message_filter.h" |
92 #include "content/browser/renderer_host/file_utilities_message_filter.h" | 92 #include "content/browser/renderer_host/file_utilities_message_filter.h" |
93 #include "content/browser/renderer_host/gamepad_browser_message_filter.h" | 93 #include "content/browser/renderer_host/gamepad_browser_message_filter.h" |
94 #include "content/browser/renderer_host/gpu_message_filter.h" | 94 #include "content/browser/renderer_host/gpu_message_filter.h" |
95 #include "content/browser/renderer_host/media/audio_input_renderer_host.h" | 95 #include "content/browser/renderer_host/media/audio_input_renderer_host.h" |
96 #include "content/browser/renderer_host/media/audio_renderer_host.h" | 96 #include "content/browser/renderer_host/media/audio_renderer_host.h" |
97 #include "content/browser/renderer_host/media/media_stream_dispatcher_host.h" | 97 #include "content/browser/renderer_host/media/media_stream_dispatcher_host.h" |
98 #include "content/browser/renderer_host/media/peer_connection_tracker_host.h" | 98 #include "content/browser/renderer_host/media/peer_connection_tracker_host.h" |
99 #include "content/browser/renderer_host/media/video_capture_host.h" | 99 #include "content/browser/renderer_host/media/video_capture_host.h" |
100 #include "content/browser/renderer_host/memory_benchmark_message_filter.h" | |
101 #include "content/browser/renderer_host/pepper/pepper_message_filter.h" | 100 #include "content/browser/renderer_host/pepper/pepper_message_filter.h" |
102 #include "content/browser/renderer_host/pepper/pepper_renderer_connection.h" | 101 #include "content/browser/renderer_host/pepper/pepper_renderer_connection.h" |
103 #include "content/browser/renderer_host/render_message_filter.h" | 102 #include "content/browser/renderer_host/render_message_filter.h" |
104 #include "content/browser/renderer_host/render_view_host_delegate.h" | 103 #include "content/browser/renderer_host/render_view_host_delegate.h" |
105 #include "content/browser/renderer_host/render_view_host_impl.h" | 104 #include "content/browser/renderer_host/render_view_host_impl.h" |
106 #include "content/browser/renderer_host/render_widget_helper.h" | 105 #include "content/browser/renderer_host/render_widget_helper.h" |
107 #include "content/browser/renderer_host/render_widget_host_impl.h" | 106 #include "content/browser/renderer_host/render_widget_host_impl.h" |
108 #include "content/browser/renderer_host/text_input_client_message_filter.h" | 107 #include "content/browser/renderer_host/text_input_client_message_filter.h" |
109 #include "content/browser/renderer_host/websocket_dispatcher_host.h" | 108 #include "content/browser/renderer_host/websocket_dispatcher_host.h" |
110 #include "content/browser/resolve_proxy_msg_helper.h" | 109 #include "content/browser/resolve_proxy_msg_helper.h" |
(...skipping 929 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1040 resource_context, browser_context); | 1039 resource_context, browser_context); |
1041 AddFilter(notification_message_filter_.get()); | 1040 AddFilter(notification_message_filter_.get()); |
1042 | 1041 |
1043 AddFilter(new GamepadBrowserMessageFilter()); | 1042 AddFilter(new GamepadBrowserMessageFilter()); |
1044 AddFilter(new DeviceLightMessageFilter()); | 1043 AddFilter(new DeviceLightMessageFilter()); |
1045 AddFilter(new DeviceMotionMessageFilter()); | 1044 AddFilter(new DeviceMotionMessageFilter()); |
1046 AddFilter(new DeviceOrientationMessageFilter()); | 1045 AddFilter(new DeviceOrientationMessageFilter()); |
1047 AddFilter(new DeviceOrientationAbsoluteMessageFilter()); | 1046 AddFilter(new DeviceOrientationAbsoluteMessageFilter()); |
1048 AddFilter(new ProfilerMessageFilter(PROCESS_TYPE_RENDERER)); | 1047 AddFilter(new ProfilerMessageFilter(PROCESS_TYPE_RENDERER)); |
1049 AddFilter(new HistogramMessageFilter()); | 1048 AddFilter(new HistogramMessageFilter()); |
1050 #if defined(USE_TCMALLOC) && (defined(OS_LINUX) || defined(OS_ANDROID)) | |
1051 if (browser_command_line.HasSwitch(switches::kEnableMemoryBenchmarking)) | |
1052 AddFilter(new MemoryBenchmarkMessageFilter()); | |
1053 #endif | |
1054 AddFilter(new MemoryMessageFilter(this)); | 1049 AddFilter(new MemoryMessageFilter(this)); |
1055 AddFilter(new PushMessagingMessageFilter( | 1050 AddFilter(new PushMessagingMessageFilter( |
1056 GetID(), storage_partition_impl_->GetServiceWorkerContext())); | 1051 GetID(), storage_partition_impl_->GetServiceWorkerContext())); |
1057 #if defined(OS_ANDROID) && !defined(USE_AURA) | 1052 #if defined(OS_ANDROID) && !defined(USE_AURA) |
1058 AddFilter(new ScreenOrientationMessageFilterAndroid()); | 1053 AddFilter(new ScreenOrientationMessageFilterAndroid()); |
1059 #endif | 1054 #endif |
1060 AddFilter(new GeofencingDispatcherHost( | 1055 AddFilter(new GeofencingDispatcherHost( |
1061 storage_partition_impl_->GetGeofencingManager())); | 1056 storage_partition_impl_->GetGeofencingManager())); |
1062 if (browser_command_line.HasSwitch(switches::kEnableWebBluetooth)) { | 1057 if (browser_command_line.HasSwitch(switches::kEnableWebBluetooth)) { |
1063 bluetooth_dispatcher_host_ = new BluetoothDispatcherHost(GetID()); | 1058 bluetooth_dispatcher_host_ = new BluetoothDispatcherHost(GetID()); |
(...skipping 1729 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2793 void RenderProcessHostImpl::GetAudioOutputControllers( | 2788 void RenderProcessHostImpl::GetAudioOutputControllers( |
2794 const GetAudioOutputControllersCallback& callback) const { | 2789 const GetAudioOutputControllersCallback& callback) const { |
2795 audio_renderer_host()->GetOutputControllers(callback); | 2790 audio_renderer_host()->GetOutputControllers(callback); |
2796 } | 2791 } |
2797 | 2792 |
2798 BluetoothDispatcherHost* RenderProcessHostImpl::GetBluetoothDispatcherHost() { | 2793 BluetoothDispatcherHost* RenderProcessHostImpl::GetBluetoothDispatcherHost() { |
2799 return bluetooth_dispatcher_host_.get(); | 2794 return bluetooth_dispatcher_host_.get(); |
2800 } | 2795 } |
2801 | 2796 |
2802 } // namespace content | 2797 } // namespace content |
OLD | NEW |