Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4)

Side by Side Diff: content/browser/renderer_host/render_process_host_impl.cc

Issue 1378353006: Implementation of dwrite font proxy and removal of dwrite font cache (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rename locals to match style guide Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 701 matching lines...) Expand 10 before | Expand all | Expand 10 after
899 storage_partition_impl_->GetFileSystemContext(), 900 storage_partition_impl_->GetFileSystemContext(),
900 ChromeBlobStorageContext::GetFor(browser_context), 901 ChromeBlobStorageContext::GetFor(browser_context),
901 StreamContext::GetFor(browser_context))); 902 StreamContext::GetFor(browser_context)));
902 AddFilter(new FileUtilitiesMessageFilter(GetID())); 903 AddFilter(new FileUtilitiesMessageFilter(GetID()));
903 AddFilter(new MimeRegistryMessageFilter()); 904 AddFilter(new MimeRegistryMessageFilter());
904 AddFilter( 905 AddFilter(
905 new DatabaseMessageFilter(storage_partition_impl_->GetDatabaseTracker())); 906 new DatabaseMessageFilter(storage_partition_impl_->GetDatabaseTracker()));
906 #if defined(OS_MACOSX) 907 #if defined(OS_MACOSX)
907 AddFilter(new TextInputClientMessageFilter(GetID())); 908 AddFilter(new TextInputClientMessageFilter(GetID()));
908 #elif defined(OS_WIN) 909 #elif defined(OS_WIN)
910 AddFilter(new DWriteFontProxyMessageFilter());
911
909 // The FontCacheDispatcher is required only when we're using GDI rendering. 912 // The FontCacheDispatcher is required only when we're using GDI rendering.
910 // TODO(scottmg): pdf/ppapi still require the renderer to be able to precache 913 // TODO(scottmg): pdf/ppapi still require the renderer to be able to precache
911 // GDI fonts (http://crbug.com/383227), even when using DirectWrite. This 914 // GDI fonts (http://crbug.com/383227), even when using DirectWrite. This
912 // should eventually be if (!ShouldUseDirectWrite()) guarded. 915 // should eventually be if (!ShouldUseDirectWrite()) guarded.
913 channel_->AddFilter(new FontCacheDispatcher()); 916 channel_->AddFilter(new FontCacheDispatcher());
914 #elif defined(OS_ANDROID) 917 #elif defined(OS_ANDROID)
915 browser_demuxer_android_ = new BrowserDemuxerAndroid(); 918 browser_demuxer_android_ = new BrowserDemuxerAndroid();
916 AddFilter(browser_demuxer_android_.get()); 919 AddFilter(browser_demuxer_android_.get());
917 #endif 920 #endif
918 #if defined(ENABLE_BROWSER_CDMS) 921 #if defined(ENABLE_BROWSER_CDMS)
(...skipping 1704 matching lines...) Expand 10 before | Expand all | Expand 10 after
2623 void RenderProcessHostImpl::GetAudioOutputControllers( 2626 void RenderProcessHostImpl::GetAudioOutputControllers(
2624 const GetAudioOutputControllersCallback& callback) const { 2627 const GetAudioOutputControllersCallback& callback) const {
2625 audio_renderer_host()->GetOutputControllers(callback); 2628 audio_renderer_host()->GetOutputControllers(callback);
2626 } 2629 }
2627 2630
2628 BluetoothDispatcherHost* RenderProcessHostImpl::GetBluetoothDispatcherHost() { 2631 BluetoothDispatcherHost* RenderProcessHostImpl::GetBluetoothDispatcherHost() {
2629 return bluetooth_dispatcher_host_.get(); 2632 return bluetooth_dispatcher_host_.get();
2630 } 2633 }
2631 2634
2632 } // namespace content 2635 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698