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 535 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
626 GetID(), browser_context->GetGeolocationPermissionContext())); | 627 GetID(), browser_context->GetGeolocationPermissionContext())); |
627 } | 628 } |
628 gpu_message_filter_ = new GpuMessageFilter(GetID(), widget_helper_.get()); | 629 gpu_message_filter_ = new GpuMessageFilter(GetID(), widget_helper_.get()); |
629 channel_->AddFilter(gpu_message_filter_); | 630 channel_->AddFilter(gpu_message_filter_); |
630 #if defined(ENABLE_WEBRTC) | 631 #if defined(ENABLE_WEBRTC) |
631 peer_connection_tracker_host_ = new PeerConnectionTrackerHost(GetID()); | 632 peer_connection_tracker_host_ = new PeerConnectionTrackerHost(GetID()); |
632 channel_->AddFilter(peer_connection_tracker_host_); | 633 channel_->AddFilter(peer_connection_tracker_host_); |
633 channel_->AddFilter(new MediaStreamDispatcherHost(GetID())); | 634 channel_->AddFilter(new MediaStreamDispatcherHost(GetID())); |
634 #endif | 635 #endif |
635 #if defined(ENABLE_PLUGINS) | 636 #if defined(ENABLE_PLUGINS) |
| 637 // TODO(raymes): PepperMessageFilter should be removed from here. |
636 channel_->AddFilter(new PepperMessageFilter(GetID(), browser_context)); | 638 channel_->AddFilter(new PepperMessageFilter(GetID(), browser_context)); |
| 639 channel_->AddFilter(new PepperRendererConnection); |
637 #endif | 640 #endif |
638 #if defined(ENABLE_INPUT_SPEECH) | 641 #if defined(ENABLE_INPUT_SPEECH) |
639 channel_->AddFilter(new InputTagSpeechDispatcherHost( | 642 channel_->AddFilter(new InputTagSpeechDispatcherHost( |
640 IsGuest(), GetID(), storage_partition_impl_->GetURLRequestContext(), | 643 IsGuest(), GetID(), storage_partition_impl_->GetURLRequestContext(), |
641 browser_context->GetSpeechRecognitionPreferences())); | 644 browser_context->GetSpeechRecognitionPreferences())); |
642 channel_->AddFilter(new SpeechRecognitionDispatcherHost( | 645 channel_->AddFilter(new SpeechRecognitionDispatcherHost( |
643 GetID(), storage_partition_impl_->GetURLRequestContext(), | 646 GetID(), storage_partition_impl_->GetURLRequestContext(), |
644 browser_context->GetSpeechRecognitionPreferences())); | 647 browser_context->GetSpeechRecognitionPreferences())); |
645 #endif | 648 #endif |
646 channel_->AddFilter(new FileAPIMessageFilter( | 649 channel_->AddFilter(new FileAPIMessageFilter( |
(...skipping 1124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1771 TRACE_EVENT0("renderer_host", | 1774 TRACE_EVENT0("renderer_host", |
1772 "RenderWidgetHostImpl::OnCompositorSurfaceBuffersSwappedNoHost"); | 1775 "RenderWidgetHostImpl::OnCompositorSurfaceBuffersSwappedNoHost"); |
1773 AcceleratedSurfaceMsg_BufferPresented_Params ack_params; | 1776 AcceleratedSurfaceMsg_BufferPresented_Params ack_params; |
1774 ack_params.sync_point = 0; | 1777 ack_params.sync_point = 0; |
1775 RenderWidgetHostImpl::AcknowledgeBufferPresent(route_id, | 1778 RenderWidgetHostImpl::AcknowledgeBufferPresent(route_id, |
1776 gpu_process_host_id, | 1779 gpu_process_host_id, |
1777 ack_params); | 1780 ack_params); |
1778 } | 1781 } |
1779 | 1782 |
1780 } // namespace content | 1783 } // namespace content |
OLD | NEW |