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 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
180 #include "content/browser/android/child_process_launcher_android.h" | 180 #include "content/browser/android/child_process_launcher_android.h" |
181 #include "content/browser/media/android/browser_demuxer_android.h" | 181 #include "content/browser/media/android/browser_demuxer_android.h" |
182 #include "content/browser/mojo/service_registrar_android.h" | 182 #include "content/browser/mojo/service_registrar_android.h" |
183 #include "content/browser/screen_orientation/screen_orientation_message_filter_a
ndroid.h" | 183 #include "content/browser/screen_orientation/screen_orientation_message_filter_a
ndroid.h" |
184 #include "ipc/ipc_sync_channel.h" | 184 #include "ipc/ipc_sync_channel.h" |
185 #endif | 185 #endif |
186 | 186 |
187 #if defined(OS_WIN) | 187 #if defined(OS_WIN) |
188 #include "base/win/scoped_com_initializer.h" | 188 #include "base/win/scoped_com_initializer.h" |
189 #include "base/win/windows_version.h" | 189 #include "base/win/windows_version.h" |
| 190 #include "content/browser/renderer_host/dwrite_font_proxy_message_filter_win.h" |
190 #include "content/common/font_cache_dispatcher_win.h" | 191 #include "content/common/font_cache_dispatcher_win.h" |
191 #include "content/common/sandbox_win.h" | 192 #include "content/common/sandbox_win.h" |
192 #include "sandbox/win/src/sandbox_policy.h" | 193 #include "sandbox/win/src/sandbox_policy.h" |
193 #include "ui/gfx/win/dpi.h" | 194 #include "ui/gfx/win/dpi.h" |
194 #endif | 195 #endif |
195 | 196 |
196 #if defined(OS_MACOSX) && !defined(OS_IOS) | 197 #if defined(OS_MACOSX) && !defined(OS_IOS) |
197 #include "content/browser/bootstrap_sandbox_manager_mac.h" | 198 #include "content/browser/bootstrap_sandbox_manager_mac.h" |
198 #include "content/browser/browser_io_surface_manager_mac.h" | 199 #include "content/browser/browser_io_surface_manager_mac.h" |
199 #include "content/browser/mach_broker_mac.h" | 200 #include "content/browser/mach_broker_mac.h" |
(...skipping 729 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
929 storage_partition_impl_->GetFileSystemContext(), | 930 storage_partition_impl_->GetFileSystemContext(), |
930 ChromeBlobStorageContext::GetFor(browser_context), | 931 ChromeBlobStorageContext::GetFor(browser_context), |
931 StreamContext::GetFor(browser_context))); | 932 StreamContext::GetFor(browser_context))); |
932 AddFilter(new FileUtilitiesMessageFilter(GetID())); | 933 AddFilter(new FileUtilitiesMessageFilter(GetID())); |
933 AddFilter(new MimeRegistryMessageFilter()); | 934 AddFilter(new MimeRegistryMessageFilter()); |
934 AddFilter( | 935 AddFilter( |
935 new DatabaseMessageFilter(storage_partition_impl_->GetDatabaseTracker())); | 936 new DatabaseMessageFilter(storage_partition_impl_->GetDatabaseTracker())); |
936 #if defined(OS_MACOSX) | 937 #if defined(OS_MACOSX) |
937 AddFilter(new TextInputClientMessageFilter(GetID())); | 938 AddFilter(new TextInputClientMessageFilter(GetID())); |
938 #elif defined(OS_WIN) | 939 #elif defined(OS_WIN) |
| 940 AddFilter(new DWriteFontProxyMessageFilter()); |
| 941 |
939 // The FontCacheDispatcher is required only when we're using GDI rendering. | 942 // The FontCacheDispatcher is required only when we're using GDI rendering. |
940 // TODO(scottmg): pdf/ppapi still require the renderer to be able to precache | 943 // TODO(scottmg): pdf/ppapi still require the renderer to be able to precache |
941 // GDI fonts (http://crbug.com/383227), even when using DirectWrite. This | 944 // GDI fonts (http://crbug.com/383227), even when using DirectWrite. This |
942 // should eventually be if (!ShouldUseDirectWrite()) guarded. | 945 // should eventually be if (!ShouldUseDirectWrite()) guarded. |
943 channel_->AddFilter(new FontCacheDispatcher()); | 946 channel_->AddFilter(new FontCacheDispatcher()); |
944 #elif defined(OS_ANDROID) | 947 #elif defined(OS_ANDROID) |
945 browser_demuxer_android_ = new BrowserDemuxerAndroid(); | 948 browser_demuxer_android_ = new BrowserDemuxerAndroid(); |
946 AddFilter(browser_demuxer_android_.get()); | 949 AddFilter(browser_demuxer_android_.get()); |
947 #endif | 950 #endif |
948 #if defined(ENABLE_BROWSER_CDMS) | 951 #if defined(ENABLE_BROWSER_CDMS) |
(...skipping 1716 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2665 void RenderProcessHostImpl::GetAudioOutputControllers( | 2668 void RenderProcessHostImpl::GetAudioOutputControllers( |
2666 const GetAudioOutputControllersCallback& callback) const { | 2669 const GetAudioOutputControllersCallback& callback) const { |
2667 audio_renderer_host()->GetOutputControllers(callback); | 2670 audio_renderer_host()->GetOutputControllers(callback); |
2668 } | 2671 } |
2669 | 2672 |
2670 BluetoothDispatcherHost* RenderProcessHostImpl::GetBluetoothDispatcherHost() { | 2673 BluetoothDispatcherHost* RenderProcessHostImpl::GetBluetoothDispatcherHost() { |
2671 return bluetooth_dispatcher_host_.get(); | 2674 return bluetooth_dispatcher_host_.get(); |
2672 } | 2675 } |
2673 | 2676 |
2674 } // namespace content | 2677 } // namespace content |
OLD | NEW |