Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 177 | 177 |
| 178 #if defined(OS_WIN) | 178 #if defined(OS_WIN) |
| 179 #include "base/win/scoped_com_initializer.h" | 179 #include "base/win/scoped_com_initializer.h" |
| 180 #include "base/win/windows_version.h" | 180 #include "base/win/windows_version.h" |
| 181 #include "content/common/font_cache_dispatcher_win.h" | 181 #include "content/common/font_cache_dispatcher_win.h" |
| 182 #include "content/common/sandbox_win.h" | 182 #include "content/common/sandbox_win.h" |
| 183 #include "sandbox/win/src/sandbox_policy.h" | 183 #include "sandbox/win/src/sandbox_policy.h" |
| 184 #include "ui/gfx/win/dpi.h" | 184 #include "ui/gfx/win/dpi.h" |
| 185 #endif | 185 #endif |
| 186 | 186 |
| 187 #if defined(USE_OZONE) | |
| 188 #include "ui/ozone/public/ozone_switches.h" | |
| 189 #endif | |
| 190 | |
| 187 #if defined(ENABLE_BROWSER_CDMS) | 191 #if defined(ENABLE_BROWSER_CDMS) |
| 188 #include "content/browser/media/cdm/browser_cdm_manager.h" | 192 #include "content/browser/media/cdm/browser_cdm_manager.h" |
| 189 #endif | 193 #endif |
| 190 | 194 |
| 191 #if defined(ENABLE_PLUGINS) | 195 #if defined(ENABLE_PLUGINS) |
| 192 #include "content/browser/plugin_service_impl.h" | 196 #include "content/browser/plugin_service_impl.h" |
| 193 #endif | 197 #endif |
| 194 | 198 |
| 195 #if defined(ENABLE_WEBRTC) | 199 #if defined(ENABLE_WEBRTC) |
| 196 #include "content/browser/media/webrtc_internals.h" | 200 #include "content/browser/media/webrtc_internals.h" |
| (...skipping 1182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1379 #endif | 1383 #endif |
| 1380 #if defined(OS_MACOSX) | 1384 #if defined(OS_MACOSX) |
| 1381 // Allow this to be set when invoking the browser and relayed along. | 1385 // Allow this to be set when invoking the browser and relayed along. |
| 1382 switches::kEnableSandboxLogging, | 1386 switches::kEnableSandboxLogging, |
| 1383 #endif | 1387 #endif |
| 1384 #if defined(OS_WIN) | 1388 #if defined(OS_WIN) |
| 1385 switches::kDisableDirectWrite, | 1389 switches::kDisableDirectWrite, |
| 1386 switches::kDisableWin32kRendererLockDown, | 1390 switches::kDisableWin32kRendererLockDown, |
| 1387 switches::kTraceExportEventsToETW, | 1391 switches::kTraceExportEventsToETW, |
| 1388 #endif | 1392 #endif |
| 1393 #if defined(USE_OZONE) | |
| 1394 switches::kOzonePlatform, | |
| 1395 #endif | |
|
dshwang
2015/06/03 14:11:51
Need to pass this command line to render process t
| |
| 1389 #if defined(OS_CHROMEOS) | 1396 #if defined(OS_CHROMEOS) |
| 1390 switches::kDisableVaapiAcceleratedVideoEncode, | 1397 switches::kDisableVaapiAcceleratedVideoEncode, |
| 1391 #endif | 1398 #endif |
| 1392 }; | 1399 }; |
| 1393 renderer_cmd->CopySwitchesFrom(browser_cmd, kSwitchNames, | 1400 renderer_cmd->CopySwitchesFrom(browser_cmd, kSwitchNames, |
| 1394 arraysize(kSwitchNames)); | 1401 arraysize(kSwitchNames)); |
| 1395 | 1402 |
| 1396 if (browser_cmd.HasSwitch(switches::kTraceStartup) && | 1403 if (browser_cmd.HasSwitch(switches::kTraceStartup) && |
| 1397 BrowserMainLoop::GetInstance()->is_tracing_startup()) { | 1404 BrowserMainLoop::GetInstance()->is_tracing_startup()) { |
| 1398 // Pass kTraceStartup switch to renderer only if startup tracing has not | 1405 // Pass kTraceStartup switch to renderer only if startup tracing has not |
| (...skipping 1076 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2475 void RenderProcessHostImpl::GetAudioOutputControllers( | 2482 void RenderProcessHostImpl::GetAudioOutputControllers( |
| 2476 const GetAudioOutputControllersCallback& callback) const { | 2483 const GetAudioOutputControllersCallback& callback) const { |
| 2477 audio_renderer_host()->GetOutputControllers(callback); | 2484 audio_renderer_host()->GetOutputControllers(callback); |
| 2478 } | 2485 } |
| 2479 | 2486 |
| 2480 BluetoothDispatcherHost* RenderProcessHostImpl::GetBluetoothDispatcherHost() { | 2487 BluetoothDispatcherHost* RenderProcessHostImpl::GetBluetoothDispatcherHost() { |
| 2481 return bluetooth_dispatcher_host_.get(); | 2488 return bluetooth_dispatcher_host_.get(); |
| 2482 } | 2489 } |
| 2483 | 2490 |
| 2484 } // namespace content | 2491 } // namespace content |
| OLD | NEW |