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

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

Issue 1523053004: Remove unneeded code (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@dwfontrevert2
Patch Set: Created 5 years 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 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 #include "content/browser/android/child_process_launcher_android.h" 181 #include "content/browser/android/child_process_launcher_android.h"
182 #include "content/browser/media/android/browser_demuxer_android.h" 182 #include "content/browser/media/android/browser_demuxer_android.h"
183 #include "content/browser/mojo/service_registrar_android.h" 183 #include "content/browser/mojo/service_registrar_android.h"
184 #include "content/browser/screen_orientation/screen_orientation_message_filter_a ndroid.h" 184 #include "content/browser/screen_orientation/screen_orientation_message_filter_a ndroid.h"
185 #include "ipc/ipc_sync_channel.h" 185 #include "ipc/ipc_sync_channel.h"
186 #endif 186 #endif
187 187
188 #if defined(OS_WIN) 188 #if defined(OS_WIN)
189 #include "base/win/scoped_com_initializer.h" 189 #include "base/win/scoped_com_initializer.h"
190 #include "base/win/windows_version.h" 190 #include "base/win/windows_version.h"
191 #include "content/browser/renderer_host/dwrite_font_proxy_message_filter_win.h"
191 #include "content/common/font_cache_dispatcher_win.h" 192 #include "content/common/font_cache_dispatcher_win.h"
192 #include "content/common/sandbox_win.h" 193 #include "content/common/sandbox_win.h"
193 #include "sandbox/win/src/sandbox_policy.h" 194 #include "sandbox/win/src/sandbox_policy.h"
194 #include "ui/gfx/win/dpi.h" 195 #include "ui/gfx/win/dpi.h"
195 #endif 196 #endif
196 197
197 #if defined(OS_MACOSX) && !defined(OS_IOS) 198 #if defined(OS_MACOSX) && !defined(OS_IOS)
198 #include "content/browser/bootstrap_sandbox_manager_mac.h" 199 #include "content/browser/bootstrap_sandbox_manager_mac.h"
199 #include "content/browser/browser_io_surface_manager_mac.h" 200 #include "content/browser/browser_io_surface_manager_mac.h"
200 #include "content/browser/mach_broker_mac.h" 201 #include "content/browser/mach_broker_mac.h"
(...skipping 729 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 1720 matching lines...) Expand 10 before | Expand all | Expand 10 after
2670 void RenderProcessHostImpl::GetAudioOutputControllers( 2673 void RenderProcessHostImpl::GetAudioOutputControllers(
2671 const GetAudioOutputControllersCallback& callback) const { 2674 const GetAudioOutputControllersCallback& callback) const {
2672 audio_renderer_host()->GetOutputControllers(callback); 2675 audio_renderer_host()->GetOutputControllers(callback);
2673 } 2676 }
2674 2677
2675 BluetoothDispatcherHost* RenderProcessHostImpl::GetBluetoothDispatcherHost() { 2678 BluetoothDispatcherHost* RenderProcessHostImpl::GetBluetoothDispatcherHost() {
2676 return bluetooth_dispatcher_host_.get(); 2679 return bluetooth_dispatcher_host_.get();
2677 } 2680 }
2678 2681
2679 } // namespace content 2682 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/ppapi_plugin_process_host.cc ('k') | content/common/dwrite_font_platform_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698