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

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: address comments from gab #13 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 1305 matching lines...) Expand 10 before | Expand all | Expand 10 after
1316 DCHECK(gpu_data_manager); 1316 DCHECK(gpu_data_manager);
1317 gpu_data_manager->AppendRendererCommandLine(command_line); 1317 gpu_data_manager->AppendRendererCommandLine(command_line);
1318 } 1318 }
1319 1319
1320 void RenderProcessHostImpl::AppendRendererCommandLine( 1320 void RenderProcessHostImpl::AppendRendererCommandLine(
1321 base::CommandLine* command_line) const { 1321 base::CommandLine* command_line) const {
1322 // Pass the process type first, so it shows first in process listings. 1322 // Pass the process type first, so it shows first in process listings.
1323 command_line->AppendSwitchASCII(switches::kProcessType, 1323 command_line->AppendSwitchASCII(switches::kProcessType,
1324 switches::kRendererProcess); 1324 switches::kRendererProcess);
1325 1325
1326 #if defined(OS_WIN)
1327 if (GetContentClient()->browser()->ShouldUseWindowsPrefetchArgument())
1328 command_line->AppendArg(switches::kPrefetchArgumentRenderer);
1329 #endif // defined(OS_WIN)
1330
1326 // Now send any options from our own command line we want to propagate. 1331 // Now send any options from our own command line we want to propagate.
1327 const base::CommandLine& browser_command_line = 1332 const base::CommandLine& browser_command_line =
1328 *base::CommandLine::ForCurrentProcess(); 1333 *base::CommandLine::ForCurrentProcess();
1329 PropagateBrowserCommandLineToRenderer(browser_command_line, command_line); 1334 PropagateBrowserCommandLineToRenderer(browser_command_line, command_line);
1330 1335
1331 // Pass on the browser locale. 1336 // Pass on the browser locale.
1332 const std::string locale = 1337 const std::string locale =
1333 GetContentClient()->browser()->GetApplicationLocale(); 1338 GetContentClient()->browser()->GetApplicationLocale();
1334 command_line->AppendSwitchASCII(switches::kLang, locale); 1339 command_line->AppendSwitchASCII(switches::kLang, locale);
1335 1340
(...skipping 1460 matching lines...) Expand 10 before | Expand all | Expand 10 after
2796 void RenderProcessHostImpl::GetAudioOutputControllers( 2801 void RenderProcessHostImpl::GetAudioOutputControllers(
2797 const GetAudioOutputControllersCallback& callback) const { 2802 const GetAudioOutputControllersCallback& callback) const {
2798 audio_renderer_host()->GetOutputControllers(callback); 2803 audio_renderer_host()->GetOutputControllers(callback);
2799 } 2804 }
2800 2805
2801 BluetoothDispatcherHost* RenderProcessHostImpl::GetBluetoothDispatcherHost() { 2806 BluetoothDispatcherHost* RenderProcessHostImpl::GetBluetoothDispatcherHost() {
2802 return bluetooth_dispatcher_host_.get(); 2807 return bluetooth_dispatcher_host_.get();
2803 } 2808 }
2804 2809
2805 } // namespace content 2810 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698