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 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
183 #include "content/common/font_cache_dispatcher_win.h" | 183 #include "content/common/font_cache_dispatcher_win.h" |
184 #include "content/common/sandbox_win.h" | 184 #include "content/common/sandbox_win.h" |
185 #include "sandbox/win/src/sandbox_policy.h" | 185 #include "sandbox/win/src/sandbox_policy.h" |
186 #include "ui/gfx/win/dpi.h" | 186 #include "ui/gfx/win/dpi.h" |
187 #endif | 187 #endif |
188 | 188 |
189 #if defined(OS_MACOSX) && !defined(OS_IOS) | 189 #if defined(OS_MACOSX) && !defined(OS_IOS) |
190 #include "content/browser/browser_io_surface_manager_mac.h" | 190 #include "content/browser/browser_io_surface_manager_mac.h" |
191 #endif | 191 #endif |
192 | 192 |
| 193 #if defined(USE_OZONE) |
| 194 #include "ui/ozone/public/ozone_switches.h" |
| 195 #endif |
| 196 |
193 #if defined(ENABLE_BROWSER_CDMS) | 197 #if defined(ENABLE_BROWSER_CDMS) |
194 #include "content/browser/media/cdm/browser_cdm_manager.h" | 198 #include "content/browser/media/cdm/browser_cdm_manager.h" |
195 #endif | 199 #endif |
196 | 200 |
197 #if defined(ENABLE_PLUGINS) | 201 #if defined(ENABLE_PLUGINS) |
198 #include "content/browser/plugin_service_impl.h" | 202 #include "content/browser/plugin_service_impl.h" |
199 #endif | 203 #endif |
200 | 204 |
201 #if defined(ENABLE_WEBRTC) | 205 #if defined(ENABLE_WEBRTC) |
202 #include "content/browser/media/webrtc_internals.h" | 206 #include "content/browser/media/webrtc_internals.h" |
(...skipping 1185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1388 #endif | 1392 #endif |
1389 #if defined(OS_MACOSX) | 1393 #if defined(OS_MACOSX) |
1390 // Allow this to be set when invoking the browser and relayed along. | 1394 // Allow this to be set when invoking the browser and relayed along. |
1391 switches::kEnableSandboxLogging, | 1395 switches::kEnableSandboxLogging, |
1392 #endif | 1396 #endif |
1393 #if defined(OS_WIN) | 1397 #if defined(OS_WIN) |
1394 switches::kDisableDirectWrite, | 1398 switches::kDisableDirectWrite, |
1395 switches::kDisableWin32kRendererLockDown, | 1399 switches::kDisableWin32kRendererLockDown, |
1396 switches::kTraceExportEventsToETW, | 1400 switches::kTraceExportEventsToETW, |
1397 #endif | 1401 #endif |
| 1402 #if defined(USE_OZONE) |
| 1403 switches::kOzonePlatform, |
| 1404 #endif |
1398 #if defined(OS_CHROMEOS) | 1405 #if defined(OS_CHROMEOS) |
1399 switches::kDisableVaapiAcceleratedVideoEncode, | 1406 switches::kDisableVaapiAcceleratedVideoEncode, |
1400 #endif | 1407 #endif |
1401 }; | 1408 }; |
1402 renderer_cmd->CopySwitchesFrom(browser_cmd, kSwitchNames, | 1409 renderer_cmd->CopySwitchesFrom(browser_cmd, kSwitchNames, |
1403 arraysize(kSwitchNames)); | 1410 arraysize(kSwitchNames)); |
1404 | 1411 |
1405 if (browser_cmd.HasSwitch(switches::kTraceStartup) && | 1412 if (browser_cmd.HasSwitch(switches::kTraceStartup) && |
1406 BrowserMainLoop::GetInstance()->is_tracing_startup()) { | 1413 BrowserMainLoop::GetInstance()->is_tracing_startup()) { |
1407 // Pass kTraceStartup switch to renderer only if startup tracing has not | 1414 // Pass kTraceStartup switch to renderer only if startup tracing has not |
(...skipping 1103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2511 void RenderProcessHostImpl::GetAudioOutputControllers( | 2518 void RenderProcessHostImpl::GetAudioOutputControllers( |
2512 const GetAudioOutputControllersCallback& callback) const { | 2519 const GetAudioOutputControllersCallback& callback) const { |
2513 audio_renderer_host()->GetOutputControllers(callback); | 2520 audio_renderer_host()->GetOutputControllers(callback); |
2514 } | 2521 } |
2515 | 2522 |
2516 BluetoothDispatcherHost* RenderProcessHostImpl::GetBluetoothDispatcherHost() { | 2523 BluetoothDispatcherHost* RenderProcessHostImpl::GetBluetoothDispatcherHost() { |
2517 return bluetooth_dispatcher_host_.get(); | 2524 return bluetooth_dispatcher_host_.get(); |
2518 } | 2525 } |
2519 | 2526 |
2520 } // namespace content | 2527 } // namespace content |
OLD | NEW |