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

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

Issue 331463002: Re-allow PreCacheFont for GDI access for pdf.dll (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: formatting Created 6 years, 6 months 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 | Annotate | Revision Log
« no previous file with comments | « content/browser/renderer_host/render_message_filter.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 773 matching lines...) Expand 10 before | Expand all | Expand 10 after
784 ChromeBlobStorageContext::GetFor(browser_context), 784 ChromeBlobStorageContext::GetFor(browser_context),
785 StreamContext::GetFor(browser_context))); 785 StreamContext::GetFor(browser_context)));
786 AddFilter(new FileUtilitiesMessageFilter(GetID())); 786 AddFilter(new FileUtilitiesMessageFilter(GetID()));
787 AddFilter(new MimeRegistryMessageFilter()); 787 AddFilter(new MimeRegistryMessageFilter());
788 AddFilter(new DatabaseMessageFilter( 788 AddFilter(new DatabaseMessageFilter(
789 storage_partition_impl_->GetDatabaseTracker())); 789 storage_partition_impl_->GetDatabaseTracker()));
790 #if defined(OS_MACOSX) 790 #if defined(OS_MACOSX)
791 AddFilter(new TextInputClientMessageFilter(GetID())); 791 AddFilter(new TextInputClientMessageFilter(GetID()));
792 #elif defined(OS_WIN) 792 #elif defined(OS_WIN)
793 // The FontCacheDispatcher is required only when we're using GDI rendering. 793 // The FontCacheDispatcher is required only when we're using GDI rendering.
794 if (!ShouldUseDirectWrite()) 794 // TODO(scottmg): pdf/ppapi still require the renderer to be able to precache
795 channel_->AddFilter(new FontCacheDispatcher()); 795 // GDI fonts (http://crbug.com/383227), even when using DirectWrite. This
796 // should eventually be if (!ShouldUseDirectWrite()) guarded.
797 channel_->AddFilter(new FontCacheDispatcher());
796 #elif defined(OS_ANDROID) 798 #elif defined(OS_ANDROID)
797 browser_demuxer_android_ = new BrowserDemuxerAndroid(); 799 browser_demuxer_android_ = new BrowserDemuxerAndroid();
798 AddFilter(browser_demuxer_android_); 800 AddFilter(browser_demuxer_android_);
799 #endif 801 #endif
800 802
801 SocketStreamDispatcherHost::GetRequestContextCallback 803 SocketStreamDispatcherHost::GetRequestContextCallback
802 request_context_callback( 804 request_context_callback(
803 base::Bind(&GetRequestContext, request_context, 805 base::Bind(&GetRequestContext, request_context,
804 media_request_context)); 806 media_request_context));
805 807
(...skipping 1494 matching lines...) Expand 10 before | Expand all | Expand 10 after
2300 void RenderProcessHostImpl::GpuMemoryBufferAllocated( 2302 void RenderProcessHostImpl::GpuMemoryBufferAllocated(
2301 IPC::Message* reply, 2303 IPC::Message* reply,
2302 const gfx::GpuMemoryBufferHandle& handle) { 2304 const gfx::GpuMemoryBufferHandle& handle) {
2303 DCHECK_CURRENTLY_ON(BrowserThread::UI); 2305 DCHECK_CURRENTLY_ON(BrowserThread::UI);
2304 ChildProcessHostMsg_SyncAllocateGpuMemoryBuffer::WriteReplyParams(reply, 2306 ChildProcessHostMsg_SyncAllocateGpuMemoryBuffer::WriteReplyParams(reply,
2305 handle); 2307 handle);
2306 Send(reply); 2308 Send(reply);
2307 } 2309 }
2308 2310
2309 } // namespace content 2311 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_message_filter.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698