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 615 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
626 GetID(), browser_context->GetGeolocationPermissionContext())); | 626 GetID(), browser_context->GetGeolocationPermissionContext())); |
627 } | 627 } |
628 gpu_message_filter_ = new GpuMessageFilter(GetID(), widget_helper_.get()); | 628 gpu_message_filter_ = new GpuMessageFilter(GetID(), widget_helper_.get()); |
629 AddFilter(gpu_message_filter_); | 629 AddFilter(gpu_message_filter_); |
630 #if defined(ENABLE_WEBRTC) | 630 #if defined(ENABLE_WEBRTC) |
631 AddFilter(new WebRTCIdentityServiceHost( | 631 AddFilter(new WebRTCIdentityServiceHost( |
632 GetID(), storage_partition_impl_->GetWebRTCIdentityStore())); | 632 GetID(), storage_partition_impl_->GetWebRTCIdentityStore())); |
633 peer_connection_tracker_host_ = new PeerConnectionTrackerHost(GetID()); | 633 peer_connection_tracker_host_ = new PeerConnectionTrackerHost(GetID()); |
634 AddFilter(peer_connection_tracker_host_.get()); | 634 AddFilter(peer_connection_tracker_host_.get()); |
635 AddFilter(new MediaStreamDispatcherHost( | 635 AddFilter(new MediaStreamDispatcherHost( |
636 GetID(), media_stream_manager)); | 636 GetID(), browser_context, media_stream_manager)); |
637 AddFilter( | 637 AddFilter( |
638 new DeviceRequestMessageFilter(resource_context, media_stream_manager)); | 638 new DeviceRequestMessageFilter(resource_context, media_stream_manager)); |
639 #endif | 639 #endif |
640 #if defined(ENABLE_PLUGINS) | 640 #if defined(ENABLE_PLUGINS) |
641 AddFilter(new PepperRendererConnection(GetID())); | 641 AddFilter(new PepperRendererConnection(GetID())); |
642 #endif | 642 #endif |
643 #if defined(ENABLE_INPUT_SPEECH) | 643 #if defined(ENABLE_INPUT_SPEECH) |
644 AddFilter(new InputTagSpeechDispatcherHost( | 644 AddFilter(new InputTagSpeechDispatcherHost( |
645 IsGuest(), GetID(), storage_partition_impl_->GetURLRequestContext())); | 645 IsGuest(), GetID(), storage_partition_impl_->GetURLRequestContext())); |
646 #endif | 646 #endif |
(...skipping 1179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1826 // Skip widgets in other processes. | 1826 // Skip widgets in other processes. |
1827 if (widget->GetProcess()->GetID() != GetID()) | 1827 if (widget->GetProcess()->GetID() != GetID()) |
1828 continue; | 1828 continue; |
1829 | 1829 |
1830 RenderViewHost* rvh = RenderViewHost::From(widget); | 1830 RenderViewHost* rvh = RenderViewHost::From(widget); |
1831 rvh->UpdateWebkitPreferences(rvh->GetWebkitPreferences()); | 1831 rvh->UpdateWebkitPreferences(rvh->GetWebkitPreferences()); |
1832 } | 1832 } |
1833 } | 1833 } |
1834 | 1834 |
1835 } // namespace content | 1835 } // namespace content |
OLD | NEW |