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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 #include "content/browser/renderer_host/gpu_message_filter.h" | 71 #include "content/browser/renderer_host/gpu_message_filter.h" |
72 #include "content/browser/renderer_host/media/audio_input_renderer_host.h" | 72 #include "content/browser/renderer_host/media/audio_input_renderer_host.h" |
73 #include "content/browser/renderer_host/media/audio_mirroring_manager.h" | 73 #include "content/browser/renderer_host/media/audio_mirroring_manager.h" |
74 #include "content/browser/renderer_host/media/audio_renderer_host.h" | 74 #include "content/browser/renderer_host/media/audio_renderer_host.h" |
75 #include "content/browser/renderer_host/media/media_stream_dispatcher_host.h" | 75 #include "content/browser/renderer_host/media/media_stream_dispatcher_host.h" |
76 #include "content/browser/renderer_host/media/peer_connection_tracker_host.h" | 76 #include "content/browser/renderer_host/media/peer_connection_tracker_host.h" |
77 #include "content/browser/renderer_host/media/video_capture_host.h" | 77 #include "content/browser/renderer_host/media/video_capture_host.h" |
78 #include "content/browser/renderer_host/memory_benchmark_message_filter.h" | 78 #include "content/browser/renderer_host/memory_benchmark_message_filter.h" |
79 #include "content/browser/renderer_host/p2p/socket_dispatcher_host.h" | 79 #include "content/browser/renderer_host/p2p/socket_dispatcher_host.h" |
80 #include "content/browser/renderer_host/pepper/pepper_message_filter.h" | 80 #include "content/browser/renderer_host/pepper/pepper_message_filter.h" |
| 81 #include "content/browser/renderer_host/pepper/pepper_renderer_connection.h" |
81 #include "content/browser/renderer_host/quota_dispatcher_host.h" | 82 #include "content/browser/renderer_host/quota_dispatcher_host.h" |
82 #include "content/browser/renderer_host/render_message_filter.h" | 83 #include "content/browser/renderer_host/render_message_filter.h" |
83 #include "content/browser/renderer_host/render_view_host_delegate.h" | 84 #include "content/browser/renderer_host/render_view_host_delegate.h" |
84 #include "content/browser/renderer_host/render_view_host_impl.h" | 85 #include "content/browser/renderer_host/render_view_host_impl.h" |
85 #include "content/browser/renderer_host/render_widget_helper.h" | 86 #include "content/browser/renderer_host/render_widget_helper.h" |
86 #include "content/browser/renderer_host/socket_stream_dispatcher_host.h" | 87 #include "content/browser/renderer_host/socket_stream_dispatcher_host.h" |
87 #include "content/browser/renderer_host/text_input_client_message_filter.h" | 88 #include "content/browser/renderer_host/text_input_client_message_filter.h" |
88 #include "content/browser/resolve_proxy_msg_helper.h" | 89 #include "content/browser/resolve_proxy_msg_helper.h" |
89 #include "content/browser/speech/input_tag_speech_dispatcher_host.h" | 90 #include "content/browser/speech/input_tag_speech_dispatcher_host.h" |
90 #include "content/browser/speech/speech_recognition_dispatcher_host.h" | 91 #include "content/browser/speech/speech_recognition_dispatcher_host.h" |
(...skipping 542 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
633 GetID(), browser_context->GetGeolocationPermissionContext())); | 634 GetID(), browser_context->GetGeolocationPermissionContext())); |
634 } | 635 } |
635 gpu_message_filter_ = new GpuMessageFilter(GetID(), widget_helper_.get()); | 636 gpu_message_filter_ = new GpuMessageFilter(GetID(), widget_helper_.get()); |
636 channel_->AddFilter(gpu_message_filter_); | 637 channel_->AddFilter(gpu_message_filter_); |
637 #if defined(ENABLE_WEBRTC) | 638 #if defined(ENABLE_WEBRTC) |
638 peer_connection_tracker_host_ = new PeerConnectionTrackerHost(GetID()); | 639 peer_connection_tracker_host_ = new PeerConnectionTrackerHost(GetID()); |
639 channel_->AddFilter(peer_connection_tracker_host_.get()); | 640 channel_->AddFilter(peer_connection_tracker_host_.get()); |
640 channel_->AddFilter(new MediaStreamDispatcherHost(GetID())); | 641 channel_->AddFilter(new MediaStreamDispatcherHost(GetID())); |
641 #endif | 642 #endif |
642 #if defined(ENABLE_PLUGINS) | 643 #if defined(ENABLE_PLUGINS) |
| 644 // TODO(raymes): PepperMessageFilter should be removed from here. |
643 channel_->AddFilter(new PepperMessageFilter(GetID(), browser_context)); | 645 channel_->AddFilter(new PepperMessageFilter(GetID(), browser_context)); |
| 646 channel_->AddFilter(new PepperRendererConnection); |
644 #endif | 647 #endif |
645 #if defined(ENABLE_INPUT_SPEECH) | 648 #if defined(ENABLE_INPUT_SPEECH) |
646 channel_->AddFilter(new InputTagSpeechDispatcherHost( | 649 channel_->AddFilter(new InputTagSpeechDispatcherHost( |
647 IsGuest(), GetID(), storage_partition_impl_->GetURLRequestContext(), | 650 IsGuest(), GetID(), storage_partition_impl_->GetURLRequestContext(), |
648 browser_context->GetSpeechRecognitionPreferences())); | 651 browser_context->GetSpeechRecognitionPreferences())); |
649 #endif | 652 #endif |
650 channel_->AddFilter(new SpeechRecognitionDispatcherHost( | 653 channel_->AddFilter(new SpeechRecognitionDispatcherHost( |
651 GetID(), storage_partition_impl_->GetURLRequestContext(), | 654 GetID(), storage_partition_impl_->GetURLRequestContext(), |
652 browser_context->GetSpeechRecognitionPreferences())); | 655 browser_context->GetSpeechRecognitionPreferences())); |
653 channel_->AddFilter(new FileAPIMessageFilter( | 656 channel_->AddFilter(new FileAPIMessageFilter( |
(...skipping 1141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1795 continue; | 1798 continue; |
1796 | 1799 |
1797 RenderViewHost* rvh = | 1800 RenderViewHost* rvh = |
1798 RenderViewHost::From(const_cast<RenderWidgetHost*>(widget)); | 1801 RenderViewHost::From(const_cast<RenderWidgetHost*>(widget)); |
1799 | 1802 |
1800 rvh->UpdateWebkitPreferences(rvh->GetWebkitPreferences()); | 1803 rvh->UpdateWebkitPreferences(rvh->GetWebkitPreferences()); |
1801 } | 1804 } |
1802 } | 1805 } |
1803 | 1806 |
1804 } // namespace content | 1807 } // namespace content |
OLD | NEW |