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 946 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
957 base::Bind(&device::BatteryMonitorImpl::Create)); | 957 base::Bind(&device::BatteryMonitorImpl::Create)); |
958 | 958 |
959 mojo_application_host_->service_registry()->AddService( | 959 mojo_application_host_->service_registry()->AddService( |
960 base::Bind(&device::VibrationManagerImpl::Create)); | 960 base::Bind(&device::VibrationManagerImpl::Create)); |
961 | 961 |
962 mojo_application_host_->service_registry()->AddService( | 962 mojo_application_host_->service_registry()->AddService( |
963 base::Bind(&PermissionServiceContext::CreateService, | 963 base::Bind(&PermissionServiceContext::CreateService, |
964 base::Unretained(permission_service_context_.get()))); | 964 base::Unretained(permission_service_context_.get()))); |
965 | 965 |
966 mojo_application_host_->service_registry()->AddService(base::Bind( | 966 mojo_application_host_->service_registry()->AddService(base::Bind( |
967 &content::BackgroundSyncServiceImpl::Create, | 967 &BackgroundSyncContextImpl::CreateService, |
968 base::Unretained(storage_partition_impl_->GetBackgroundSyncContext()))); | 968 base::Unretained(storage_partition_impl_->GetBackgroundSyncContext()))); |
969 | 969 |
970 mojo_application_host_->service_registry()->AddService(base::Bind( | 970 mojo_application_host_->service_registry()->AddService(base::Bind( |
971 &content::ServicePortServiceImpl::Create, | 971 &content::ServicePortServiceImpl::Create, |
972 make_scoped_refptr(storage_partition_impl_->GetNavigatorConnectContext()), | 972 make_scoped_refptr(storage_partition_impl_->GetNavigatorConnectContext()), |
973 message_port_message_filter_)); | 973 message_port_message_filter_)); |
974 | 974 |
975 #if defined(OS_ANDROID) | 975 #if defined(OS_ANDROID) |
976 ServiceRegistrarAndroid::RegisterProcessHostServices( | 976 ServiceRegistrarAndroid::RegisterProcessHostServices( |
977 mojo_application_host_->service_registry_android()); | 977 mojo_application_host_->service_registry_android()); |
(...skipping 1550 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2528 void RenderProcessHostImpl::GetAudioOutputControllers( | 2528 void RenderProcessHostImpl::GetAudioOutputControllers( |
2529 const GetAudioOutputControllersCallback& callback) const { | 2529 const GetAudioOutputControllersCallback& callback) const { |
2530 audio_renderer_host()->GetOutputControllers(callback); | 2530 audio_renderer_host()->GetOutputControllers(callback); |
2531 } | 2531 } |
2532 | 2532 |
2533 BluetoothDispatcherHost* RenderProcessHostImpl::GetBluetoothDispatcherHost() { | 2533 BluetoothDispatcherHost* RenderProcessHostImpl::GetBluetoothDispatcherHost() { |
2534 return bluetooth_dispatcher_host_.get(); | 2534 return bluetooth_dispatcher_host_.get(); |
2535 } | 2535 } |
2536 | 2536 |
2537 } // namespace content | 2537 } // namespace content |
OLD | NEW |