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

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: Add file reading failure checking. 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 989 matching lines...) Expand 10 before | Expand all | Expand 10 after
1063 void RenderProcessHostImpl::RegisterMojoServices() { 1064 void RenderProcessHostImpl::RegisterMojoServices() {
1064 #if !defined(OS_ANDROID) 1065 #if !defined(OS_ANDROID)
1065 mojo_application_host_->service_registry()->AddService( 1066 mojo_application_host_->service_registry()->AddService(
1066 base::Bind(&device::BatteryMonitorImpl::Create)); 1067 base::Bind(&device::BatteryMonitorImpl::Create));
1067 1068
1068 mojo_application_host_->service_registry()->AddService( 1069 mojo_application_host_->service_registry()->AddService(
1069 base::Bind(&device::VibrationManagerImpl::Create)); 1070 base::Bind(&device::VibrationManagerImpl::Create));
1070 #endif 1071 #endif
1071 1072
1072 mojo_application_host_->service_registry()->AddService( 1073 mojo_application_host_->service_registry()->AddService(
1074 base::Bind(&FontAccessServiceImpl::Create));
ncarter (slow) 2016/02/09 18:59:45 I'd like to see some browser tests (or layout test
Daniel Nishi 2016/02/11 00:23:50 Which part are we looking to get under the test ha
1075
1076 mojo_application_host_->service_registry()->AddService(
1073 base::Bind(&PermissionServiceContext::CreateService, 1077 base::Bind(&PermissionServiceContext::CreateService,
1074 base::Unretained(permission_service_context_.get()))); 1078 base::Unretained(permission_service_context_.get())));
1075 1079
1076 mojo_application_host_->service_registry()->AddService(base::Bind( 1080 mojo_application_host_->service_registry()->AddService(base::Bind(
1077 &BackgroundSyncContextImpl::CreateService, 1081 &BackgroundSyncContextImpl::CreateService,
1078 base::Unretained(storage_partition_impl_->GetBackgroundSyncContext()))); 1082 base::Unretained(storage_partition_impl_->GetBackgroundSyncContext())));
1079 1083
1080 mojo_application_host_->service_registry()->AddService(base::Bind( 1084 mojo_application_host_->service_registry()->AddService(base::Bind(
1081 &content::ServicePortServiceImpl::Create, 1085 &content::ServicePortServiceImpl::Create,
1082 make_scoped_refptr(storage_partition_impl_->GetNavigatorConnectContext()), 1086 make_scoped_refptr(storage_partition_impl_->GetNavigatorConnectContext()),
(...skipping 1705 matching lines...) Expand 10 before | Expand all | Expand 10 after
2788 void RenderProcessHostImpl::GetAudioOutputControllers( 2792 void RenderProcessHostImpl::GetAudioOutputControllers(
2789 const GetAudioOutputControllersCallback& callback) const { 2793 const GetAudioOutputControllersCallback& callback) const {
2790 audio_renderer_host()->GetOutputControllers(callback); 2794 audio_renderer_host()->GetOutputControllers(callback);
2791 } 2795 }
2792 2796
2793 BluetoothDispatcherHost* RenderProcessHostImpl::GetBluetoothDispatcherHost() { 2797 BluetoothDispatcherHost* RenderProcessHostImpl::GetBluetoothDispatcherHost() {
2794 return bluetooth_dispatcher_host_.get(); 2798 return bluetooth_dispatcher_host_.get();
2795 } 2799 }
2796 2800
2797 } // namespace content 2801 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698