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/mach_broker_mac.h" | 201 #include "content/browser/mach_broker_mac.h" |
201 #endif | 202 #endif |
(...skipping 728 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
930 storage_partition_impl_->GetFileSystemContext(), | 931 storage_partition_impl_->GetFileSystemContext(), |
931 ChromeBlobStorageContext::GetFor(browser_context), | 932 ChromeBlobStorageContext::GetFor(browser_context), |
932 StreamContext::GetFor(browser_context))); | 933 StreamContext::GetFor(browser_context))); |
933 AddFilter(new FileUtilitiesMessageFilter(GetID())); | 934 AddFilter(new FileUtilitiesMessageFilter(GetID())); |
934 AddFilter(new MimeRegistryMessageFilter()); | 935 AddFilter(new MimeRegistryMessageFilter()); |
935 AddFilter( | 936 AddFilter( |
936 new DatabaseMessageFilter(storage_partition_impl_->GetDatabaseTracker())); | 937 new DatabaseMessageFilter(storage_partition_impl_->GetDatabaseTracker())); |
937 #if defined(OS_MACOSX) | 938 #if defined(OS_MACOSX) |
938 AddFilter(new TextInputClientMessageFilter(GetID())); | 939 AddFilter(new TextInputClientMessageFilter(GetID())); |
939 #elif defined(OS_WIN) | 940 #elif defined(OS_WIN) |
| 941 AddFilter(new DWriteFontProxyMessageFilter()); |
| 942 |
940 // The FontCacheDispatcher is required only when we're using GDI rendering. | 943 // The FontCacheDispatcher is required only when we're using GDI rendering. |
941 // TODO(scottmg): pdf/ppapi still require the renderer to be able to precache | 944 // TODO(scottmg): pdf/ppapi still require the renderer to be able to precache |
942 // GDI fonts (http://crbug.com/383227), even when using DirectWrite. This | 945 // GDI fonts (http://crbug.com/383227), even when using DirectWrite. This |
943 // should eventually be if (!ShouldUseDirectWrite()) guarded. | 946 // should eventually be if (!ShouldUseDirectWrite()) guarded. |
944 channel_->AddFilter(new FontCacheDispatcher()); | 947 channel_->AddFilter(new FontCacheDispatcher()); |
945 #elif defined(OS_ANDROID) | 948 #elif defined(OS_ANDROID) |
946 browser_demuxer_android_ = new BrowserDemuxerAndroid(); | 949 browser_demuxer_android_ = new BrowserDemuxerAndroid(); |
947 AddFilter(browser_demuxer_android_.get()); | 950 AddFilter(browser_demuxer_android_.get()); |
948 #endif | 951 #endif |
949 #if defined(ENABLE_BROWSER_CDMS) | 952 #if defined(ENABLE_BROWSER_CDMS) |
(...skipping 1794 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2744 void RenderProcessHostImpl::GetAudioOutputControllers( | 2747 void RenderProcessHostImpl::GetAudioOutputControllers( |
2745 const GetAudioOutputControllersCallback& callback) const { | 2748 const GetAudioOutputControllersCallback& callback) const { |
2746 audio_renderer_host()->GetOutputControllers(callback); | 2749 audio_renderer_host()->GetOutputControllers(callback); |
2747 } | 2750 } |
2748 | 2751 |
2749 BluetoothDispatcherHost* RenderProcessHostImpl::GetBluetoothDispatcherHost() { | 2752 BluetoothDispatcherHost* RenderProcessHostImpl::GetBluetoothDispatcherHost() { |
2750 return bluetooth_dispatcher_host_.get(); | 2753 return bluetooth_dispatcher_host_.get(); |
2751 } | 2754 } |
2752 | 2755 |
2753 } // namespace content | 2756 } // namespace content |
OLD | NEW |