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...) Expand 10 before | Expand all | Expand 10 after 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 992 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1066 void RenderProcessHostImpl::RegisterMojoServices() { | 1067 void RenderProcessHostImpl::RegisterMojoServices() { |
1067 #if !defined(OS_ANDROID) | 1068 #if !defined(OS_ANDROID) |
1068 mojo_application_host_->service_registry()->AddService( | 1069 mojo_application_host_->service_registry()->AddService( |
1069 base::Bind(&device::BatteryMonitorImpl::Create)); | 1070 base::Bind(&device::BatteryMonitorImpl::Create)); |
1070 | 1071 |
1071 mojo_application_host_->service_registry()->AddService( | 1072 mojo_application_host_->service_registry()->AddService( |
1072 base::Bind(&device::VibrationManagerImpl::Create)); | 1073 base::Bind(&device::VibrationManagerImpl::Create)); |
1073 #endif | 1074 #endif |
1074 | 1075 |
1075 mojo_application_host_->service_registry()->AddService( | 1076 mojo_application_host_->service_registry()->AddService( |
| 1077 base::Bind(&FontAccessServiceImpl::Create)); |
| 1078 |
| 1079 mojo_application_host_->service_registry()->AddService( |
1076 base::Bind(&PermissionServiceContext::CreateService, | 1080 base::Bind(&PermissionServiceContext::CreateService, |
1077 base::Unretained(permission_service_context_.get()))); | 1081 base::Unretained(permission_service_context_.get()))); |
1078 | 1082 |
1079 mojo_application_host_->service_registry()->AddService(base::Bind( | 1083 mojo_application_host_->service_registry()->AddService(base::Bind( |
1080 &BackgroundSyncContextImpl::CreateService, | 1084 &BackgroundSyncContextImpl::CreateService, |
1081 base::Unretained(storage_partition_impl_->GetBackgroundSyncContext()))); | 1085 base::Unretained(storage_partition_impl_->GetBackgroundSyncContext()))); |
1082 | 1086 |
1083 mojo_application_host_->service_registry()->AddService(base::Bind( | 1087 mojo_application_host_->service_registry()->AddService(base::Bind( |
1084 &content::ServicePortServiceImpl::Create, | 1088 &content::ServicePortServiceImpl::Create, |
1085 make_scoped_refptr(storage_partition_impl_->GetNavigatorConnectContext()), | 1089 make_scoped_refptr(storage_partition_impl_->GetNavigatorConnectContext()), |
(...skipping 1697 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2783 void RenderProcessHostImpl::GetAudioOutputControllers( | 2787 void RenderProcessHostImpl::GetAudioOutputControllers( |
2784 const GetAudioOutputControllersCallback& callback) const { | 2788 const GetAudioOutputControllersCallback& callback) const { |
2785 audio_renderer_host()->GetOutputControllers(callback); | 2789 audio_renderer_host()->GetOutputControllers(callback); |
2786 } | 2790 } |
2787 | 2791 |
2788 BluetoothDispatcherHost* RenderProcessHostImpl::GetBluetoothDispatcherHost() { | 2792 BluetoothDispatcherHost* RenderProcessHostImpl::GetBluetoothDispatcherHost() { |
2789 return bluetooth_dispatcher_host_.get(); | 2793 return bluetooth_dispatcher_host_.get(); |
2790 } | 2794 } |
2791 | 2795 |
2792 } // namespace content | 2796 } // namespace content |
OLD | NEW |