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

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

Issue 1274033002: Vibration API: convert implementation to java mojo-service. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix trybot failure Created 5 years, 4 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
« no previous file with comments | « content/app/android/library_loader_hooks.cc ('k') | content/public/android/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 924 matching lines...) Expand 10 before | Expand all | Expand 10 after
935 if (browser_command_line.HasSwitch(switches::kEnableWebBluetooth)) { 935 if (browser_command_line.HasSwitch(switches::kEnableWebBluetooth)) {
936 bluetooth_dispatcher_host_ = new BluetoothDispatcherHost(GetID()); 936 bluetooth_dispatcher_host_ = new BluetoothDispatcherHost(GetID());
937 AddFilter(bluetooth_dispatcher_host_.get()); 937 AddFilter(bluetooth_dispatcher_host_.get());
938 } 938 }
939 } 939 }
940 940
941 void RenderProcessHostImpl::RegisterMojoServices() { 941 void RenderProcessHostImpl::RegisterMojoServices() {
942 mojo_application_host_->service_registry()->AddService( 942 mojo_application_host_->service_registry()->AddService(
943 base::Bind(&device::BatteryMonitorImpl::Create)); 943 base::Bind(&device::BatteryMonitorImpl::Create));
944 944
945 #if !defined(OS_ANDROID)
945 mojo_application_host_->service_registry()->AddService( 946 mojo_application_host_->service_registry()->AddService(
946 base::Bind(&device::VibrationManagerImpl::Create)); 947 base::Bind(&device::VibrationManagerImpl::Create));
948 #endif
947 949
948 mojo_application_host_->service_registry()->AddService( 950 mojo_application_host_->service_registry()->AddService(
949 base::Bind(&PermissionServiceContext::CreateService, 951 base::Bind(&PermissionServiceContext::CreateService,
950 base::Unretained(permission_service_context_.get()))); 952 base::Unretained(permission_service_context_.get())));
951 953
952 mojo_application_host_->service_registry()->AddService(base::Bind( 954 mojo_application_host_->service_registry()->AddService(base::Bind(
953 &content::BackgroundSyncServiceImpl::Create, 955 &content::BackgroundSyncServiceImpl::Create,
954 base::Unretained(storage_partition_impl_->GetBackgroundSyncContext()))); 956 base::Unretained(storage_partition_impl_->GetBackgroundSyncContext())));
955 957
956 mojo_application_host_->service_registry()->AddService(base::Bind( 958 mojo_application_host_->service_registry()->AddService(base::Bind(
(...skipping 1554 matching lines...) Expand 10 before | Expand all | Expand 10 after
2511 void RenderProcessHostImpl::GetAudioOutputControllers( 2513 void RenderProcessHostImpl::GetAudioOutputControllers(
2512 const GetAudioOutputControllersCallback& callback) const { 2514 const GetAudioOutputControllersCallback& callback) const {
2513 audio_renderer_host()->GetOutputControllers(callback); 2515 audio_renderer_host()->GetOutputControllers(callback);
2514 } 2516 }
2515 2517
2516 BluetoothDispatcherHost* RenderProcessHostImpl::GetBluetoothDispatcherHost() { 2518 BluetoothDispatcherHost* RenderProcessHostImpl::GetBluetoothDispatcherHost() {
2517 return bluetooth_dispatcher_host_.get(); 2519 return bluetooth_dispatcher_host_.get();
2518 } 2520 }
2519 2521
2520 } // namespace content 2522 } // namespace content
OLDNEW
« no previous file with comments | « content/app/android/library_loader_hooks.cc ('k') | content/public/android/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698