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

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

Issue 1615133002: Implement API for accessing fonts installed locally on the system. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressing Mounir's comments. Created 4 years, 10 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 965 matching lines...) Expand 10 before | Expand all | Expand 10 after
1039 void RenderProcessHostImpl::RegisterMojoServices() { 1040 void RenderProcessHostImpl::RegisterMojoServices() {
1040 #if !defined(OS_ANDROID) 1041 #if !defined(OS_ANDROID)
1041 mojo_application_host_->service_registry()->AddService( 1042 mojo_application_host_->service_registry()->AddService(
1042 base::Bind(&device::BatteryMonitorImpl::Create)); 1043 base::Bind(&device::BatteryMonitorImpl::Create));
1043 1044
1044 mojo_application_host_->service_registry()->AddService( 1045 mojo_application_host_->service_registry()->AddService(
1045 base::Bind(&device::VibrationManagerImpl::Create)); 1046 base::Bind(&device::VibrationManagerImpl::Create));
1046 #endif 1047 #endif
1047 1048
1048 mojo_application_host_->service_registry()->AddService( 1049 mojo_application_host_->service_registry()->AddService(
1050 base::Bind(&FontAccessServiceImpl::Create));
1051
1052 mojo_application_host_->service_registry()->AddService(
1049 base::Bind(&PermissionServiceContext::CreateService, 1053 base::Bind(&PermissionServiceContext::CreateService,
1050 base::Unretained(permission_service_context_.get()))); 1054 base::Unretained(permission_service_context_.get())));
1051 1055
1052 mojo_application_host_->service_registry()->AddService(base::Bind( 1056 mojo_application_host_->service_registry()->AddService(base::Bind(
1053 &BackgroundSyncContextImpl::CreateService, 1057 &BackgroundSyncContextImpl::CreateService,
1054 base::Unretained(storage_partition_impl_->GetBackgroundSyncContext()))); 1058 base::Unretained(storage_partition_impl_->GetBackgroundSyncContext())));
1055 1059
1056 mojo_application_host_->service_registry()->AddService(base::Bind( 1060 mojo_application_host_->service_registry()->AddService(base::Bind(
1057 &content::ServicePortServiceImpl::Create, 1061 &content::ServicePortServiceImpl::Create,
1058 make_scoped_refptr(storage_partition_impl_->GetNavigatorConnectContext()), 1062 make_scoped_refptr(storage_partition_impl_->GetNavigatorConnectContext()),
(...skipping 1705 matching lines...) Expand 10 before | Expand all | Expand 10 after
2764 void RenderProcessHostImpl::GetAudioOutputControllers( 2768 void RenderProcessHostImpl::GetAudioOutputControllers(
2765 const GetAudioOutputControllersCallback& callback) const { 2769 const GetAudioOutputControllersCallback& callback) const {
2766 audio_renderer_host()->GetOutputControllers(callback); 2770 audio_renderer_host()->GetOutputControllers(callback);
2767 } 2771 }
2768 2772
2769 BluetoothDispatcherHost* RenderProcessHostImpl::GetBluetoothDispatcherHost() { 2773 BluetoothDispatcherHost* RenderProcessHostImpl::GetBluetoothDispatcherHost() {
2770 return bluetooth_dispatcher_host_.get(); 2774 return bluetooth_dispatcher_host_.get();
2771 } 2775 }
2772 2776
2773 } // namespace content 2777 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698