OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
220 #include "content/browser/media/cdm/browser_cdm_manager.h" | 220 #include "content/browser/media/cdm/browser_cdm_manager.h" |
221 #endif | 221 #endif |
222 | 222 |
223 #if defined(ENABLE_PLUGINS) | 223 #if defined(ENABLE_PLUGINS) |
224 #include "content/browser/plugin_service_impl.h" | 224 #include "content/browser/plugin_service_impl.h" |
225 #endif | 225 #endif |
226 | 226 |
227 #if defined(ENABLE_WEBRTC) | 227 #if defined(ENABLE_WEBRTC) |
228 #include "content/browser/media/webrtc/webrtc_internals.h" | 228 #include "content/browser/media/webrtc/webrtc_internals.h" |
229 #include "content/browser/renderer_host/media/media_stream_track_metrics_host.h" | 229 #include "content/browser/renderer_host/media/media_stream_track_metrics_host.h" |
230 #include "content/browser/renderer_host/media/webrtc_identity_service_host.h" | |
231 #include "content/browser/renderer_host/p2p/socket_dispatcher_host.h" | 230 #include "content/browser/renderer_host/p2p/socket_dispatcher_host.h" |
232 #include "content/common/media/aec_dump_messages.h" | 231 #include "content/common/media/aec_dump_messages.h" |
233 #include "content/common/media/media_stream_messages.h" | 232 #include "content/common/media/media_stream_messages.h" |
234 #endif | 233 #endif |
235 | 234 |
236 #if defined(MOJO_SHELL_CLIENT) && defined(USE_AURA) | 235 #if defined(MOJO_SHELL_CLIENT) && defined(USE_AURA) |
237 #include "components/mus/common/switches.h" // nogncheck | 236 #include "components/mus/common/switches.h" // nogncheck |
238 #endif | 237 #endif |
239 | 238 |
240 #if defined(OS_WIN) | 239 #if defined(OS_WIN) |
(...skipping 673 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
914 storage_partition_impl_->GetAppCacheService(), GetID())); | 913 storage_partition_impl_->GetAppCacheService(), GetID())); |
915 AddFilter(new ClipboardMessageFilter(blob_storage_context)); | 914 AddFilter(new ClipboardMessageFilter(blob_storage_context)); |
916 AddFilter(new DOMStorageMessageFilter( | 915 AddFilter(new DOMStorageMessageFilter( |
917 storage_partition_impl_->GetDOMStorageContext())); | 916 storage_partition_impl_->GetDOMStorageContext())); |
918 AddFilter(new IndexedDBDispatcherHost( | 917 AddFilter(new IndexedDBDispatcherHost( |
919 GetID(), storage_partition_impl_->GetURLRequestContext(), | 918 GetID(), storage_partition_impl_->GetURLRequestContext(), |
920 storage_partition_impl_->GetIndexedDBContext(), | 919 storage_partition_impl_->GetIndexedDBContext(), |
921 blob_storage_context.get())); | 920 blob_storage_context.get())); |
922 | 921 |
923 #if defined(ENABLE_WEBRTC) | 922 #if defined(ENABLE_WEBRTC) |
924 AddFilter(new WebRTCIdentityServiceHost( | |
925 GetID(), storage_partition_impl_->GetWebRTCIdentityStore(), | |
926 resource_context)); | |
927 peer_connection_tracker_host_ = new PeerConnectionTrackerHost(GetID()); | 923 peer_connection_tracker_host_ = new PeerConnectionTrackerHost(GetID()); |
928 AddFilter(peer_connection_tracker_host_.get()); | 924 AddFilter(peer_connection_tracker_host_.get()); |
929 AddFilter(new MediaStreamDispatcherHost( | 925 AddFilter(new MediaStreamDispatcherHost( |
930 GetID(), browser_context->GetResourceContext()->GetMediaDeviceIDSalt(), | 926 GetID(), browser_context->GetResourceContext()->GetMediaDeviceIDSalt(), |
931 media_stream_manager)); | 927 media_stream_manager)); |
932 AddFilter(new MediaStreamTrackMetricsHost()); | 928 AddFilter(new MediaStreamTrackMetricsHost()); |
933 #endif | 929 #endif |
934 #if defined(ENABLE_PLUGINS) | 930 #if defined(ENABLE_PLUGINS) |
935 AddFilter(new PepperRendererConnection(GetID())); | 931 AddFilter(new PepperRendererConnection(GetID())); |
936 #endif | 932 #endif |
(...skipping 1894 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2831 LOG(ERROR) << "Terminating render process for bad Mojo message: " << error; | 2827 LOG(ERROR) << "Terminating render process for bad Mojo message: " << error; |
2832 | 2828 |
2833 // The ReceivedBadMessage call below will trigger a DumpWithoutCrashing. Alias | 2829 // The ReceivedBadMessage call below will trigger a DumpWithoutCrashing. Alias |
2834 // enough information here so that we can determine what the bad message was. | 2830 // enough information here so that we can determine what the bad message was. |
2835 base::debug::Alias(&error); | 2831 base::debug::Alias(&error); |
2836 bad_message::ReceivedBadMessage(process.get(), | 2832 bad_message::ReceivedBadMessage(process.get(), |
2837 bad_message::RPH_MOJO_PROCESS_ERROR); | 2833 bad_message::RPH_MOJO_PROCESS_ERROR); |
2838 } | 2834 } |
2839 | 2835 |
2840 } // namespace content | 2836 } // namespace content |
OLD | NEW |