| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 696 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 707 gpu_message_filter_ = new GpuMessageFilter(GetID(), widget_helper_.get()); | 707 gpu_message_filter_ = new GpuMessageFilter(GetID(), widget_helper_.get()); |
| 708 AddFilter(gpu_message_filter_); | 708 AddFilter(gpu_message_filter_); |
| 709 #if defined(ENABLE_WEBRTC) | 709 #if defined(ENABLE_WEBRTC) |
| 710 AddFilter(new WebRTCIdentityServiceHost( | 710 AddFilter(new WebRTCIdentityServiceHost( |
| 711 GetID(), storage_partition_impl_->GetWebRTCIdentityStore())); | 711 GetID(), storage_partition_impl_->GetWebRTCIdentityStore())); |
| 712 peer_connection_tracker_host_ = new PeerConnectionTrackerHost(GetID()); | 712 peer_connection_tracker_host_ = new PeerConnectionTrackerHost(GetID()); |
| 713 AddFilter(peer_connection_tracker_host_.get()); | 713 AddFilter(peer_connection_tracker_host_.get()); |
| 714 AddFilter(new MediaStreamDispatcherHost( | 714 AddFilter(new MediaStreamDispatcherHost( |
| 715 GetID(), | 715 GetID(), |
| 716 browser_context->GetResourceContext()->GetMediaDeviceIDSalt(), | 716 browser_context->GetResourceContext()->GetMediaDeviceIDSalt(), |
| 717 media_stream_manager)); | 717 media_stream_manager, |
| 718 resource_context)); |
| 718 AddFilter(new DeviceRequestMessageFilter( | 719 AddFilter(new DeviceRequestMessageFilter( |
| 719 resource_context, media_stream_manager, GetID())); | 720 resource_context, media_stream_manager, GetID())); |
| 720 AddFilter(new MediaStreamTrackMetricsHost()); | 721 AddFilter(new MediaStreamTrackMetricsHost()); |
| 721 #endif | 722 #endif |
| 722 #if defined(ENABLE_PLUGINS) | 723 #if defined(ENABLE_PLUGINS) |
| 723 AddFilter(new PepperRendererConnection(GetID())); | 724 AddFilter(new PepperRendererConnection(GetID())); |
| 724 #endif | 725 #endif |
| 725 AddFilter(new SpeechRecognitionDispatcherHost( | 726 AddFilter(new SpeechRecognitionDispatcherHost( |
| 726 GetID(), storage_partition_impl_->GetURLRequestContext())); | 727 GetID(), storage_partition_impl_->GetURLRequestContext())); |
| 727 AddFilter(new FileAPIMessageFilter( | 728 AddFilter(new FileAPIMessageFilter( |
| (...skipping 1344 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2072 mojo::ScopedMessagePipeHandle handle) { | 2073 mojo::ScopedMessagePipeHandle handle) { |
| 2073 mojo_activation_required_ = true; | 2074 mojo_activation_required_ = true; |
| 2074 MaybeActivateMojo(); | 2075 MaybeActivateMojo(); |
| 2075 | 2076 |
| 2076 mojo::AllocationScope scope; | 2077 mojo::AllocationScope scope; |
| 2077 mojo_application_host_->shell_client()->AcceptConnection(service_name, | 2078 mojo_application_host_->shell_client()->AcceptConnection(service_name, |
| 2078 handle.Pass()); | 2079 handle.Pass()); |
| 2079 } | 2080 } |
| 2080 | 2081 |
| 2081 } // namespace content | 2082 } // namespace content |
| OLD | NEW |