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 886 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
897 storage_partition_impl_->GetServiceWorkerContext()), | 897 storage_partition_impl_->GetServiceWorkerContext()), |
898 message_port_message_filter_.get())); | 898 message_port_message_filter_.get())); |
899 | 899 |
900 #if defined(ENABLE_WEBRTC) | 900 #if defined(ENABLE_WEBRTC) |
901 p2p_socket_dispatcher_host_ = new P2PSocketDispatcherHost( | 901 p2p_socket_dispatcher_host_ = new P2PSocketDispatcherHost( |
902 resource_context, | 902 resource_context, |
903 browser_context->GetRequestContextForRenderProcess(GetID())); | 903 browser_context->GetRequestContextForRenderProcess(GetID())); |
904 AddFilter(p2p_socket_dispatcher_host_.get()); | 904 AddFilter(p2p_socket_dispatcher_host_.get()); |
905 #endif | 905 #endif |
906 | 906 |
907 AddFilter(new TraceMessageFilter()); | 907 AddFilter(new TraceMessageFilter(GetID())); |
908 AddFilter(new ResolveProxyMsgHelper( | 908 AddFilter(new ResolveProxyMsgHelper( |
909 browser_context->GetRequestContextForRenderProcess(GetID()))); | 909 browser_context->GetRequestContextForRenderProcess(GetID()))); |
910 AddFilter(new QuotaDispatcherHost( | 910 AddFilter(new QuotaDispatcherHost( |
911 GetID(), | 911 GetID(), |
912 storage_partition_impl_->GetQuotaManager(), | 912 storage_partition_impl_->GetQuotaManager(), |
913 GetContentClient()->browser()->CreateQuotaPermissionContext())); | 913 GetContentClient()->browser()->CreateQuotaPermissionContext())); |
914 | 914 |
915 notification_message_filter_ = new NotificationMessageFilter( | 915 notification_message_filter_ = new NotificationMessageFilter( |
916 GetID(), | 916 GetID(), |
917 storage_partition_impl_->GetPlatformNotificationContext(), | 917 storage_partition_impl_->GetPlatformNotificationContext(), |
(...skipping 1587 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2505 void RenderProcessHostImpl::GetAudioOutputControllers( | 2505 void RenderProcessHostImpl::GetAudioOutputControllers( |
2506 const GetAudioOutputControllersCallback& callback) const { | 2506 const GetAudioOutputControllersCallback& callback) const { |
2507 audio_renderer_host()->GetOutputControllers(callback); | 2507 audio_renderer_host()->GetOutputControllers(callback); |
2508 } | 2508 } |
2509 | 2509 |
2510 BluetoothDispatcherHost* RenderProcessHostImpl::GetBluetoothDispatcherHost() { | 2510 BluetoothDispatcherHost* RenderProcessHostImpl::GetBluetoothDispatcherHost() { |
2511 return bluetooth_dispatcher_host_.get(); | 2511 return bluetooth_dispatcher_host_.get(); |
2512 } | 2512 } |
2513 | 2513 |
2514 } // namespace content | 2514 } // namespace content |
OLD | NEW |