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

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: Created 4 years, 11 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 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 #include "content/browser/screen_orientation/screen_orientation_message_filter_a ndroid.h" 186 #include "content/browser/screen_orientation/screen_orientation_message_filter_a ndroid.h"
187 #include "ipc/ipc_sync_channel.h" 187 #include "ipc/ipc_sync_channel.h"
188 #endif 188 #endif
189 189
190 #if defined(OS_WIN) 190 #if defined(OS_WIN)
191 #include "base/win/scoped_com_initializer.h" 191 #include "base/win/scoped_com_initializer.h"
192 #include "base/win/windows_version.h" 192 #include "base/win/windows_version.h"
193 #include "content/browser/renderer_host/dwrite_font_proxy_message_filter_win.h" 193 #include "content/browser/renderer_host/dwrite_font_proxy_message_filter_win.h"
194 #include "content/common/font_cache_dispatcher_win.h" 194 #include "content/common/font_cache_dispatcher_win.h"
195 #include "content/common/sandbox_win.h" 195 #include "content/common/sandbox_win.h"
196 #include "content/public/common/prefetch_argument_win.h"
196 #include "sandbox/win/src/sandbox_policy.h" 197 #include "sandbox/win/src/sandbox_policy.h"
197 #include "ui/gfx/win/dpi.h" 198 #include "ui/gfx/win/dpi.h"
198 #endif 199 #endif
199 200
200 #if defined(OS_MACOSX) && !defined(OS_IOS) 201 #if defined(OS_MACOSX) && !defined(OS_IOS)
201 #include "content/browser/bootstrap_sandbox_manager_mac.h" 202 #include "content/browser/bootstrap_sandbox_manager_mac.h"
202 #include "content/browser/mach_broker_mac.h" 203 #include "content/browser/mach_broker_mac.h"
203 #endif 204 #endif
204 205
205 #if defined(USE_OZONE) 206 #if defined(USE_OZONE)
(...skipping 1078 matching lines...) Expand 10 before | Expand all | Expand 10 after
1284 DCHECK(gpu_data_manager); 1285 DCHECK(gpu_data_manager);
1285 gpu_data_manager->AppendRendererCommandLine(command_line); 1286 gpu_data_manager->AppendRendererCommandLine(command_line);
1286 } 1287 }
1287 1288
1288 void RenderProcessHostImpl::AppendRendererCommandLine( 1289 void RenderProcessHostImpl::AppendRendererCommandLine(
1289 base::CommandLine* command_line) const { 1290 base::CommandLine* command_line) const {
1290 // Pass the process type first, so it shows first in process listings. 1291 // Pass the process type first, so it shows first in process listings.
1291 command_line->AppendSwitchASCII(switches::kProcessType, 1292 command_line->AppendSwitchASCII(switches::kProcessType,
1292 switches::kRendererProcess); 1293 switches::kRendererProcess);
1293 1294
1295 #if defined(OS_WIN)
1296 AddWindowsPrefetchArgument(PREFETCH_ID_RENDERER, command_line);
1297 #endif // defined(OS_WIN)
1298
1294 // Now send any options from our own command line we want to propagate. 1299 // Now send any options from our own command line we want to propagate.
1295 const base::CommandLine& browser_command_line = 1300 const base::CommandLine& browser_command_line =
1296 *base::CommandLine::ForCurrentProcess(); 1301 *base::CommandLine::ForCurrentProcess();
1297 PropagateBrowserCommandLineToRenderer(browser_command_line, command_line); 1302 PropagateBrowserCommandLineToRenderer(browser_command_line, command_line);
1298 1303
1299 // Pass on the browser locale. 1304 // Pass on the browser locale.
1300 const std::string locale = 1305 const std::string locale =
1301 GetContentClient()->browser()->GetApplicationLocale(); 1306 GetContentClient()->browser()->GetApplicationLocale();
1302 command_line->AppendSwitchASCII(switches::kLang, locale); 1307 command_line->AppendSwitchASCII(switches::kLang, locale);
1303 1308
(...skipping 1459 matching lines...) Expand 10 before | Expand all | Expand 10 after
2763 void RenderProcessHostImpl::GetAudioOutputControllers( 2768 void RenderProcessHostImpl::GetAudioOutputControllers(
2764 const GetAudioOutputControllersCallback& callback) const { 2769 const GetAudioOutputControllersCallback& callback) const {
2765 audio_renderer_host()->GetOutputControllers(callback); 2770 audio_renderer_host()->GetOutputControllers(callback);
2766 } 2771 }
2767 2772
2768 BluetoothDispatcherHost* RenderProcessHostImpl::GetBluetoothDispatcherHost() { 2773 BluetoothDispatcherHost* RenderProcessHostImpl::GetBluetoothDispatcherHost() {
2769 return bluetooth_dispatcher_host_.get(); 2774 return bluetooth_dispatcher_host_.get();
2770 } 2775 }
2771 2776
2772 } // namespace content 2777 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698