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 43 matching lines...) Loading... |
54 #include "content/browser/cache_storage/cache_storage_dispatcher_host.h" | 54 #include "content/browser/cache_storage/cache_storage_dispatcher_host.h" |
55 #include "content/browser/child_process_security_policy_impl.h" | 55 #include "content/browser/child_process_security_policy_impl.h" |
56 #include "content/browser/device_sensors/device_light_message_filter.h" | 56 #include "content/browser/device_sensors/device_light_message_filter.h" |
57 #include "content/browser/device_sensors/device_motion_message_filter.h" | 57 #include "content/browser/device_sensors/device_motion_message_filter.h" |
58 #include "content/browser/device_sensors/device_orientation_absolute_message_fil
ter.h" | 58 #include "content/browser/device_sensors/device_orientation_absolute_message_fil
ter.h" |
59 #include "content/browser/device_sensors/device_orientation_message_filter.h" | 59 #include "content/browser/device_sensors/device_orientation_message_filter.h" |
60 #include "content/browser/dom_storage/dom_storage_context_wrapper.h" | 60 #include "content/browser/dom_storage/dom_storage_context_wrapper.h" |
61 #include "content/browser/dom_storage/dom_storage_message_filter.h" | 61 #include "content/browser/dom_storage/dom_storage_message_filter.h" |
62 #include "content/browser/fileapi/chrome_blob_storage_context.h" | 62 #include "content/browser/fileapi/chrome_blob_storage_context.h" |
63 #include "content/browser/fileapi/fileapi_message_filter.h" | 63 #include "content/browser/fileapi/fileapi_message_filter.h" |
| 64 #include "content/browser/font_access/font_access_service_impl.h" |
64 #include "content/browser/frame_host/render_frame_message_filter.h" | 65 #include "content/browser/frame_host/render_frame_message_filter.h" |
65 #include "content/browser/geofencing/geofencing_dispatcher_host.h" | 66 #include "content/browser/geofencing/geofencing_dispatcher_host.h" |
66 #include "content/browser/gpu/browser_gpu_memory_buffer_manager.h" | 67 #include "content/browser/gpu/browser_gpu_memory_buffer_manager.h" |
67 #include "content/browser/gpu/compositor_util.h" | 68 #include "content/browser/gpu/compositor_util.h" |
68 #include "content/browser/gpu/gpu_data_manager_impl.h" | 69 #include "content/browser/gpu/gpu_data_manager_impl.h" |
69 #include "content/browser/gpu/gpu_process_host.h" | 70 #include "content/browser/gpu/gpu_process_host.h" |
70 #include "content/browser/gpu/shader_disk_cache.h" | 71 #include "content/browser/gpu/shader_disk_cache.h" |
71 #include "content/browser/histogram_message_filter.h" | 72 #include "content/browser/histogram_message_filter.h" |
72 #include "content/browser/indexed_db/indexed_db_context_impl.h" | 73 #include "content/browser/indexed_db/indexed_db_context_impl.h" |
73 #include "content/browser/indexed_db/indexed_db_dispatcher_host.h" | 74 #include "content/browser/indexed_db/indexed_db_dispatcher_host.h" |
(...skipping 962 matching lines...) Loading... |
1036 void RenderProcessHostImpl::RegisterMojoServices() { | 1037 void RenderProcessHostImpl::RegisterMojoServices() { |
1037 #if !defined(OS_ANDROID) | 1038 #if !defined(OS_ANDROID) |
1038 mojo_application_host_->service_registry()->AddService( | 1039 mojo_application_host_->service_registry()->AddService( |
1039 base::Bind(&device::BatteryMonitorImpl::Create)); | 1040 base::Bind(&device::BatteryMonitorImpl::Create)); |
1040 | 1041 |
1041 mojo_application_host_->service_registry()->AddService( | 1042 mojo_application_host_->service_registry()->AddService( |
1042 base::Bind(&device::VibrationManagerImpl::Create)); | 1043 base::Bind(&device::VibrationManagerImpl::Create)); |
1043 #endif | 1044 #endif |
1044 | 1045 |
1045 mojo_application_host_->service_registry()->AddService( | 1046 mojo_application_host_->service_registry()->AddService( |
| 1047 base::Bind(&FontAccessServiceImpl::Create)); |
| 1048 |
| 1049 mojo_application_host_->service_registry()->AddService( |
1046 base::Bind(&PermissionServiceContext::CreateService, | 1050 base::Bind(&PermissionServiceContext::CreateService, |
1047 base::Unretained(permission_service_context_.get()))); | 1051 base::Unretained(permission_service_context_.get()))); |
1048 | 1052 |
1049 mojo_application_host_->service_registry()->AddService(base::Bind( | 1053 mojo_application_host_->service_registry()->AddService(base::Bind( |
1050 &BackgroundSyncContextImpl::CreateService, | 1054 &BackgroundSyncContextImpl::CreateService, |
1051 base::Unretained(storage_partition_impl_->GetBackgroundSyncContext()))); | 1055 base::Unretained(storage_partition_impl_->GetBackgroundSyncContext()))); |
1052 | 1056 |
1053 mojo_application_host_->service_registry()->AddService(base::Bind( | 1057 mojo_application_host_->service_registry()->AddService(base::Bind( |
1054 &content::ServicePortServiceImpl::Create, | 1058 &content::ServicePortServiceImpl::Create, |
1055 make_scoped_refptr(storage_partition_impl_->GetNavigatorConnectContext()), | 1059 make_scoped_refptr(storage_partition_impl_->GetNavigatorConnectContext()), |
(...skipping 1685 matching lines...) Loading... |
2741 void RenderProcessHostImpl::GetAudioOutputControllers( | 2745 void RenderProcessHostImpl::GetAudioOutputControllers( |
2742 const GetAudioOutputControllersCallback& callback) const { | 2746 const GetAudioOutputControllersCallback& callback) const { |
2743 audio_renderer_host()->GetOutputControllers(callback); | 2747 audio_renderer_host()->GetOutputControllers(callback); |
2744 } | 2748 } |
2745 | 2749 |
2746 BluetoothDispatcherHost* RenderProcessHostImpl::GetBluetoothDispatcherHost() { | 2750 BluetoothDispatcherHost* RenderProcessHostImpl::GetBluetoothDispatcherHost() { |
2747 return bluetooth_dispatcher_host_.get(); | 2751 return bluetooth_dispatcher_host_.get(); |
2748 } | 2752 } |
2749 | 2753 |
2750 } // namespace content | 2754 } // namespace content |
OLD | NEW |