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 888 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
899 storage_partition_impl_->GetServiceWorkerContext()), | 899 storage_partition_impl_->GetServiceWorkerContext()), |
900 message_port_message_filter_.get())); | 900 message_port_message_filter_.get())); |
901 | 901 |
902 #if defined(ENABLE_WEBRTC) | 902 #if defined(ENABLE_WEBRTC) |
903 p2p_socket_dispatcher_host_ = new P2PSocketDispatcherHost( | 903 p2p_socket_dispatcher_host_ = new P2PSocketDispatcherHost( |
904 resource_context, | 904 resource_context, |
905 browser_context->GetRequestContextForRenderProcess(GetID())); | 905 browser_context->GetRequestContextForRenderProcess(GetID())); |
906 AddFilter(p2p_socket_dispatcher_host_.get()); | 906 AddFilter(p2p_socket_dispatcher_host_.get()); |
907 #endif | 907 #endif |
908 | 908 |
909 AddFilter(new TraceMessageFilter()); | 909 AddFilter(new TraceMessageFilter(GetID())); |
910 AddFilter(new ResolveProxyMsgHelper( | 910 AddFilter(new ResolveProxyMsgHelper( |
911 browser_context->GetRequestContextForRenderProcess(GetID()))); | 911 browser_context->GetRequestContextForRenderProcess(GetID()))); |
912 AddFilter(new QuotaDispatcherHost( | 912 AddFilter(new QuotaDispatcherHost( |
913 GetID(), | 913 GetID(), |
914 storage_partition_impl_->GetQuotaManager(), | 914 storage_partition_impl_->GetQuotaManager(), |
915 GetContentClient()->browser()->CreateQuotaPermissionContext())); | 915 GetContentClient()->browser()->CreateQuotaPermissionContext())); |
916 | 916 |
917 notification_message_filter_ = new NotificationMessageFilter( | 917 notification_message_filter_ = new NotificationMessageFilter( |
918 GetID(), | 918 GetID(), |
919 storage_partition_impl_->GetPlatformNotificationContext(), | 919 storage_partition_impl_->GetPlatformNotificationContext(), |
(...skipping 1599 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2519 void RenderProcessHostImpl::GetAudioOutputControllers( | 2519 void RenderProcessHostImpl::GetAudioOutputControllers( |
2520 const GetAudioOutputControllersCallback& callback) const { | 2520 const GetAudioOutputControllersCallback& callback) const { |
2521 audio_renderer_host()->GetOutputControllers(callback); | 2521 audio_renderer_host()->GetOutputControllers(callback); |
2522 } | 2522 } |
2523 | 2523 |
2524 BluetoothDispatcherHost* RenderProcessHostImpl::GetBluetoothDispatcherHost() { | 2524 BluetoothDispatcherHost* RenderProcessHostImpl::GetBluetoothDispatcherHost() { |
2525 return bluetooth_dispatcher_host_.get(); | 2525 return bluetooth_dispatcher_host_.get(); |
2526 } | 2526 } |
2527 | 2527 |
2528 } // namespace content | 2528 } // namespace content |
OLD | NEW |