Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(53)

Side by Side Diff: content/browser/renderer_host/render_process_host_impl.cc

Issue 2646093002: Move //content/browser/device_sensor/ into device/sensors (Closed)
Patch Set: update git log Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 #include "content/browser/blob_storage/blob_dispatcher_host.h" 58 #include "content/browser/blob_storage/blob_dispatcher_host.h"
59 #include "content/browser/blob_storage/chrome_blob_storage_context.h" 59 #include "content/browser/blob_storage/chrome_blob_storage_context.h"
60 #include "content/browser/broadcast_channel/broadcast_channel_provider.h" 60 #include "content/browser/broadcast_channel/broadcast_channel_provider.h"
61 #include "content/browser/browser_child_process_host_impl.h" 61 #include "content/browser/browser_child_process_host_impl.h"
62 #include "content/browser/browser_main.h" 62 #include "content/browser/browser_main.h"
63 #include "content/browser/browser_main_loop.h" 63 #include "content/browser/browser_main_loop.h"
64 #include "content/browser/browser_plugin/browser_plugin_message_filter.h" 64 #include "content/browser/browser_plugin/browser_plugin_message_filter.h"
65 #include "content/browser/cache_storage/cache_storage_context_impl.h" 65 #include "content/browser/cache_storage/cache_storage_context_impl.h"
66 #include "content/browser/cache_storage/cache_storage_dispatcher_host.h" 66 #include "content/browser/cache_storage/cache_storage_dispatcher_host.h"
67 #include "content/browser/child_process_security_policy_impl.h" 67 #include "content/browser/child_process_security_policy_impl.h"
68 #include "content/browser/device_sensors/device_sensor_host.h"
69 #include "content/browser/dom_storage/dom_storage_context_wrapper.h" 68 #include "content/browser/dom_storage/dom_storage_context_wrapper.h"
70 #include "content/browser/dom_storage/dom_storage_message_filter.h" 69 #include "content/browser/dom_storage/dom_storage_message_filter.h"
71 #include "content/browser/fileapi/fileapi_message_filter.h" 70 #include "content/browser/fileapi/fileapi_message_filter.h"
72 #include "content/browser/frame_host/render_frame_message_filter.h" 71 #include "content/browser/frame_host/render_frame_message_filter.h"
73 #include "content/browser/gpu/browser_gpu_memory_buffer_manager.h" 72 #include "content/browser/gpu/browser_gpu_memory_buffer_manager.h"
74 #include "content/browser/gpu/compositor_util.h" 73 #include "content/browser/gpu/compositor_util.h"
75 #include "content/browser/gpu/gpu_client.h" 74 #include "content/browser/gpu/gpu_client.h"
76 #include "content/browser/gpu/gpu_data_manager_impl.h" 75 #include "content/browser/gpu/gpu_data_manager_impl.h"
77 #include "content/browser/gpu/gpu_process_host.h" 76 #include "content/browser/gpu/gpu_process_host.h"
78 #include "content/browser/gpu/shader_cache_factory.h" 77 #include "content/browser/gpu/shader_cache_factory.h"
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 #include "content/public/common/content_switches.h" 158 #include "content/public/common/content_switches.h"
160 #include "content/public/common/mojo_channel_switches.h" 159 #include "content/public/common/mojo_channel_switches.h"
161 #include "content/public/common/process_type.h" 160 #include "content/public/common/process_type.h"
162 #include "content/public/common/resource_type.h" 161 #include "content/public/common/resource_type.h"
163 #include "content/public/common/result_codes.h" 162 #include "content/public/common/result_codes.h"
164 #include "content/public/common/sandboxed_process_launcher_delegate.h" 163 #include "content/public/common/sandboxed_process_launcher_delegate.h"
165 #include "content/public/common/service_names.mojom.h" 164 #include "content/public/common/service_names.mojom.h"
166 #include "content/public/common/url_constants.h" 165 #include "content/public/common/url_constants.h"
167 #include "device/battery/battery_monitor_impl.h" 166 #include "device/battery/battery_monitor_impl.h"
168 #include "device/gamepad/gamepad_monitor.h" 167 #include "device/gamepad/gamepad_monitor.h"
168 #include "device/sensors/device_sensor_host.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 "gpu/ipc/host/gpu_memory_buffer_support.h" 173 #include "gpu/ipc/host/gpu_memory_buffer_support.h"
174 #include "ipc/ipc.mojom.h" 174 #include "ipc/ipc.mojom.h"
175 #include "ipc/ipc_channel.h" 175 #include "ipc/ipc_channel.h"
176 #include "ipc/ipc_channel_mojo.h" 176 #include "ipc/ipc_channel_mojo.h"
177 #include "ipc/ipc_logging.h" 177 #include "ipc/ipc_logging.h"
178 #include "media/base/media_switches.h" 178 #include "media/base/media_switches.h"
(...skipping 1092 matching lines...) Expand 10 before | Expand all | Expand 10 after
1271 registry->AddInterface(base::Bind(&MimeRegistryImpl::Create), 1271 registry->AddInterface(base::Bind(&MimeRegistryImpl::Create),
1272 file_task_runner); 1272 file_task_runner);
1273 #if BUILDFLAG(USE_MINIKIN_HYPHENATION) 1273 #if BUILDFLAG(USE_MINIKIN_HYPHENATION)
1274 registry->AddInterface(base::Bind(&hyphenation::HyphenationImpl::Create), 1274 registry->AddInterface(base::Bind(&hyphenation::HyphenationImpl::Create),
1275 file_task_runner); 1275 file_task_runner);
1276 #endif 1276 #endif
1277 1277
1278 #if defined(OS_ANDROID) 1278 #if defined(OS_ANDROID)
1279 // On Android the device sensors implementations need to run on the UI thread 1279 // On Android the device sensors implementations need to run on the UI thread
1280 // to communicate to Java. 1280 // to communicate to Java.
1281 AddUIThreadInterface(registry.get(), base::Bind(&DeviceLightHost::Create));
1282 AddUIThreadInterface(registry.get(), base::Bind(&DeviceMotionHost::Create));
1283 AddUIThreadInterface(registry.get(), 1281 AddUIThreadInterface(registry.get(),
1284 base::Bind(&DeviceOrientationHost::Create)); 1282 base::Bind(&device::DeviceLightHost::Create));
1285 AddUIThreadInterface(registry.get(), 1283 AddUIThreadInterface(registry.get(),
1286 base::Bind(&DeviceOrientationAbsoluteHost::Create)); 1284 base::Bind(&device::DeviceMotionHost::Create));
1285 AddUIThreadInterface(registry.get(),
1286 base::Bind(&device::DeviceOrientationHost::Create));
1287 AddUIThreadInterface(
1288 registry.get(),
1289 base::Bind(&device::DeviceOrientationAbsoluteHost::Create));
1287 #else 1290 #else
1288 // On platforms other than Android the device sensors implementations run on 1291 // On platforms other than Android the device sensors implementations run on
1289 // the IO thread. 1292 // the IO thread.
1290 registry->AddInterface(base::Bind(&DeviceLightHost::Create)); 1293 registry->AddInterface(base::Bind(&device::DeviceLightHost::Create));
1291 registry->AddInterface(base::Bind(&DeviceMotionHost::Create)); 1294 registry->AddInterface(base::Bind(&device::DeviceMotionHost::Create));
1292 registry->AddInterface(base::Bind(&DeviceOrientationHost::Create)); 1295 registry->AddInterface(base::Bind(&device::DeviceOrientationHost::Create));
1293 registry->AddInterface(base::Bind(&DeviceOrientationAbsoluteHost::Create)); 1296 registry->AddInterface(
1297 base::Bind(&device::DeviceOrientationAbsoluteHost::Create));
1294 #endif // defined(OS_ANDROID) 1298 #endif // defined(OS_ANDROID)
1295 1299
1296 registry->AddInterface(base::Bind(&device::GamepadMonitor::Create)); 1300 registry->AddInterface(base::Bind(&device::GamepadMonitor::Create));
1297 1301
1298 registry->AddInterface(base::Bind(&RenderProcessHostImpl::CreateMusGpuRequest, 1302 registry->AddInterface(base::Bind(&RenderProcessHostImpl::CreateMusGpuRequest,
1299 base::Unretained(this))); 1303 base::Unretained(this)));
1300 1304
1301 registry->AddInterface( 1305 registry->AddInterface(
1302 base::Bind(&VideoCaptureHost::Create, 1306 base::Bind(&VideoCaptureHost::Create,
1303 BrowserMainLoop::GetInstance()->media_stream_manager())); 1307 BrowserMainLoop::GetInstance()->media_stream_manager()));
(...skipping 1735 matching lines...) Expand 10 before | Expand all | Expand 10 after
3039 LOG(ERROR) << "Terminating render process for bad Mojo message: " << error; 3043 LOG(ERROR) << "Terminating render process for bad Mojo message: " << error;
3040 3044
3041 // The ReceivedBadMessage call below will trigger a DumpWithoutCrashing. 3045 // The ReceivedBadMessage call below will trigger a DumpWithoutCrashing.
3042 // Capture the error message in a crash key value. 3046 // Capture the error message in a crash key value.
3043 base::debug::ScopedCrashKey error_key_value("mojo-message-error", error); 3047 base::debug::ScopedCrashKey error_key_value("mojo-message-error", error);
3044 bad_message::ReceivedBadMessage(render_process_id, 3048 bad_message::ReceivedBadMessage(render_process_id,
3045 bad_message::RPH_MOJO_PROCESS_ERROR); 3049 bad_message::RPH_MOJO_PROCESS_ERROR);
3046 } 3050 }
3047 3051
3048 } // namespace content 3052 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698