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

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

Issue 1612663002: Use a valid /prefetch argument when launching a process. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@bit
Patch Set: rebase + prefetch argument for crashpad Created 4 years, 10 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
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 1304 matching lines...) Expand 10 before | Expand all | Expand 10 after
1315 DCHECK(gpu_data_manager); 1315 DCHECK(gpu_data_manager);
1316 gpu_data_manager->AppendRendererCommandLine(command_line); 1316 gpu_data_manager->AppendRendererCommandLine(command_line);
1317 } 1317 }
1318 1318
1319 void RenderProcessHostImpl::AppendRendererCommandLine( 1319 void RenderProcessHostImpl::AppendRendererCommandLine(
1320 base::CommandLine* command_line) const { 1320 base::CommandLine* command_line) const {
1321 // Pass the process type first, so it shows first in process listings. 1321 // Pass the process type first, so it shows first in process listings.
1322 command_line->AppendSwitchASCII(switches::kProcessType, 1322 command_line->AppendSwitchASCII(switches::kProcessType,
1323 switches::kRendererProcess); 1323 switches::kRendererProcess);
1324 1324
1325 #if defined(OS_WIN)
1326 if (GetContentClient()->browser()->ShouldUseWindowsPrefetchArgument())
1327 command_line->AppendArg(switches::kPrefetchArgumentRenderer);
1328 #endif // defined(OS_WIN)
1329
1325 // Now send any options from our own command line we want to propagate. 1330 // Now send any options from our own command line we want to propagate.
1326 const base::CommandLine& browser_command_line = 1331 const base::CommandLine& browser_command_line =
1327 *base::CommandLine::ForCurrentProcess(); 1332 *base::CommandLine::ForCurrentProcess();
1328 PropagateBrowserCommandLineToRenderer(browser_command_line, command_line); 1333 PropagateBrowserCommandLineToRenderer(browser_command_line, command_line);
1329 1334
1330 // Pass on the browser locale. 1335 // Pass on the browser locale.
1331 const std::string locale = 1336 const std::string locale =
1332 GetContentClient()->browser()->GetApplicationLocale(); 1337 GetContentClient()->browser()->GetApplicationLocale();
1333 command_line->AppendSwitchASCII(switches::kLang, locale); 1338 command_line->AppendSwitchASCII(switches::kLang, locale);
1334 1339
(...skipping 1460 matching lines...) Expand 10 before | Expand all | Expand 10 after
2795 void RenderProcessHostImpl::GetAudioOutputControllers( 2800 void RenderProcessHostImpl::GetAudioOutputControllers(
2796 const GetAudioOutputControllersCallback& callback) const { 2801 const GetAudioOutputControllersCallback& callback) const {
2797 audio_renderer_host()->GetOutputControllers(callback); 2802 audio_renderer_host()->GetOutputControllers(callback);
2798 } 2803 }
2799 2804
2800 BluetoothDispatcherHost* RenderProcessHostImpl::GetBluetoothDispatcherHost() { 2805 BluetoothDispatcherHost* RenderProcessHostImpl::GetBluetoothDispatcherHost() {
2801 return bluetooth_dispatcher_host_.get(); 2806 return bluetooth_dispatcher_host_.get();
2802 } 2807 }
2803 2808
2804 } // namespace content 2809 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/ppapi_plugin_process_host.cc ('k') | content/browser/utility_process_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698