| OLD | NEW |
| 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 1297 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1308 DCHECK(gpu_data_manager); | 1308 DCHECK(gpu_data_manager); |
| 1309 gpu_data_manager->AppendRendererCommandLine(command_line); | 1309 gpu_data_manager->AppendRendererCommandLine(command_line); |
| 1310 } | 1310 } |
| 1311 | 1311 |
| 1312 void RenderProcessHostImpl::AppendRendererCommandLine( | 1312 void RenderProcessHostImpl::AppendRendererCommandLine( |
| 1313 base::CommandLine* command_line) const { | 1313 base::CommandLine* command_line) const { |
| 1314 // Pass the process type first, so it shows first in process listings. | 1314 // Pass the process type first, so it shows first in process listings. |
| 1315 command_line->AppendSwitchASCII(switches::kProcessType, | 1315 command_line->AppendSwitchASCII(switches::kProcessType, |
| 1316 switches::kRendererProcess); | 1316 switches::kRendererProcess); |
| 1317 | 1317 |
| 1318 #if defined(OS_WIN) |
| 1319 if (GetContentClient()->browser()->ShouldUseWindowsPrefetchArgument()) |
| 1320 command_line->AppendArg(switches::kPrefetchArgumentRenderer); |
| 1321 #endif // defined(OS_WIN) |
| 1322 |
| 1318 // Now send any options from our own command line we want to propagate. | 1323 // Now send any options from our own command line we want to propagate. |
| 1319 const base::CommandLine& browser_command_line = | 1324 const base::CommandLine& browser_command_line = |
| 1320 *base::CommandLine::ForCurrentProcess(); | 1325 *base::CommandLine::ForCurrentProcess(); |
| 1321 PropagateBrowserCommandLineToRenderer(browser_command_line, command_line); | 1326 PropagateBrowserCommandLineToRenderer(browser_command_line, command_line); |
| 1322 | 1327 |
| 1323 // Pass on the browser locale. | 1328 // Pass on the browser locale. |
| 1324 const std::string locale = | 1329 const std::string locale = |
| 1325 GetContentClient()->browser()->GetApplicationLocale(); | 1330 GetContentClient()->browser()->GetApplicationLocale(); |
| 1326 command_line->AppendSwitchASCII(switches::kLang, locale); | 1331 command_line->AppendSwitchASCII(switches::kLang, locale); |
| 1327 | 1332 |
| (...skipping 1460 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2788 void RenderProcessHostImpl::GetAudioOutputControllers( | 2793 void RenderProcessHostImpl::GetAudioOutputControllers( |
| 2789 const GetAudioOutputControllersCallback& callback) const { | 2794 const GetAudioOutputControllersCallback& callback) const { |
| 2790 audio_renderer_host()->GetOutputControllers(callback); | 2795 audio_renderer_host()->GetOutputControllers(callback); |
| 2791 } | 2796 } |
| 2792 | 2797 |
| 2793 BluetoothDispatcherHost* RenderProcessHostImpl::GetBluetoothDispatcherHost() { | 2798 BluetoothDispatcherHost* RenderProcessHostImpl::GetBluetoothDispatcherHost() { |
| 2794 return bluetooth_dispatcher_host_.get(); | 2799 return bluetooth_dispatcher_host_.get(); |
| 2795 } | 2800 } |
| 2796 | 2801 |
| 2797 } // namespace content | 2802 } // namespace content |
| OLD | NEW |