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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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/midi_host.h" | 76 #include "content/browser/renderer_host/media/midi_host.h" |
77 #include "content/browser/renderer_host/media/peer_connection_tracker_host.h" | |
78 #include "content/browser/renderer_host/media/video_capture_host.h" | 77 #include "content/browser/renderer_host/media/video_capture_host.h" |
79 #include "content/browser/renderer_host/memory_benchmark_message_filter.h" | 78 #include "content/browser/renderer_host/memory_benchmark_message_filter.h" |
80 #include "content/browser/renderer_host/p2p/socket_dispatcher_host.h" | 79 #include "content/browser/renderer_host/p2p/socket_dispatcher_host.h" |
81 #include "content/browser/renderer_host/pepper/pepper_message_filter.h" | 80 #include "content/browser/renderer_host/pepper/pepper_message_filter.h" |
82 #include "content/browser/renderer_host/pepper/pepper_renderer_connection.h" | 81 #include "content/browser/renderer_host/pepper/pepper_renderer_connection.h" |
83 #include "content/browser/renderer_host/quota_dispatcher_host.h" | 82 #include "content/browser/renderer_host/quota_dispatcher_host.h" |
84 #include "content/browser/renderer_host/render_message_filter.h" | 83 #include "content/browser/renderer_host/render_message_filter.h" |
85 #include "content/browser/renderer_host/render_view_host_delegate.h" | 84 #include "content/browser/renderer_host/render_view_host_delegate.h" |
86 #include "content/browser/renderer_host/render_view_host_impl.h" | 85 #include "content/browser/renderer_host/render_view_host_impl.h" |
87 #include "content/browser/renderer_host/render_widget_helper.h" | 86 #include "content/browser/renderer_host/render_widget_helper.h" |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
130 #include "webkit/glue/resource_type.h" | 129 #include "webkit/glue/resource_type.h" |
131 #include "webkit/plugins/plugin_switches.h" | 130 #include "webkit/plugins/plugin_switches.h" |
132 | 131 |
133 #if defined(OS_WIN) | 132 #if defined(OS_WIN) |
134 #include "base/win/scoped_com_initializer.h" | 133 #include "base/win/scoped_com_initializer.h" |
135 #include "content/common/font_cache_dispatcher_win.h" | 134 #include "content/common/font_cache_dispatcher_win.h" |
136 #include "content/common/sandbox_win.h" | 135 #include "content/common/sandbox_win.h" |
137 #include "content/public/common/sandboxed_process_launcher_delegate.h" | 136 #include "content/public/common/sandboxed_process_launcher_delegate.h" |
138 #endif | 137 #endif |
139 | 138 |
| 139 #if defined(ENABLE_WEBRTC) |
| 140 #include "content/browser/renderer_host/media/peer_connection_tracker_host.h" |
| 141 #include "content/browser/renderer_host/media/webrtc_identity_service_host.h" |
| 142 #endif |
| 143 |
140 #include "third_party/skia/include/core/SkBitmap.h" | 144 #include "third_party/skia/include/core/SkBitmap.h" |
141 | 145 |
142 extern bool g_exited_main_message_loop; | 146 extern bool g_exited_main_message_loop; |
143 | 147 |
144 static const char* kSiteProcessMapKeyName = "content_site_process_map"; | 148 static const char* kSiteProcessMapKeyName = "content_site_process_map"; |
145 | 149 |
146 namespace content { | 150 namespace content { |
147 namespace { | 151 namespace { |
148 | 152 |
149 base::MessageLoop* g_in_process_thread; | 153 base::MessageLoop* g_in_process_thread; |
(...skipping 475 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
625 } | 629 } |
626 channel_->AddFilter(GeolocationDispatcherHost::New( | 630 channel_->AddFilter(GeolocationDispatcherHost::New( |
627 GetID(), g_browser_plugin_geolocation_context.Get().get())); | 631 GetID(), g_browser_plugin_geolocation_context.Get().get())); |
628 } else { | 632 } else { |
629 channel_->AddFilter(GeolocationDispatcherHost::New( | 633 channel_->AddFilter(GeolocationDispatcherHost::New( |
630 GetID(), browser_context->GetGeolocationPermissionContext())); | 634 GetID(), browser_context->GetGeolocationPermissionContext())); |
631 } | 635 } |
632 gpu_message_filter_ = new GpuMessageFilter(GetID(), widget_helper_.get()); | 636 gpu_message_filter_ = new GpuMessageFilter(GetID(), widget_helper_.get()); |
633 channel_->AddFilter(gpu_message_filter_); | 637 channel_->AddFilter(gpu_message_filter_); |
634 #if defined(ENABLE_WEBRTC) | 638 #if defined(ENABLE_WEBRTC) |
| 639 channel_->AddFilter(new WebRTCIdentityServiceHost( |
| 640 storage_partition_impl_->GetWebRTCIdentityStore())); |
635 peer_connection_tracker_host_ = new PeerConnectionTrackerHost(GetID()); | 641 peer_connection_tracker_host_ = new PeerConnectionTrackerHost(GetID()); |
636 channel_->AddFilter(peer_connection_tracker_host_.get()); | 642 channel_->AddFilter(peer_connection_tracker_host_.get()); |
637 channel_->AddFilter(new MediaStreamDispatcherHost( | 643 channel_->AddFilter(new MediaStreamDispatcherHost( |
638 GetID(), media_stream_manager)); | 644 GetID(), media_stream_manager)); |
639 #endif | 645 #endif |
640 #if defined(ENABLE_PLUGINS) | 646 #if defined(ENABLE_PLUGINS) |
641 // TODO(raymes): PepperMessageFilter should be removed from here. | 647 // TODO(raymes): PepperMessageFilter should be removed from here. |
642 channel_->AddFilter(new PepperMessageFilter(GetID(), browser_context)); | 648 channel_->AddFilter(new PepperMessageFilter(GetID(), browser_context)); |
643 channel_->AddFilter(new PepperRendererConnection); | 649 channel_->AddFilter(new PepperRendererConnection); |
644 #endif | 650 #endif |
(...skipping 1131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1776 // Skip widgets in other processes. | 1782 // Skip widgets in other processes. |
1777 if (widgets[i]->GetProcess()->GetID() != GetID()) | 1783 if (widgets[i]->GetProcess()->GetID() != GetID()) |
1778 continue; | 1784 continue; |
1779 | 1785 |
1780 RenderViewHost* rvh = RenderViewHost::From(widgets[i]); | 1786 RenderViewHost* rvh = RenderViewHost::From(widgets[i]); |
1781 rvh->UpdateWebkitPreferences(rvh->GetWebkitPreferences()); | 1787 rvh->UpdateWebkitPreferences(rvh->GetWebkitPreferences()); |
1782 } | 1788 } |
1783 } | 1789 } |
1784 | 1790 |
1785 } // namespace content | 1791 } // namespace content |
OLD | NEW |