| 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 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 179 #include "content/browser/android/child_process_launcher_android.h" | 179 #include "content/browser/android/child_process_launcher_android.h" |
| 180 #include "content/browser/media/android/browser_demuxer_android.h" | 180 #include "content/browser/media/android/browser_demuxer_android.h" |
| 181 #include "content/browser/mojo/service_registrar_android.h" | 181 #include "content/browser/mojo/service_registrar_android.h" |
| 182 #include "content/browser/screen_orientation/screen_orientation_message_filter_a
ndroid.h" | 182 #include "content/browser/screen_orientation/screen_orientation_message_filter_a
ndroid.h" |
| 183 #include "ipc/ipc_sync_channel.h" | 183 #include "ipc/ipc_sync_channel.h" |
| 184 #endif | 184 #endif |
| 185 | 185 |
| 186 #if defined(OS_WIN) | 186 #if defined(OS_WIN) |
| 187 #include "base/win/scoped_com_initializer.h" | 187 #include "base/win/scoped_com_initializer.h" |
| 188 #include "base/win/windows_version.h" | 188 #include "base/win/windows_version.h" |
| 189 #include "content/browser/renderer_host/dwrite_font_proxy_message_filter_win.h" |
| 189 #include "content/common/font_cache_dispatcher_win.h" | 190 #include "content/common/font_cache_dispatcher_win.h" |
| 190 #include "content/common/sandbox_win.h" | 191 #include "content/common/sandbox_win.h" |
| 191 #include "sandbox/win/src/sandbox_policy.h" | 192 #include "sandbox/win/src/sandbox_policy.h" |
| 192 #include "ui/gfx/win/dpi.h" | 193 #include "ui/gfx/win/dpi.h" |
| 193 #endif | 194 #endif |
| 194 | 195 |
| 195 #if defined(OS_MACOSX) && !defined(OS_IOS) | 196 #if defined(OS_MACOSX) && !defined(OS_IOS) |
| 196 #include "content/browser/bootstrap_sandbox_manager_mac.h" | 197 #include "content/browser/bootstrap_sandbox_manager_mac.h" |
| 197 #include "content/browser/browser_io_surface_manager_mac.h" | 198 #include "content/browser/browser_io_surface_manager_mac.h" |
| 198 #include "content/browser/mach_broker_mac.h" | 199 #include "content/browser/mach_broker_mac.h" |
| (...skipping 701 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 900 storage_partition_impl_->GetFileSystemContext(), | 901 storage_partition_impl_->GetFileSystemContext(), |
| 901 ChromeBlobStorageContext::GetFor(browser_context), | 902 ChromeBlobStorageContext::GetFor(browser_context), |
| 902 StreamContext::GetFor(browser_context))); | 903 StreamContext::GetFor(browser_context))); |
| 903 AddFilter(new FileUtilitiesMessageFilter(GetID())); | 904 AddFilter(new FileUtilitiesMessageFilter(GetID())); |
| 904 AddFilter(new MimeRegistryMessageFilter()); | 905 AddFilter(new MimeRegistryMessageFilter()); |
| 905 AddFilter( | 906 AddFilter( |
| 906 new DatabaseMessageFilter(storage_partition_impl_->GetDatabaseTracker())); | 907 new DatabaseMessageFilter(storage_partition_impl_->GetDatabaseTracker())); |
| 907 #if defined(OS_MACOSX) | 908 #if defined(OS_MACOSX) |
| 908 AddFilter(new TextInputClientMessageFilter(GetID())); | 909 AddFilter(new TextInputClientMessageFilter(GetID())); |
| 909 #elif defined(OS_WIN) | 910 #elif defined(OS_WIN) |
| 911 AddFilter(new DWriteFontProxyMessageFilter()); |
| 912 |
| 910 // The FontCacheDispatcher is required only when we're using GDI rendering. | 913 // The FontCacheDispatcher is required only when we're using GDI rendering. |
| 911 // TODO(scottmg): pdf/ppapi still require the renderer to be able to precache | 914 // TODO(scottmg): pdf/ppapi still require the renderer to be able to precache |
| 912 // GDI fonts (http://crbug.com/383227), even when using DirectWrite. This | 915 // GDI fonts (http://crbug.com/383227), even when using DirectWrite. This |
| 913 // should eventually be if (!ShouldUseDirectWrite()) guarded. | 916 // should eventually be if (!ShouldUseDirectWrite()) guarded. |
| 914 channel_->AddFilter(new FontCacheDispatcher()); | 917 channel_->AddFilter(new FontCacheDispatcher()); |
| 915 #elif defined(OS_ANDROID) | 918 #elif defined(OS_ANDROID) |
| 916 browser_demuxer_android_ = new BrowserDemuxerAndroid(); | 919 browser_demuxer_android_ = new BrowserDemuxerAndroid(); |
| 917 AddFilter(browser_demuxer_android_.get()); | 920 AddFilter(browser_demuxer_android_.get()); |
| 918 #endif | 921 #endif |
| 919 #if defined(ENABLE_BROWSER_CDMS) | 922 #if defined(ENABLE_BROWSER_CDMS) |
| (...skipping 1708 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2628 void RenderProcessHostImpl::GetAudioOutputControllers( | 2631 void RenderProcessHostImpl::GetAudioOutputControllers( |
| 2629 const GetAudioOutputControllersCallback& callback) const { | 2632 const GetAudioOutputControllersCallback& callback) const { |
| 2630 audio_renderer_host()->GetOutputControllers(callback); | 2633 audio_renderer_host()->GetOutputControllers(callback); |
| 2631 } | 2634 } |
| 2632 | 2635 |
| 2633 BluetoothDispatcherHost* RenderProcessHostImpl::GetBluetoothDispatcherHost() { | 2636 BluetoothDispatcherHost* RenderProcessHostImpl::GetBluetoothDispatcherHost() { |
| 2634 return bluetooth_dispatcher_host_.get(); | 2637 return bluetooth_dispatcher_host_.get(); |
| 2635 } | 2638 } |
| 2636 | 2639 |
| 2637 } // namespace content | 2640 } // namespace content |
| OLD | NEW |