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_RUNNER_CLIENT) | 235 #if defined(MOJO_RUNNER_CLIENT) |
237 #include "components/mus/common/switches.h" | 236 #include "components/mus/common/switches.h" |
238 #endif | 237 #endif |
239 | 238 |
240 #if defined(OS_WIN) | 239 #if defined(OS_WIN) |
(...skipping 663 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
904 storage_partition_impl_->GetAppCacheService(), GetID())); | 903 storage_partition_impl_->GetAppCacheService(), GetID())); |
905 AddFilter(new ClipboardMessageFilter(blob_storage_context)); | 904 AddFilter(new ClipboardMessageFilter(blob_storage_context)); |
906 AddFilter(new DOMStorageMessageFilter( | 905 AddFilter(new DOMStorageMessageFilter( |
907 storage_partition_impl_->GetDOMStorageContext())); | 906 storage_partition_impl_->GetDOMStorageContext())); |
908 AddFilter(new IndexedDBDispatcherHost( | 907 AddFilter(new IndexedDBDispatcherHost( |
909 GetID(), storage_partition_impl_->GetURLRequestContext(), | 908 GetID(), storage_partition_impl_->GetURLRequestContext(), |
910 storage_partition_impl_->GetIndexedDBContext(), | 909 storage_partition_impl_->GetIndexedDBContext(), |
911 blob_storage_context.get())); | 910 blob_storage_context.get())); |
912 | 911 |
913 #if defined(ENABLE_WEBRTC) | 912 #if defined(ENABLE_WEBRTC) |
914 AddFilter(new WebRTCIdentityServiceHost( | |
915 GetID(), storage_partition_impl_->GetWebRTCIdentityStore(), | |
916 resource_context)); | |
917 peer_connection_tracker_host_ = new PeerConnectionTrackerHost(GetID()); | 913 peer_connection_tracker_host_ = new PeerConnectionTrackerHost(GetID()); |
918 AddFilter(peer_connection_tracker_host_.get()); | 914 AddFilter(peer_connection_tracker_host_.get()); |
919 AddFilter(new MediaStreamDispatcherHost( | 915 AddFilter(new MediaStreamDispatcherHost( |
920 GetID(), browser_context->GetResourceContext()->GetMediaDeviceIDSalt(), | 916 GetID(), browser_context->GetResourceContext()->GetMediaDeviceIDSalt(), |
921 media_stream_manager)); | 917 media_stream_manager)); |
922 AddFilter(new MediaStreamTrackMetricsHost()); | 918 AddFilter(new MediaStreamTrackMetricsHost()); |
923 #endif | 919 #endif |
924 #if defined(ENABLE_PLUGINS) | 920 #if defined(ENABLE_PLUGINS) |
925 AddFilter(new PepperRendererConnection(GetID())); | 921 AddFilter(new PepperRendererConnection(GetID())); |
926 #endif | 922 #endif |
(...skipping 1887 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2814 LOG(ERROR) << "Terminating render process for bad Mojo message: " << error; | 2810 LOG(ERROR) << "Terminating render process for bad Mojo message: " << error; |
2815 | 2811 |
2816 // The ReceivedBadMessage call below will trigger a DumpWithoutCrashing. Alias | 2812 // The ReceivedBadMessage call below will trigger a DumpWithoutCrashing. Alias |
2817 // enough information here so that we can determine what the bad message was. | 2813 // enough information here so that we can determine what the bad message was. |
2818 base::debug::Alias(&error); | 2814 base::debug::Alias(&error); |
2819 bad_message::ReceivedBadMessage(process.get(), | 2815 bad_message::ReceivedBadMessage(process.get(), |
2820 bad_message::RPH_MOJO_PROCESS_ERROR); | 2816 bad_message::RPH_MOJO_PROCESS_ERROR); |
2821 } | 2817 } |
2822 | 2818 |
2823 } // namespace content | 2819 } // namespace content |
OLD | NEW |