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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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/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" | |
77 #include "content/browser/renderer_host/media/video_capture_host.h" | 76 #include "content/browser/renderer_host/media/video_capture_host.h" |
78 #include "content/browser/renderer_host/memory_benchmark_message_filter.h" | 77 #include "content/browser/renderer_host/memory_benchmark_message_filter.h" |
79 #include "content/browser/renderer_host/p2p/socket_dispatcher_host.h" | 78 #include "content/browser/renderer_host/p2p/socket_dispatcher_host.h" |
80 #include "content/browser/renderer_host/pepper/pepper_message_filter.h" | 79 #include "content/browser/renderer_host/pepper/pepper_message_filter.h" |
81 #include "content/browser/renderer_host/quota_dispatcher_host.h" | 80 #include "content/browser/renderer_host/quota_dispatcher_host.h" |
82 #include "content/browser/renderer_host/render_message_filter.h" | 81 #include "content/browser/renderer_host/render_message_filter.h" |
83 #include "content/browser/renderer_host/render_view_host_delegate.h" | 82 #include "content/browser/renderer_host/render_view_host_delegate.h" |
84 #include "content/browser/renderer_host/render_view_host_impl.h" | 83 #include "content/browser/renderer_host/render_view_host_impl.h" |
85 #include "content/browser/renderer_host/render_widget_helper.h" | 84 #include "content/browser/renderer_host/render_widget_helper.h" |
86 #include "content/browser/renderer_host/socket_stream_dispatcher_host.h" | 85 #include "content/browser/renderer_host/socket_stream_dispatcher_host.h" |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
128 #include "webkit/glue/resource_type.h" | 127 #include "webkit/glue/resource_type.h" |
129 #include "webkit/plugins/plugin_switches.h" | 128 #include "webkit/plugins/plugin_switches.h" |
130 | 129 |
131 #if defined(OS_WIN) | 130 #if defined(OS_WIN) |
132 #include "base/win/scoped_com_initializer.h" | 131 #include "base/win/scoped_com_initializer.h" |
133 #include "content/common/font_cache_dispatcher_win.h" | 132 #include "content/common/font_cache_dispatcher_win.h" |
134 #include "content/common/sandbox_win.h" | 133 #include "content/common/sandbox_win.h" |
135 #include "content/public/common/sandboxed_process_launcher_delegate.h" | 134 #include "content/public/common/sandboxed_process_launcher_delegate.h" |
136 #endif | 135 #endif |
137 | 136 |
| 137 #if defined(ENABLE_WEBRTC) |
| 138 #include "content/browser/renderer_host/media/dtls_identity_service_host.h" |
| 139 #include "content/browser/renderer_host/media/peer_connection_tracker_host.h" |
| 140 #endif |
| 141 |
138 #include "third_party/skia/include/core/SkBitmap.h" | 142 #include "third_party/skia/include/core/SkBitmap.h" |
139 | 143 |
140 extern bool g_exited_main_message_loop; | 144 extern bool g_exited_main_message_loop; |
141 | 145 |
142 static const char* kSiteProcessMapKeyName = "content_site_process_map"; | 146 static const char* kSiteProcessMapKeyName = "content_site_process_map"; |
143 | 147 |
144 namespace content { | 148 namespace content { |
145 namespace { | 149 namespace { |
146 | 150 |
147 base::MessageLoop* g_in_process_thread; | 151 base::MessageLoop* g_in_process_thread; |
(...skipping 480 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
628 } | 632 } |
629 channel_->AddFilter(GeolocationDispatcherHost::New( | 633 channel_->AddFilter(GeolocationDispatcherHost::New( |
630 GetID(), g_browser_plugin_geolocation_context.Get().get())); | 634 GetID(), g_browser_plugin_geolocation_context.Get().get())); |
631 } else { | 635 } else { |
632 channel_->AddFilter(GeolocationDispatcherHost::New( | 636 channel_->AddFilter(GeolocationDispatcherHost::New( |
633 GetID(), browser_context->GetGeolocationPermissionContext())); | 637 GetID(), browser_context->GetGeolocationPermissionContext())); |
634 } | 638 } |
635 gpu_message_filter_ = new GpuMessageFilter(GetID(), widget_helper_.get()); | 639 gpu_message_filter_ = new GpuMessageFilter(GetID(), widget_helper_.get()); |
636 channel_->AddFilter(gpu_message_filter_); | 640 channel_->AddFilter(gpu_message_filter_); |
637 #if defined(ENABLE_WEBRTC) | 641 #if defined(ENABLE_WEBRTC) |
| 642 channel_->AddFilter(new DTLSIdentityServiceHost()); |
638 peer_connection_tracker_host_ = new PeerConnectionTrackerHost(GetID()); | 643 peer_connection_tracker_host_ = new PeerConnectionTrackerHost(GetID()); |
639 channel_->AddFilter(peer_connection_tracker_host_.get()); | 644 channel_->AddFilter(peer_connection_tracker_host_.get()); |
640 channel_->AddFilter(new MediaStreamDispatcherHost(GetID())); | 645 channel_->AddFilter(new MediaStreamDispatcherHost(GetID())); |
641 #endif | 646 #endif |
642 #if defined(ENABLE_PLUGINS) | 647 #if defined(ENABLE_PLUGINS) |
643 channel_->AddFilter(new PepperMessageFilter(GetID(), browser_context)); | 648 channel_->AddFilter(new PepperMessageFilter(GetID(), browser_context)); |
644 #endif | 649 #endif |
645 #if defined(ENABLE_INPUT_SPEECH) | 650 #if defined(ENABLE_INPUT_SPEECH) |
646 channel_->AddFilter(new InputTagSpeechDispatcherHost( | 651 channel_->AddFilter(new InputTagSpeechDispatcherHost( |
647 IsGuest(), GetID(), storage_partition_impl_->GetURLRequestContext(), | 652 IsGuest(), GetID(), storage_partition_impl_->GetURLRequestContext(), |
(...skipping 1147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1795 continue; | 1800 continue; |
1796 | 1801 |
1797 RenderViewHost* rvh = | 1802 RenderViewHost* rvh = |
1798 RenderViewHost::From(const_cast<RenderWidgetHost*>(widget)); | 1803 RenderViewHost::From(const_cast<RenderWidgetHost*>(widget)); |
1799 | 1804 |
1800 rvh->UpdateWebkitPreferences(rvh->GetWebkitPreferences()); | 1805 rvh->UpdateWebkitPreferences(rvh->GetWebkitPreferences()); |
1801 } | 1806 } |
1802 } | 1807 } |
1803 | 1808 |
1804 } // namespace content | 1809 } // namespace content |
OLD | NEW |