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 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
182 #include "content/common/font_cache_dispatcher_win.h" | 182 #include "content/common/font_cache_dispatcher_win.h" |
183 #include "content/common/sandbox_win.h" | 183 #include "content/common/sandbox_win.h" |
184 #include "sandbox/win/src/sandbox_policy.h" | 184 #include "sandbox/win/src/sandbox_policy.h" |
185 #include "ui/gfx/win/dpi.h" | 185 #include "ui/gfx/win/dpi.h" |
186 #endif | 186 #endif |
187 | 187 |
188 #if defined(OS_MACOSX) && !defined(OS_IOS) | 188 #if defined(OS_MACOSX) && !defined(OS_IOS) |
189 #include "content/browser/browser_io_surface_manager_mac.h" | 189 #include "content/browser/browser_io_surface_manager_mac.h" |
190 #endif | 190 #endif |
191 | 191 |
| 192 #if defined(USE_OZONE) |
| 193 #include "content/browser/gpu/browser_native_pixmap_manager_ozone.h" |
| 194 #include "ui/ozone/public/ozone_switches.h" |
| 195 #endif |
| 196 |
192 #if defined(ENABLE_BROWSER_CDMS) | 197 #if defined(ENABLE_BROWSER_CDMS) |
193 #include "content/browser/media/cdm/browser_cdm_manager.h" | 198 #include "content/browser/media/cdm/browser_cdm_manager.h" |
194 #endif | 199 #endif |
195 | 200 |
196 #if defined(ENABLE_PLUGINS) | 201 #if defined(ENABLE_PLUGINS) |
197 #include "content/browser/plugin_service_impl.h" | 202 #include "content/browser/plugin_service_impl.h" |
198 #endif | 203 #endif |
199 | 204 |
200 #if defined(ENABLE_WEBRTC) | 205 #if defined(ENABLE_WEBRTC) |
201 #include "content/browser/media/webrtc_internals.h" | 206 #include "content/browser/media/webrtc_internals.h" |
(...skipping 600 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
802 AddFilter(new DOMStorageMessageFilter( | 807 AddFilter(new DOMStorageMessageFilter( |
803 storage_partition_impl_->GetDOMStorageContext())); | 808 storage_partition_impl_->GetDOMStorageContext())); |
804 AddFilter(new IndexedDBDispatcherHost( | 809 AddFilter(new IndexedDBDispatcherHost( |
805 GetID(), | 810 GetID(), |
806 storage_partition_impl_->GetURLRequestContext(), | 811 storage_partition_impl_->GetURLRequestContext(), |
807 storage_partition_impl_->GetIndexedDBContext(), | 812 storage_partition_impl_->GetIndexedDBContext(), |
808 ChromeBlobStorageContext::GetFor(browser_context))); | 813 ChromeBlobStorageContext::GetFor(browser_context))); |
809 | 814 |
810 gpu_message_filter_ = new GpuMessageFilter(GetID(), widget_helper_.get()); | 815 gpu_message_filter_ = new GpuMessageFilter(GetID(), widget_helper_.get()); |
811 AddFilter(gpu_message_filter_); | 816 AddFilter(gpu_message_filter_); |
| 817 #if defined(USE_OZONE) |
| 818 AddFilter(BrowserNativePixmapManager::GetInstance()->CreateMessageFilter()); |
| 819 #endif |
812 #if defined(ENABLE_WEBRTC) | 820 #if defined(ENABLE_WEBRTC) |
813 AddFilter(new WebRTCIdentityServiceHost( | 821 AddFilter(new WebRTCIdentityServiceHost( |
814 GetID(), storage_partition_impl_->GetWebRTCIdentityStore())); | 822 GetID(), storage_partition_impl_->GetWebRTCIdentityStore())); |
815 peer_connection_tracker_host_ = new PeerConnectionTrackerHost(GetID()); | 823 peer_connection_tracker_host_ = new PeerConnectionTrackerHost(GetID()); |
816 AddFilter(peer_connection_tracker_host_.get()); | 824 AddFilter(peer_connection_tracker_host_.get()); |
817 AddFilter(new MediaStreamDispatcherHost( | 825 AddFilter(new MediaStreamDispatcherHost( |
818 GetID(), | 826 GetID(), |
819 browser_context->GetResourceContext()->GetMediaDeviceIDSalt(), | 827 browser_context->GetResourceContext()->GetMediaDeviceIDSalt(), |
820 media_stream_manager)); | 828 media_stream_manager)); |
821 AddFilter(new MediaStreamTrackMetricsHost()); | 829 AddFilter(new MediaStreamTrackMetricsHost()); |
(...skipping 561 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1383 #endif | 1391 #endif |
1384 #if defined(OS_MACOSX) | 1392 #if defined(OS_MACOSX) |
1385 // Allow this to be set when invoking the browser and relayed along. | 1393 // Allow this to be set when invoking the browser and relayed along. |
1386 switches::kEnableSandboxLogging, | 1394 switches::kEnableSandboxLogging, |
1387 #endif | 1395 #endif |
1388 #if defined(OS_WIN) | 1396 #if defined(OS_WIN) |
1389 switches::kDisableDirectWrite, | 1397 switches::kDisableDirectWrite, |
1390 switches::kDisableWin32kRendererLockDown, | 1398 switches::kDisableWin32kRendererLockDown, |
1391 switches::kTraceExportEventsToETW, | 1399 switches::kTraceExportEventsToETW, |
1392 #endif | 1400 #endif |
| 1401 #if defined(USE_OZONE) |
| 1402 switches::kOzonePlatform, |
| 1403 #endif |
1393 #if defined(OS_CHROMEOS) | 1404 #if defined(OS_CHROMEOS) |
1394 switches::kDisableVaapiAcceleratedVideoEncode, | 1405 switches::kDisableVaapiAcceleratedVideoEncode, |
1395 #endif | 1406 #endif |
1396 }; | 1407 }; |
1397 renderer_cmd->CopySwitchesFrom(browser_cmd, kSwitchNames, | 1408 renderer_cmd->CopySwitchesFrom(browser_cmd, kSwitchNames, |
1398 arraysize(kSwitchNames)); | 1409 arraysize(kSwitchNames)); |
1399 | 1410 |
1400 if (browser_cmd.HasSwitch(switches::kTraceStartup) && | 1411 if (browser_cmd.HasSwitch(switches::kTraceStartup) && |
1401 BrowserMainLoop::GetInstance()->is_tracing_startup()) { | 1412 BrowserMainLoop::GetInstance()->is_tracing_startup()) { |
1402 // Pass kTraceStartup switch to renderer only if startup tracing has not | 1413 // Pass kTraceStartup switch to renderer only if startup tracing has not |
(...skipping 1111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2514 void RenderProcessHostImpl::GetAudioOutputControllers( | 2525 void RenderProcessHostImpl::GetAudioOutputControllers( |
2515 const GetAudioOutputControllersCallback& callback) const { | 2526 const GetAudioOutputControllersCallback& callback) const { |
2516 audio_renderer_host()->GetOutputControllers(callback); | 2527 audio_renderer_host()->GetOutputControllers(callback); |
2517 } | 2528 } |
2518 | 2529 |
2519 BluetoothDispatcherHost* RenderProcessHostImpl::GetBluetoothDispatcherHost() { | 2530 BluetoothDispatcherHost* RenderProcessHostImpl::GetBluetoothDispatcherHost() { |
2520 return bluetooth_dispatcher_host_.get(); | 2531 return bluetooth_dispatcher_host_.get(); |
2521 } | 2532 } |
2522 | 2533 |
2523 } // namespace content | 2534 } // namespace content |
OLD | NEW |