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

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

Issue 1892083002: Generic Sensor API : Ambient Light Sensor API. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 #include "content/public/common/content_constants.h" 152 #include "content/public/common/content_constants.h"
153 #include "content/public/common/content_features.h" 153 #include "content/public/common/content_features.h"
154 #include "content/public/common/content_switches.h" 154 #include "content/public/common/content_switches.h"
155 #include "content/public/common/mojo_channel_switches.h" 155 #include "content/public/common/mojo_channel_switches.h"
156 #include "content/public/common/process_type.h" 156 #include "content/public/common/process_type.h"
157 #include "content/public/common/resource_type.h" 157 #include "content/public/common/resource_type.h"
158 #include "content/public/common/result_codes.h" 158 #include "content/public/common/result_codes.h"
159 #include "content/public/common/sandboxed_process_launcher_delegate.h" 159 #include "content/public/common/sandboxed_process_launcher_delegate.h"
160 #include "content/public/common/url_constants.h" 160 #include "content/public/common/url_constants.h"
161 #include "device/battery/battery_monitor_impl.h" 161 #include "device/battery/battery_monitor_impl.h"
162 #include "device/sensor/sensor_impl.h"
162 #include "device/vibration/vibration_manager_impl.h" 163 #include "device/vibration/vibration_manager_impl.h"
163 #include "gpu/GLES2/gl2extchromium.h" 164 #include "gpu/GLES2/gl2extchromium.h"
164 #include "gpu/command_buffer/client/gpu_switches.h" 165 #include "gpu/command_buffer/client/gpu_switches.h"
165 #include "gpu/command_buffer/common/gles2_cmd_utils.h" 166 #include "gpu/command_buffer/common/gles2_cmd_utils.h"
166 #include "gpu/command_buffer/service/gpu_switches.h" 167 #include "gpu/command_buffer/service/gpu_switches.h"
167 #include "ipc/attachment_broker.h" 168 #include "ipc/attachment_broker.h"
168 #include "ipc/attachment_broker_privileged.h" 169 #include "ipc/attachment_broker_privileged.h"
169 #include "ipc/ipc_channel.h" 170 #include "ipc/ipc_channel.h"
170 #include "ipc/ipc_logging.h" 171 #include "ipc/ipc_logging.h"
171 #include "ipc/ipc_switches.h" 172 #include "ipc/ipc_switches.h"
(...skipping 897 matching lines...) Expand 10 before | Expand all | Expand 10 after
1069 AddFilter(bluetooth_dispatcher_host_.get()); 1070 AddFilter(bluetooth_dispatcher_host_.get());
1070 } 1071 }
1071 } 1072 }
1072 1073
1073 void RenderProcessHostImpl::RegisterMojoServices() { 1074 void RenderProcessHostImpl::RegisterMojoServices() {
1074 #if !defined(OS_ANDROID) 1075 #if !defined(OS_ANDROID)
1075 mojo_application_host_->service_registry()->AddService( 1076 mojo_application_host_->service_registry()->AddService(
1076 base::Bind(&device::BatteryMonitorImpl::Create)); 1077 base::Bind(&device::BatteryMonitorImpl::Create));
1077 1078
1078 mojo_application_host_->service_registry()->AddService( 1079 mojo_application_host_->service_registry()->AddService(
1080 base::Bind(&device::SensorImpl::Create));
1081
1082 mojo_application_host_->service_registry()->AddService(
1079 base::Bind(&device::VibrationManagerImpl::Create)); 1083 base::Bind(&device::VibrationManagerImpl::Create));
1080 #endif 1084 #endif
1081 1085
1082 mojo_application_host_->service_registry()->AddService( 1086 mojo_application_host_->service_registry()->AddService(
1083 base::Bind(&PermissionServiceContext::CreateService, 1087 base::Bind(&PermissionServiceContext::CreateService,
1084 base::Unretained(permission_service_context_.get()))); 1088 base::Unretained(permission_service_context_.get())));
1085 1089
1086 mojo_application_host_->service_registry()->AddService(base::Bind( 1090 mojo_application_host_->service_registry()->AddService(base::Bind(
1087 &BackgroundSyncContextImpl::CreateService, 1091 &BackgroundSyncContextImpl::CreateService,
1088 base::Unretained(storage_partition_impl_->GetBackgroundSyncContext()))); 1092 base::Unretained(storage_partition_impl_->GetBackgroundSyncContext())));
(...skipping 1753 matching lines...) Expand 10 before | Expand all | Expand 10 after
2842 2846
2843 // Skip widgets in other processes. 2847 // Skip widgets in other processes.
2844 if (rvh->GetProcess()->GetID() != GetID()) 2848 if (rvh->GetProcess()->GetID() != GetID())
2845 continue; 2849 continue;
2846 2850
2847 rvh->OnWebkitPreferencesChanged(); 2851 rvh->OnWebkitPreferencesChanged();
2848 } 2852 }
2849 } 2853 }
2850 2854
2851 } // namespace content 2855 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698