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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 #include "content/browser/plugin_service_impl.h" | 65 #include "content/browser/plugin_service_impl.h" |
66 #include "content/browser/profiler_message_filter.h" | 66 #include "content/browser/profiler_message_filter.h" |
67 #include "content/browser/renderer_host/clipboard_message_filter.h" | 67 #include "content/browser/renderer_host/clipboard_message_filter.h" |
68 #include "content/browser/renderer_host/database_message_filter.h" | 68 #include "content/browser/renderer_host/database_message_filter.h" |
69 #include "content/browser/renderer_host/file_utilities_message_filter.h" | 69 #include "content/browser/renderer_host/file_utilities_message_filter.h" |
70 #include "content/browser/renderer_host/gamepad_browser_message_filter.h" | 70 #include "content/browser/renderer_host/gamepad_browser_message_filter.h" |
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/dtls_identity_service_host.h" |
75 #include "content/browser/renderer_host/media/media_stream_dispatcher_host.h" | 76 #include "content/browser/renderer_host/media/media_stream_dispatcher_host.h" |
76 #include "content/browser/renderer_host/media/peer_connection_tracker_host.h" | 77 #include "content/browser/renderer_host/media/peer_connection_tracker_host.h" |
77 #include "content/browser/renderer_host/media/video_capture_host.h" | 78 #include "content/browser/renderer_host/media/video_capture_host.h" |
78 #include "content/browser/renderer_host/memory_benchmark_message_filter.h" | 79 #include "content/browser/renderer_host/memory_benchmark_message_filter.h" |
79 #include "content/browser/renderer_host/p2p/socket_dispatcher_host.h" | 80 #include "content/browser/renderer_host/p2p/socket_dispatcher_host.h" |
80 #include "content/browser/renderer_host/pepper/pepper_message_filter.h" | 81 #include "content/browser/renderer_host/pepper/pepper_message_filter.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" |
(...skipping 536 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
621 } | 622 } |
622 channel_->AddFilter(GeolocationDispatcherHost::New( | 623 channel_->AddFilter(GeolocationDispatcherHost::New( |
623 GetID(), g_browser_plugin_geolocation_context.Get())); | 624 GetID(), g_browser_plugin_geolocation_context.Get())); |
624 } else { | 625 } else { |
625 channel_->AddFilter(GeolocationDispatcherHost::New( | 626 channel_->AddFilter(GeolocationDispatcherHost::New( |
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) |
| 632 dtls_identity_service_host_ = new DTLSIdentityServiceHost(); |
| 633 channel_->AddFilter(dtls_identity_service_host_); |
631 peer_connection_tracker_host_ = new PeerConnectionTrackerHost(GetID()); | 634 peer_connection_tracker_host_ = new PeerConnectionTrackerHost(GetID()); |
632 channel_->AddFilter(peer_connection_tracker_host_); | 635 channel_->AddFilter(peer_connection_tracker_host_); |
633 channel_->AddFilter(new MediaStreamDispatcherHost(GetID())); | 636 channel_->AddFilter(new MediaStreamDispatcherHost(GetID())); |
634 #endif | 637 #endif |
635 #if defined(ENABLE_PLUGINS) | 638 #if defined(ENABLE_PLUGINS) |
636 channel_->AddFilter(new PepperMessageFilter(GetID(), browser_context)); | 639 channel_->AddFilter(new PepperMessageFilter(GetID(), browser_context)); |
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(), |
(...skipping 1128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1769 TRACE_EVENT0("renderer_host", | 1772 TRACE_EVENT0("renderer_host", |
1770 "RenderWidgetHostImpl::OnCompositorSurfaceBuffersSwappedNoHost"); | 1773 "RenderWidgetHostImpl::OnCompositorSurfaceBuffersSwappedNoHost"); |
1771 AcceleratedSurfaceMsg_BufferPresented_Params ack_params; | 1774 AcceleratedSurfaceMsg_BufferPresented_Params ack_params; |
1772 ack_params.sync_point = 0; | 1775 ack_params.sync_point = 0; |
1773 RenderWidgetHostImpl::AcknowledgeBufferPresent(params.route_id, | 1776 RenderWidgetHostImpl::AcknowledgeBufferPresent(params.route_id, |
1774 params.gpu_process_host_id, | 1777 params.gpu_process_host_id, |
1775 ack_params); | 1778 ack_params); |
1776 } | 1779 } |
1777 | 1780 |
1778 } // namespace content | 1781 } // namespace content |
OLD | NEW |