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