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/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) | 192 #if defined(USE_OZONE) |
| 193 #include "content/browser/gpu/browser_native_pixmap_manager_ozone.h" |
193 #include "ui/ozone/public/ozone_switches.h" | 194 #include "ui/ozone/public/ozone_switches.h" |
194 #endif | 195 #endif |
195 | 196 |
196 #if defined(ENABLE_BROWSER_CDMS) | 197 #if defined(ENABLE_BROWSER_CDMS) |
197 #include "content/browser/media/cdm/browser_cdm_manager.h" | 198 #include "content/browser/media/cdm/browser_cdm_manager.h" |
198 #endif | 199 #endif |
199 | 200 |
200 #if defined(ENABLE_PLUGINS) | 201 #if defined(ENABLE_PLUGINS) |
201 #include "content/browser/plugin_service_impl.h" | 202 #include "content/browser/plugin_service_impl.h" |
202 #endif | 203 #endif |
(...skipping 603 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
806 AddFilter(new DOMStorageMessageFilter( | 807 AddFilter(new DOMStorageMessageFilter( |
807 storage_partition_impl_->GetDOMStorageContext())); | 808 storage_partition_impl_->GetDOMStorageContext())); |
808 AddFilter(new IndexedDBDispatcherHost( | 809 AddFilter(new IndexedDBDispatcherHost( |
809 GetID(), | 810 GetID(), |
810 storage_partition_impl_->GetURLRequestContext(), | 811 storage_partition_impl_->GetURLRequestContext(), |
811 storage_partition_impl_->GetIndexedDBContext(), | 812 storage_partition_impl_->GetIndexedDBContext(), |
812 ChromeBlobStorageContext::GetFor(browser_context))); | 813 ChromeBlobStorageContext::GetFor(browser_context))); |
813 | 814 |
814 gpu_message_filter_ = new GpuMessageFilter(GetID(), widget_helper_.get()); | 815 gpu_message_filter_ = new GpuMessageFilter(GetID(), widget_helper_.get()); |
815 AddFilter(gpu_message_filter_); | 816 AddFilter(gpu_message_filter_); |
| 817 #if defined(USE_OZONE) |
| 818 AddFilter(BrowserNativePixmapManager::GetInstance()->CreateMessageFilter()); |
| 819 #endif |
816 #if defined(ENABLE_WEBRTC) | 820 #if defined(ENABLE_WEBRTC) |
817 AddFilter(new WebRTCIdentityServiceHost( | 821 AddFilter(new WebRTCIdentityServiceHost( |
818 GetID(), storage_partition_impl_->GetWebRTCIdentityStore())); | 822 GetID(), storage_partition_impl_->GetWebRTCIdentityStore())); |
819 peer_connection_tracker_host_ = new PeerConnectionTrackerHost(GetID()); | 823 peer_connection_tracker_host_ = new PeerConnectionTrackerHost(GetID()); |
820 AddFilter(peer_connection_tracker_host_.get()); | 824 AddFilter(peer_connection_tracker_host_.get()); |
821 AddFilter(new MediaStreamDispatcherHost( | 825 AddFilter(new MediaStreamDispatcherHost( |
822 GetID(), | 826 GetID(), |
823 browser_context->GetResourceContext()->GetMediaDeviceIDSalt(), | 827 browser_context->GetResourceContext()->GetMediaDeviceIDSalt(), |
824 media_stream_manager)); | 828 media_stream_manager)); |
825 AddFilter(new MediaStreamTrackMetricsHost()); | 829 AddFilter(new MediaStreamTrackMetricsHost()); |
(...skipping 1688 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2514 void RenderProcessHostImpl::GetAudioOutputControllers( | 2518 void RenderProcessHostImpl::GetAudioOutputControllers( |
2515 const GetAudioOutputControllersCallback& callback) const { | 2519 const GetAudioOutputControllersCallback& callback) const { |
2516 audio_renderer_host()->GetOutputControllers(callback); | 2520 audio_renderer_host()->GetOutputControllers(callback); |
2517 } | 2521 } |
2518 | 2522 |
2519 BluetoothDispatcherHost* RenderProcessHostImpl::GetBluetoothDispatcherHost() { | 2523 BluetoothDispatcherHost* RenderProcessHostImpl::GetBluetoothDispatcherHost() { |
2520 return bluetooth_dispatcher_host_.get(); | 2524 return bluetooth_dispatcher_host_.get(); |
2521 } | 2525 } |
2522 | 2526 |
2523 } // namespace content | 2527 } // namespace content |
OLD | NEW |