| 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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 #include "content/browser/notifications/platform_notification_context_impl.h" | 92 #include "content/browser/notifications/platform_notification_context_impl.h" |
| 93 #include "content/browser/payments/payment_app_manager.h" | 93 #include "content/browser/payments/payment_app_manager.h" |
| 94 #include "content/browser/permissions/permission_service_context.h" | 94 #include "content/browser/permissions/permission_service_context.h" |
| 95 #include "content/browser/permissions/permission_service_impl.h" | 95 #include "content/browser/permissions/permission_service_impl.h" |
| 96 #include "content/browser/profiler_message_filter.h" | 96 #include "content/browser/profiler_message_filter.h" |
| 97 #include "content/browser/push_messaging/push_messaging_message_filter.h" | 97 #include "content/browser/push_messaging/push_messaging_message_filter.h" |
| 98 #include "content/browser/quota_dispatcher_host.h" | 98 #include "content/browser/quota_dispatcher_host.h" |
| 99 #include "content/browser/renderer_host/clipboard_message_filter.h" | 99 #include "content/browser/renderer_host/clipboard_message_filter.h" |
| 100 #include "content/browser/renderer_host/database_message_filter.h" | 100 #include "content/browser/renderer_host/database_message_filter.h" |
| 101 #include "content/browser/renderer_host/file_utilities_message_filter.h" | 101 #include "content/browser/renderer_host/file_utilities_message_filter.h" |
| 102 #include "content/browser/renderer_host/gamepad_monitor.h" | |
| 103 #include "content/browser/renderer_host/media/audio_input_renderer_host.h" | 102 #include "content/browser/renderer_host/media/audio_input_renderer_host.h" |
| 104 #include "content/browser/renderer_host/media/audio_renderer_host.h" | 103 #include "content/browser/renderer_host/media/audio_renderer_host.h" |
| 105 #include "content/browser/renderer_host/media/media_stream_dispatcher_host.h" | 104 #include "content/browser/renderer_host/media/media_stream_dispatcher_host.h" |
| 106 #include "content/browser/renderer_host/media/peer_connection_tracker_host.h" | 105 #include "content/browser/renderer_host/media/peer_connection_tracker_host.h" |
| 107 #include "content/browser/renderer_host/media/video_capture_host.h" | 106 #include "content/browser/renderer_host/media/video_capture_host.h" |
| 108 #include "content/browser/renderer_host/offscreen_canvas_compositor_frame_sink_p
rovider_impl.h" | 107 #include "content/browser/renderer_host/offscreen_canvas_compositor_frame_sink_p
rovider_impl.h" |
| 109 #include "content/browser/renderer_host/offscreen_canvas_surface_impl.h" | 108 #include "content/browser/renderer_host/offscreen_canvas_surface_impl.h" |
| 110 #include "content/browser/renderer_host/pepper/pepper_message_filter.h" | 109 #include "content/browser/renderer_host/pepper/pepper_message_filter.h" |
| 111 #include "content/browser/renderer_host/pepper/pepper_renderer_connection.h" | 110 #include "content/browser/renderer_host/pepper/pepper_renderer_connection.h" |
| 112 #include "content/browser/renderer_host/render_message_filter.h" | 111 #include "content/browser/renderer_host/render_message_filter.h" |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 157 #include "content/public/common/content_features.h" | 156 #include "content/public/common/content_features.h" |
| 158 #include "content/public/common/content_switches.h" | 157 #include "content/public/common/content_switches.h" |
| 159 #include "content/public/common/mojo_channel_switches.h" | 158 #include "content/public/common/mojo_channel_switches.h" |
| 160 #include "content/public/common/process_type.h" | 159 #include "content/public/common/process_type.h" |
| 161 #include "content/public/common/resource_type.h" | 160 #include "content/public/common/resource_type.h" |
| 162 #include "content/public/common/result_codes.h" | 161 #include "content/public/common/result_codes.h" |
| 163 #include "content/public/common/sandboxed_process_launcher_delegate.h" | 162 #include "content/public/common/sandboxed_process_launcher_delegate.h" |
| 164 #include "content/public/common/service_names.mojom.h" | 163 #include "content/public/common/service_names.mojom.h" |
| 165 #include "content/public/common/url_constants.h" | 164 #include "content/public/common/url_constants.h" |
| 166 #include "device/battery/battery_monitor_impl.h" | 165 #include "device/battery/battery_monitor_impl.h" |
| 166 #include "device/gamepad/gamepad_monitor.h" |
| 167 #include "device/power_monitor/power_monitor_message_broadcaster.h" | 167 #include "device/power_monitor/power_monitor_message_broadcaster.h" |
| 168 #include "device/time_zone_monitor/time_zone_monitor.h" | 168 #include "device/time_zone_monitor/time_zone_monitor.h" |
| 169 #include "gpu/GLES2/gl2extchromium.h" | 169 #include "gpu/GLES2/gl2extchromium.h" |
| 170 #include "gpu/command_buffer/client/gpu_switches.h" | 170 #include "gpu/command_buffer/client/gpu_switches.h" |
| 171 #include "gpu/command_buffer/common/gles2_cmd_utils.h" | 171 #include "gpu/command_buffer/common/gles2_cmd_utils.h" |
| 172 #include "gpu/command_buffer/service/gpu_switches.h" | 172 #include "gpu/command_buffer/service/gpu_switches.h" |
| 173 #include "ipc/ipc.mojom.h" | 173 #include "ipc/ipc.mojom.h" |
| 174 #include "ipc/ipc_channel.h" | 174 #include "ipc/ipc_channel.h" |
| 175 #include "ipc/ipc_channel_mojo.h" | 175 #include "ipc/ipc_channel_mojo.h" |
| 176 #include "ipc/ipc_logging.h" | 176 #include "ipc/ipc_logging.h" |
| (...skipping 1100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1277 base::Bind(&DeviceOrientationAbsoluteHost::Create)); | 1277 base::Bind(&DeviceOrientationAbsoluteHost::Create)); |
| 1278 #else | 1278 #else |
| 1279 // On platforms other than Android the device sensors implementations run on | 1279 // On platforms other than Android the device sensors implementations run on |
| 1280 // the IO thread. | 1280 // the IO thread. |
| 1281 registry->AddInterface(base::Bind(&DeviceLightHost::Create)); | 1281 registry->AddInterface(base::Bind(&DeviceLightHost::Create)); |
| 1282 registry->AddInterface(base::Bind(&DeviceMotionHost::Create)); | 1282 registry->AddInterface(base::Bind(&DeviceMotionHost::Create)); |
| 1283 registry->AddInterface(base::Bind(&DeviceOrientationHost::Create)); | 1283 registry->AddInterface(base::Bind(&DeviceOrientationHost::Create)); |
| 1284 registry->AddInterface(base::Bind(&DeviceOrientationAbsoluteHost::Create)); | 1284 registry->AddInterface(base::Bind(&DeviceOrientationAbsoluteHost::Create)); |
| 1285 #endif // defined(OS_ANDROID) | 1285 #endif // defined(OS_ANDROID) |
| 1286 | 1286 |
| 1287 registry->AddInterface(base::Bind(&GamepadMonitor::Create)); | 1287 registry->AddInterface(base::Bind(&device::GamepadMonitor::Create)); |
| 1288 | 1288 |
| 1289 registry->AddInterface( | 1289 registry->AddInterface( |
| 1290 base::Bind(&VideoCaptureHost::Create, | 1290 base::Bind(&VideoCaptureHost::Create, |
| 1291 BrowserMainLoop::GetInstance()->media_stream_manager())); | 1291 BrowserMainLoop::GetInstance()->media_stream_manager())); |
| 1292 | 1292 |
| 1293 // This is to support usage of WebSockets in cases in which there is no | 1293 // This is to support usage of WebSockets in cases in which there is no |
| 1294 // associated RenderFrame (e.g., Shared Workers). | 1294 // associated RenderFrame (e.g., Shared Workers). |
| 1295 AddUIThreadInterface( | 1295 AddUIThreadInterface( |
| 1296 registry.get(), base::Bind(&WebSocketManager::CreateWebSocket, GetID(), | 1296 registry.get(), base::Bind(&WebSocketManager::CreateWebSocket, GetID(), |
| 1297 MSG_ROUTING_NONE)); | 1297 MSG_ROUTING_NONE)); |
| (...skipping 1704 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3002 LOG(ERROR) << "Terminating render process for bad Mojo message: " << error; | 3002 LOG(ERROR) << "Terminating render process for bad Mojo message: " << error; |
| 3003 | 3003 |
| 3004 // The ReceivedBadMessage call below will trigger a DumpWithoutCrashing. | 3004 // The ReceivedBadMessage call below will trigger a DumpWithoutCrashing. |
| 3005 // Capture the error message in a crash key value. | 3005 // Capture the error message in a crash key value. |
| 3006 base::debug::ScopedCrashKey error_key_value("mojo-message-error", error); | 3006 base::debug::ScopedCrashKey error_key_value("mojo-message-error", error); |
| 3007 bad_message::ReceivedBadMessage(render_process_id, | 3007 bad_message::ReceivedBadMessage(render_process_id, |
| 3008 bad_message::RPH_MOJO_PROCESS_ERROR); | 3008 bad_message::RPH_MOJO_PROCESS_ERROR); |
| 3009 } | 3009 } |
| 3010 | 3010 |
| 3011 } // namespace content | 3011 } // namespace content |
| OLD | NEW |