| 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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 #include "content/browser/media/media_internals.h" | 83 #include "content/browser/media/media_internals.h" |
| 84 #include "content/browser/media/midi_host.h" | 84 #include "content/browser/media/midi_host.h" |
| 85 #include "content/browser/memory/memory_coordinator.h" | 85 #include "content/browser/memory/memory_coordinator.h" |
| 86 #include "content/browser/memory/memory_message_filter.h" | 86 #include "content/browser/memory/memory_message_filter.h" |
| 87 #include "content/browser/message_port_message_filter.h" | 87 #include "content/browser/message_port_message_filter.h" |
| 88 #include "content/browser/mime_registry_impl.h" | 88 #include "content/browser/mime_registry_impl.h" |
| 89 #include "content/browser/notifications/notification_message_filter.h" | 89 #include "content/browser/notifications/notification_message_filter.h" |
| 90 #include "content/browser/notifications/platform_notification_context_impl.h" | 90 #include "content/browser/notifications/platform_notification_context_impl.h" |
| 91 #include "content/browser/permissions/permission_service_context.h" | 91 #include "content/browser/permissions/permission_service_context.h" |
| 92 #include "content/browser/permissions/permission_service_impl.h" | 92 #include "content/browser/permissions/permission_service_impl.h" |
| 93 #include "content/browser/power_monitor_message_broadcaster.h" | |
| 94 #include "content/browser/profiler_message_filter.h" | 93 #include "content/browser/profiler_message_filter.h" |
| 95 #include "content/browser/push_messaging/push_messaging_message_filter.h" | 94 #include "content/browser/push_messaging/push_messaging_message_filter.h" |
| 96 #include "content/browser/quota_dispatcher_host.h" | 95 #include "content/browser/quota_dispatcher_host.h" |
| 97 #include "content/browser/renderer_host/clipboard_message_filter.h" | 96 #include "content/browser/renderer_host/clipboard_message_filter.h" |
| 98 #include "content/browser/renderer_host/database_message_filter.h" | 97 #include "content/browser/renderer_host/database_message_filter.h" |
| 99 #include "content/browser/renderer_host/file_utilities_message_filter.h" | 98 #include "content/browser/renderer_host/file_utilities_message_filter.h" |
| 100 #include "content/browser/renderer_host/gamepad_browser_message_filter.h" | 99 #include "content/browser/renderer_host/gamepad_browser_message_filter.h" |
| 101 #include "content/browser/renderer_host/media/audio_input_renderer_host.h" | 100 #include "content/browser/renderer_host/media/audio_input_renderer_host.h" |
| 102 #include "content/browser/renderer_host/media/audio_renderer_host.h" | 101 #include "content/browser/renderer_host/media/audio_renderer_host.h" |
| 103 #include "content/browser/renderer_host/media/media_stream_dispatcher_host.h" | 102 #include "content/browser/renderer_host/media/media_stream_dispatcher_host.h" |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 155 #include "content/public/common/content_features.h" | 154 #include "content/public/common/content_features.h" |
| 156 #include "content/public/common/content_switches.h" | 155 #include "content/public/common/content_switches.h" |
| 157 #include "content/public/common/mojo_channel_switches.h" | 156 #include "content/public/common/mojo_channel_switches.h" |
| 158 #include "content/public/common/process_type.h" | 157 #include "content/public/common/process_type.h" |
| 159 #include "content/public/common/resource_type.h" | 158 #include "content/public/common/resource_type.h" |
| 160 #include "content/public/common/result_codes.h" | 159 #include "content/public/common/result_codes.h" |
| 161 #include "content/public/common/sandboxed_process_launcher_delegate.h" | 160 #include "content/public/common/sandboxed_process_launcher_delegate.h" |
| 162 #include "content/public/common/service_names.h" | 161 #include "content/public/common/service_names.h" |
| 163 #include "content/public/common/url_constants.h" | 162 #include "content/public/common/url_constants.h" |
| 164 #include "device/battery/battery_monitor_impl.h" | 163 #include "device/battery/battery_monitor_impl.h" |
| 164 #include "device/power_monitor/power_monitor_message_broadcaster.h" |
| 165 #include "device/time_zone_monitor/time_zone_monitor.h" | 165 #include "device/time_zone_monitor/time_zone_monitor.h" |
| 166 #include "gpu/GLES2/gl2extchromium.h" | 166 #include "gpu/GLES2/gl2extchromium.h" |
| 167 #include "gpu/command_buffer/client/gpu_switches.h" | 167 #include "gpu/command_buffer/client/gpu_switches.h" |
| 168 #include "gpu/command_buffer/common/gles2_cmd_utils.h" | 168 #include "gpu/command_buffer/common/gles2_cmd_utils.h" |
| 169 #include "gpu/command_buffer/service/gpu_switches.h" | 169 #include "gpu/command_buffer/service/gpu_switches.h" |
| 170 #include "ipc/ipc.mojom.h" | 170 #include "ipc/ipc.mojom.h" |
| 171 #include "ipc/ipc_channel.h" | 171 #include "ipc/ipc_channel.h" |
| 172 #include "ipc/ipc_channel_mojo.h" | 172 #include "ipc/ipc_channel_mojo.h" |
| 173 #include "ipc/ipc_logging.h" | 173 #include "ipc/ipc_logging.h" |
| 174 #include "media/base/media_switches.h" | 174 #include "media/base/media_switches.h" |
| (...skipping 1071 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1246 // BrowserMainLoop, which owns TimeZoneMonitor, is alive for the lifetime of | 1246 // BrowserMainLoop, which owns TimeZoneMonitor, is alive for the lifetime of |
| 1247 // Mojo communication (see BrowserMainLoop::ShutdownThreadsAndCleanUp(), | 1247 // Mojo communication (see BrowserMainLoop::ShutdownThreadsAndCleanUp(), |
| 1248 // which shuts down Mojo). Hence, passing that TimeZoneMonitor instance as | 1248 // which shuts down Mojo). Hence, passing that TimeZoneMonitor instance as |
| 1249 // a raw pointer here is safe. | 1249 // a raw pointer here is safe. |
| 1250 AddUIThreadInterface( | 1250 AddUIThreadInterface( |
| 1251 registry.get(), | 1251 registry.get(), |
| 1252 base::Bind(&device::TimeZoneMonitor::Bind, | 1252 base::Bind(&device::TimeZoneMonitor::Bind, |
| 1253 base::Unretained( | 1253 base::Unretained( |
| 1254 BrowserMainLoop::GetInstance()->time_zone_monitor()))); | 1254 BrowserMainLoop::GetInstance()->time_zone_monitor()))); |
| 1255 | 1255 |
| 1256 AddUIThreadInterface(registry.get(), | 1256 AddUIThreadInterface( |
| 1257 base::Bind(&PowerMonitorMessageBroadcaster::Create)); | 1257 registry.get(), |
| 1258 base::Bind(&device::PowerMonitorMessageBroadcaster::Create)); |
| 1258 | 1259 |
| 1259 scoped_refptr<base::SingleThreadTaskRunner> file_task_runner = | 1260 scoped_refptr<base::SingleThreadTaskRunner> file_task_runner = |
| 1260 BrowserThread::GetTaskRunnerForThread(BrowserThread::FILE); | 1261 BrowserThread::GetTaskRunnerForThread(BrowserThread::FILE); |
| 1261 registry->AddInterface(base::Bind(&MimeRegistryImpl::Create), | 1262 registry->AddInterface(base::Bind(&MimeRegistryImpl::Create), |
| 1262 file_task_runner); | 1263 file_task_runner); |
| 1263 #if defined(USE_MINIKIN_HYPHENATION) | 1264 #if defined(USE_MINIKIN_HYPHENATION) |
| 1264 registry->AddInterface(base::Bind(&hyphenation::HyphenationImpl::Create), | 1265 registry->AddInterface(base::Bind(&hyphenation::HyphenationImpl::Create), |
| 1265 file_task_runner); | 1266 file_task_runner); |
| 1266 #endif | 1267 #endif |
| 1267 | 1268 |
| (...skipping 1716 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2984 bad_message::ReceivedBadMessage(render_process_id, | 2985 bad_message::ReceivedBadMessage(render_process_id, |
| 2985 bad_message::RPH_MOJO_PROCESS_ERROR); | 2986 bad_message::RPH_MOJO_PROCESS_ERROR); |
| 2986 } | 2987 } |
| 2987 | 2988 |
| 2988 void RenderProcessHostImpl::CreateURLLoaderFactory( | 2989 void RenderProcessHostImpl::CreateURLLoaderFactory( |
| 2989 mojo::InterfaceRequest<mojom::URLLoaderFactory> request) { | 2990 mojo::InterfaceRequest<mojom::URLLoaderFactory> request) { |
| 2990 URLLoaderFactoryImpl::Create(resource_message_filter_, std::move(request)); | 2991 URLLoaderFactoryImpl::Create(resource_message_filter_, std::move(request)); |
| 2991 } | 2992 } |
| 2992 | 2993 |
| 2993 } // namespace content | 2994 } // namespace content |
| OLD | NEW |