Chromium Code Reviews| 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 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 178 #include "content/browser/android/child_process_launcher_android.h" | 178 #include "content/browser/android/child_process_launcher_android.h" |
| 179 #include "content/browser/media/android/browser_demuxer_android.h" | 179 #include "content/browser/media/android/browser_demuxer_android.h" |
| 180 #include "content/browser/mojo/service_registrar_android.h" | 180 #include "content/browser/mojo/service_registrar_android.h" |
| 181 #include "content/browser/screen_orientation/screen_orientation_message_filter_a ndroid.h" | 181 #include "content/browser/screen_orientation/screen_orientation_message_filter_a ndroid.h" |
| 182 #include "ipc/ipc_sync_channel.h" | 182 #include "ipc/ipc_sync_channel.h" |
| 183 #endif | 183 #endif |
| 184 | 184 |
| 185 #if defined(OS_WIN) | 185 #if defined(OS_WIN) |
| 186 #include "base/win/scoped_com_initializer.h" | 186 #include "base/win/scoped_com_initializer.h" |
| 187 #include "base/win/windows_version.h" | 187 #include "base/win/windows_version.h" |
| 188 #include "content/browser/renderer_host/dwrite_font_proxy_message_filter_win.h" | |
| 188 #include "content/common/font_cache_dispatcher_win.h" | 189 #include "content/common/font_cache_dispatcher_win.h" |
| 189 #include "content/common/sandbox_win.h" | 190 #include "content/common/sandbox_win.h" |
| 190 #include "sandbox/win/src/sandbox_policy.h" | 191 #include "sandbox/win/src/sandbox_policy.h" |
| 191 #include "ui/gfx/win/dpi.h" | 192 #include "ui/gfx/win/dpi.h" |
| 192 #endif | 193 #endif |
| 193 | 194 |
| 194 #if defined(OS_MACOSX) && !defined(OS_IOS) | 195 #if defined(OS_MACOSX) && !defined(OS_IOS) |
| 195 #include "content/browser/bootstrap_sandbox_manager_mac.h" | 196 #include "content/browser/bootstrap_sandbox_manager_mac.h" |
| 196 #include "content/browser/browser_io_surface_manager_mac.h" | 197 #include "content/browser/browser_io_surface_manager_mac.h" |
| 197 #include "content/browser/mach_broker_mac.h" | 198 #include "content/browser/mach_broker_mac.h" |
| (...skipping 794 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 992 GetID(), storage_partition_impl_->GetServiceWorkerContext())); | 993 GetID(), storage_partition_impl_->GetServiceWorkerContext())); |
| 993 #if defined(OS_ANDROID) | 994 #if defined(OS_ANDROID) |
| 994 AddFilter(new ScreenOrientationMessageFilterAndroid()); | 995 AddFilter(new ScreenOrientationMessageFilterAndroid()); |
| 995 #endif | 996 #endif |
| 996 AddFilter(new GeofencingDispatcherHost( | 997 AddFilter(new GeofencingDispatcherHost( |
| 997 storage_partition_impl_->GetGeofencingManager())); | 998 storage_partition_impl_->GetGeofencingManager())); |
| 998 if (browser_command_line.HasSwitch(switches::kEnableWebBluetooth)) { | 999 if (browser_command_line.HasSwitch(switches::kEnableWebBluetooth)) { |
| 999 bluetooth_dispatcher_host_ = new BluetoothDispatcherHost(GetID()); | 1000 bluetooth_dispatcher_host_ = new BluetoothDispatcherHost(GetID()); |
| 1000 AddFilter(bluetooth_dispatcher_host_.get()); | 1001 AddFilter(bluetooth_dispatcher_host_.get()); |
| 1001 } | 1002 } |
| 1003 | |
| 1004 #if defined(OS_WIN) | |
|
jam
2015/11/03 00:18:54
there's another OS_WIN above. use that.
Ilya Kulshin
2015/11/03 18:56:21
Done.
| |
| 1005 AddFilter(new DWriteFontProxyMessageFilter()); | |
| 1006 #endif | |
| 1002 } | 1007 } |
| 1003 | 1008 |
| 1004 void RenderProcessHostImpl::RegisterMojoServices() { | 1009 void RenderProcessHostImpl::RegisterMojoServices() { |
| 1005 #if !defined(OS_ANDROID) | 1010 #if !defined(OS_ANDROID) |
| 1006 mojo_application_host_->service_registry()->AddService( | 1011 mojo_application_host_->service_registry()->AddService( |
| 1007 base::Bind(&device::BatteryMonitorImpl::Create)); | 1012 base::Bind(&device::BatteryMonitorImpl::Create)); |
| 1008 | 1013 |
| 1009 mojo_application_host_->service_registry()->AddService( | 1014 mojo_application_host_->service_registry()->AddService( |
| 1010 base::Bind(&device::VibrationManagerImpl::Create)); | 1015 base::Bind(&device::VibrationManagerImpl::Create)); |
| 1011 #endif | 1016 #endif |
| (...skipping 1611 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2623 void RenderProcessHostImpl::GetAudioOutputControllers( | 2628 void RenderProcessHostImpl::GetAudioOutputControllers( |
| 2624 const GetAudioOutputControllersCallback& callback) const { | 2629 const GetAudioOutputControllersCallback& callback) const { |
| 2625 audio_renderer_host()->GetOutputControllers(callback); | 2630 audio_renderer_host()->GetOutputControllers(callback); |
| 2626 } | 2631 } |
| 2627 | 2632 |
| 2628 BluetoothDispatcherHost* RenderProcessHostImpl::GetBluetoothDispatcherHost() { | 2633 BluetoothDispatcherHost* RenderProcessHostImpl::GetBluetoothDispatcherHost() { |
| 2629 return bluetooth_dispatcher_host_.get(); | 2634 return bluetooth_dispatcher_host_.get(); |
| 2630 } | 2635 } |
| 2631 | 2636 |
| 2632 } // namespace content | 2637 } // namespace content |
| OLD | NEW |