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

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

Issue 209163002: Support DirectWrite with sandbox on (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: roll out blink bits Created 6 years, 9 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') | content/common/sandbox_win.h » ('j') | 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 746 matching lines...) Expand 10 before | Expand all | Expand 10 after
757 storage_partition_impl_->GetFileSystemContext(), 757 storage_partition_impl_->GetFileSystemContext(),
758 ChromeBlobStorageContext::GetFor(browser_context), 758 ChromeBlobStorageContext::GetFor(browser_context),
759 StreamContext::GetFor(browser_context))); 759 StreamContext::GetFor(browser_context)));
760 AddFilter(new FileUtilitiesMessageFilter(GetID())); 760 AddFilter(new FileUtilitiesMessageFilter(GetID()));
761 AddFilter(new MimeRegistryMessageFilter()); 761 AddFilter(new MimeRegistryMessageFilter());
762 AddFilter(new DatabaseMessageFilter( 762 AddFilter(new DatabaseMessageFilter(
763 storage_partition_impl_->GetDatabaseTracker())); 763 storage_partition_impl_->GetDatabaseTracker()));
764 #if defined(OS_MACOSX) 764 #if defined(OS_MACOSX)
765 AddFilter(new TextInputClientMessageFilter(GetID())); 765 AddFilter(new TextInputClientMessageFilter(GetID()));
766 #elif defined(OS_WIN) 766 #elif defined(OS_WIN)
767 channel_->AddFilter(new FontCacheDispatcher()); 767 // The FontCacheDispatcher is required only when we're using GDI rendering.
768 if (!ShouldUseDirectWrite())
769 channel_->AddFilter(new FontCacheDispatcher());
768 #elif defined(OS_ANDROID) 770 #elif defined(OS_ANDROID)
769 browser_demuxer_android_ = new BrowserDemuxerAndroid(); 771 browser_demuxer_android_ = new BrowserDemuxerAndroid();
770 AddFilter(browser_demuxer_android_); 772 AddFilter(browser_demuxer_android_);
771 #endif 773 #endif
772 774
773 SocketStreamDispatcherHost::GetRequestContextCallback 775 SocketStreamDispatcherHost::GetRequestContextCallback
774 request_context_callback( 776 request_context_callback(
775 base::Bind(&GetRequestContext, request_context, 777 base::Bind(&GetRequestContext, request_context,
776 media_request_context)); 778 media_request_context));
777 779
(...skipping 438 matching lines...) Expand 10 before | Expand all | Expand 10 after
1216 switches::kDisableWebAudio, 1218 switches::kDisableWebAudio,
1217 #endif 1219 #endif
1218 #if defined(OS_MACOSX) 1220 #if defined(OS_MACOSX)
1219 // Allow this to be set when invoking the browser and relayed along. 1221 // Allow this to be set when invoking the browser and relayed along.
1220 switches::kEnableSandboxLogging, 1222 switches::kEnableSandboxLogging,
1221 #endif 1223 #endif
1222 #if defined(OS_POSIX) 1224 #if defined(OS_POSIX)
1223 switches::kChildCleanExit, 1225 switches::kChildCleanExit,
1224 #endif 1226 #endif
1225 #if defined(OS_WIN) 1227 #if defined(OS_WIN)
1226 switches::kEnableDirectWrite,
1227 switches::kEnableHighResolutionTime, 1228 switches::kEnableHighResolutionTime,
1228 switches::kHighDPISupport, 1229 switches::kHighDPISupport,
1229 #endif 1230 #endif
1230 }; 1231 };
1231 renderer_cmd->CopySwitchesFrom(browser_cmd, kSwitchNames, 1232 renderer_cmd->CopySwitchesFrom(browser_cmd, kSwitchNames,
1232 arraysize(kSwitchNames)); 1233 arraysize(kSwitchNames));
1233 1234
1234 if (browser_cmd.HasSwitch(switches::kTraceStartup) && 1235 if (browser_cmd.HasSwitch(switches::kTraceStartup) &&
1235 BrowserMainLoop::GetInstance()->is_tracing_startup()) { 1236 BrowserMainLoop::GetInstance()->is_tracing_startup()) {
1236 // Pass kTraceStartup switch to renderer only if startup tracing has not 1237 // Pass kTraceStartup switch to renderer only if startup tracing has not
(...skipping 935 matching lines...) Expand 10 before | Expand all | Expand 10 after
2172 child_process_launcher_->GetHandle(); 2173 child_process_launcher_->GetHandle();
2173 base::PlatformFile client_file = 2174 base::PlatformFile client_file =
2174 PlatformFileFromScopedPlatformHandle(channel_pair.PassClientHandle()); 2175 PlatformFileFromScopedPlatformHandle(channel_pair.PassClientHandle());
2175 Send(new MojoMsg_ChannelCreated( 2176 Send(new MojoMsg_ChannelCreated(
2176 IPC::GetFileHandleForProcess(client_file, process_handle, true))); 2177 IPC::GetFileHandleForProcess(client_file, process_handle, true)));
2177 } 2178 }
2178 } 2179 }
2179 #endif 2180 #endif
2180 2181
2181 } // namespace content 2182 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_message_filter.cc ('k') | content/common/sandbox_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698