| 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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 #include "content/browser/profiler_message_filter.h" | 74 #include "content/browser/profiler_message_filter.h" |
| 75 #include "content/browser/push_messaging_message_filter.h" | 75 #include "content/browser/push_messaging_message_filter.h" |
| 76 #include "content/browser/quota_dispatcher_host.h" | 76 #include "content/browser/quota_dispatcher_host.h" |
| 77 #include "content/browser/renderer_host/clipboard_message_filter.h" | 77 #include "content/browser/renderer_host/clipboard_message_filter.h" |
| 78 #include "content/browser/renderer_host/database_message_filter.h" | 78 #include "content/browser/renderer_host/database_message_filter.h" |
| 79 #include "content/browser/renderer_host/file_utilities_message_filter.h" | 79 #include "content/browser/renderer_host/file_utilities_message_filter.h" |
| 80 #include "content/browser/renderer_host/gamepad_browser_message_filter.h" | 80 #include "content/browser/renderer_host/gamepad_browser_message_filter.h" |
| 81 #include "content/browser/renderer_host/gpu_message_filter.h" | 81 #include "content/browser/renderer_host/gpu_message_filter.h" |
| 82 #include "content/browser/renderer_host/media/audio_input_renderer_host.h" | 82 #include "content/browser/renderer_host/media/audio_input_renderer_host.h" |
| 83 #include "content/browser/renderer_host/media/audio_renderer_host.h" | 83 #include "content/browser/renderer_host/media/audio_renderer_host.h" |
| 84 #include "content/browser/renderer_host/media/device_request_message_filter.h" | |
| 85 #include "content/browser/renderer_host/media/media_stream_dispatcher_host.h" | 84 #include "content/browser/renderer_host/media/media_stream_dispatcher_host.h" |
| 86 #include "content/browser/renderer_host/media/peer_connection_tracker_host.h" | 85 #include "content/browser/renderer_host/media/peer_connection_tracker_host.h" |
| 87 #include "content/browser/renderer_host/media/video_capture_host.h" | 86 #include "content/browser/renderer_host/media/video_capture_host.h" |
| 88 #include "content/browser/renderer_host/memory_benchmark_message_filter.h" | 87 #include "content/browser/renderer_host/memory_benchmark_message_filter.h" |
| 89 #include "content/browser/renderer_host/pepper/pepper_message_filter.h" | 88 #include "content/browser/renderer_host/pepper/pepper_message_filter.h" |
| 90 #include "content/browser/renderer_host/pepper/pepper_renderer_connection.h" | 89 #include "content/browser/renderer_host/pepper/pepper_renderer_connection.h" |
| 91 #include "content/browser/renderer_host/render_message_filter.h" | 90 #include "content/browser/renderer_host/render_message_filter.h" |
| 92 #include "content/browser/renderer_host/render_view_host_delegate.h" | 91 #include "content/browser/renderer_host/render_view_host_delegate.h" |
| 93 #include "content/browser/renderer_host/render_view_host_impl.h" | 92 #include "content/browser/renderer_host/render_view_host_impl.h" |
| 94 #include "content/browser/renderer_host/render_widget_helper.h" | 93 #include "content/browser/renderer_host/render_widget_helper.h" |
| (...skipping 679 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 774 AddFilter(gpu_message_filter_); | 773 AddFilter(gpu_message_filter_); |
| 775 #if defined(ENABLE_WEBRTC) | 774 #if defined(ENABLE_WEBRTC) |
| 776 AddFilter(new WebRTCIdentityServiceHost( | 775 AddFilter(new WebRTCIdentityServiceHost( |
| 777 GetID(), storage_partition_impl_->GetWebRTCIdentityStore())); | 776 GetID(), storage_partition_impl_->GetWebRTCIdentityStore())); |
| 778 peer_connection_tracker_host_ = new PeerConnectionTrackerHost(GetID()); | 777 peer_connection_tracker_host_ = new PeerConnectionTrackerHost(GetID()); |
| 779 AddFilter(peer_connection_tracker_host_.get()); | 778 AddFilter(peer_connection_tracker_host_.get()); |
| 780 AddFilter(new MediaStreamDispatcherHost( | 779 AddFilter(new MediaStreamDispatcherHost( |
| 781 GetID(), | 780 GetID(), |
| 782 browser_context->GetResourceContext()->GetMediaDeviceIDSalt(), | 781 browser_context->GetResourceContext()->GetMediaDeviceIDSalt(), |
| 783 media_stream_manager)); | 782 media_stream_manager)); |
| 784 AddFilter(new DeviceRequestMessageFilter( | |
| 785 resource_context, media_stream_manager, GetID())); | |
| 786 AddFilter(new MediaStreamTrackMetricsHost()); | 783 AddFilter(new MediaStreamTrackMetricsHost()); |
| 787 #endif | 784 #endif |
| 788 #if defined(ENABLE_PLUGINS) | 785 #if defined(ENABLE_PLUGINS) |
| 789 AddFilter(new PepperRendererConnection(GetID())); | 786 AddFilter(new PepperRendererConnection(GetID())); |
| 790 #endif | 787 #endif |
| 791 AddFilter(new SpeechRecognitionDispatcherHost( | 788 AddFilter(new SpeechRecognitionDispatcherHost( |
| 792 GetID(), storage_partition_impl_->GetURLRequestContext())); | 789 GetID(), storage_partition_impl_->GetURLRequestContext())); |
| 793 AddFilter(new FileAPIMessageFilter( | 790 AddFilter(new FileAPIMessageFilter( |
| 794 GetID(), | 791 GetID(), |
| 795 storage_partition_impl_->GetURLRequestContext(), | 792 storage_partition_impl_->GetURLRequestContext(), |
| (...skipping 1456 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2252 if (worker_ref_count_ == 0) | 2249 if (worker_ref_count_ == 0) |
| 2253 Cleanup(); | 2250 Cleanup(); |
| 2254 } | 2251 } |
| 2255 | 2252 |
| 2256 void RenderProcessHostImpl::EnsureMojoActivated() { | 2253 void RenderProcessHostImpl::EnsureMojoActivated() { |
| 2257 mojo_activation_required_ = true; | 2254 mojo_activation_required_ = true; |
| 2258 MaybeActivateMojo(); | 2255 MaybeActivateMojo(); |
| 2259 } | 2256 } |
| 2260 | 2257 |
| 2261 } // namespace content | 2258 } // namespace content |
| OLD | NEW |