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 1337 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1348 switches::kReduceSecurityForTesting, | 1348 switches::kReduceSecurityForTesting, |
1349 switches::kRegisterPepperPlugins, | 1349 switches::kRegisterPepperPlugins, |
1350 switches::kRendererStartupDialog, | 1350 switches::kRendererStartupDialog, |
1351 switches::kRootLayerScrolls, | 1351 switches::kRootLayerScrolls, |
1352 switches::kShowPaintRects, | 1352 switches::kShowPaintRects, |
1353 switches::kSitePerProcess, | 1353 switches::kSitePerProcess, |
1354 switches::kStatsCollectionController, | 1354 switches::kStatsCollectionController, |
1355 switches::kTestType, | 1355 switches::kTestType, |
1356 switches::kTouchEvents, | 1356 switches::kTouchEvents, |
1357 switches::kTouchTextSelectionStrategy, | 1357 switches::kTouchTextSelectionStrategy, |
| 1358 switches::kTraceConfigFile, |
1358 switches::kTraceToConsole, | 1359 switches::kTraceToConsole, |
1359 // This flag needs to be propagated to the renderer process for | 1360 // This flag needs to be propagated to the renderer process for |
1360 // --in-process-webgl. | 1361 // --in-process-webgl. |
1361 switches::kUseGL, | 1362 switches::kUseGL, |
1362 switches::kUseMobileUserAgent, | 1363 switches::kUseMobileUserAgent, |
1363 switches::kUseNormalPriorityForTileTaskWorkerThreads, | 1364 switches::kUseNormalPriorityForTileTaskWorkerThreads, |
1364 switches::kV, | 1365 switches::kV, |
1365 switches::kVideoThreads, | 1366 switches::kVideoThreads, |
1366 switches::kVideoUnderflowThresholdMs, | 1367 switches::kVideoUnderflowThresholdMs, |
1367 switches::kVModule, | 1368 switches::kVModule, |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1418 switches::kOzonePlatform, | 1419 switches::kOzonePlatform, |
1419 #endif | 1420 #endif |
1420 #if defined(OS_CHROMEOS) | 1421 #if defined(OS_CHROMEOS) |
1421 switches::kDisableVaapiAcceleratedVideoEncode, | 1422 switches::kDisableVaapiAcceleratedVideoEncode, |
1422 #endif | 1423 #endif |
1423 }; | 1424 }; |
1424 renderer_cmd->CopySwitchesFrom(browser_cmd, kSwitchNames, | 1425 renderer_cmd->CopySwitchesFrom(browser_cmd, kSwitchNames, |
1425 arraysize(kSwitchNames)); | 1426 arraysize(kSwitchNames)); |
1426 | 1427 |
1427 if (browser_cmd.HasSwitch(switches::kTraceStartup) && | 1428 if (browser_cmd.HasSwitch(switches::kTraceStartup) && |
1428 BrowserMainLoop::GetInstance()->is_tracing_startup()) { | 1429 BrowserMainLoop::GetInstance()->is_tracing_startup_for_duration()) { |
1429 // Pass kTraceStartup switch to renderer only if startup tracing has not | 1430 // Pass kTraceStartup switch to renderer only if startup tracing has not |
1430 // finished. | 1431 // finished. |
1431 renderer_cmd->AppendSwitchASCII( | 1432 renderer_cmd->AppendSwitchASCII( |
1432 switches::kTraceStartup, | 1433 switches::kTraceStartup, |
1433 browser_cmd.GetSwitchValueASCII(switches::kTraceStartup)); | 1434 browser_cmd.GetSwitchValueASCII(switches::kTraceStartup)); |
1434 } | 1435 } |
1435 | 1436 |
1436 #if defined(ENABLE_WEBRTC) | 1437 #if defined(ENABLE_WEBRTC) |
1437 // Only run the Stun trials in the first renderer. | 1438 // Only run the Stun trials in the first renderer. |
1438 if (!has_done_stun_trials && | 1439 if (!has_done_stun_trials && |
(...skipping 1094 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2533 void RenderProcessHostImpl::GetAudioOutputControllers( | 2534 void RenderProcessHostImpl::GetAudioOutputControllers( |
2534 const GetAudioOutputControllersCallback& callback) const { | 2535 const GetAudioOutputControllersCallback& callback) const { |
2535 audio_renderer_host()->GetOutputControllers(callback); | 2536 audio_renderer_host()->GetOutputControllers(callback); |
2536 } | 2537 } |
2537 | 2538 |
2538 BluetoothDispatcherHost* RenderProcessHostImpl::GetBluetoothDispatcherHost() { | 2539 BluetoothDispatcherHost* RenderProcessHostImpl::GetBluetoothDispatcherHost() { |
2539 return bluetooth_dispatcher_host_.get(); | 2540 return bluetooth_dispatcher_host_.get(); |
2540 } | 2541 } |
2541 | 2542 |
2542 } // namespace content | 2543 } // namespace content |
OLD | NEW |