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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 #include "content/browser/browser_plugin/browser_plugin_message_filter.h" | 44 #include "content/browser/browser_plugin/browser_plugin_message_filter.h" |
45 #include "content/browser/child_process_security_policy_impl.h" | 45 #include "content/browser/child_process_security_policy_impl.h" |
46 #include "content/browser/device_orientation/device_motion_message_filter.h" | 46 #include "content/browser/device_orientation/device_motion_message_filter.h" |
47 #include "content/browser/device_orientation/device_orientation_message_filter.h
" | 47 #include "content/browser/device_orientation/device_orientation_message_filter.h
" |
48 #include "content/browser/dom_storage/dom_storage_context_wrapper.h" | 48 #include "content/browser/dom_storage/dom_storage_context_wrapper.h" |
49 #include "content/browser/dom_storage/dom_storage_message_filter.h" | 49 #include "content/browser/dom_storage/dom_storage_message_filter.h" |
50 #include "content/browser/download/mhtml_generation_manager.h" | 50 #include "content/browser/download/mhtml_generation_manager.h" |
51 #include "content/browser/fileapi/chrome_blob_storage_context.h" | 51 #include "content/browser/fileapi/chrome_blob_storage_context.h" |
52 #include "content/browser/fileapi/fileapi_message_filter.h" | 52 #include "content/browser/fileapi/fileapi_message_filter.h" |
53 #include "content/browser/frame_host/render_frame_message_filter.h" | 53 #include "content/browser/frame_host/render_frame_message_filter.h" |
54 #include "content/browser/geolocation/geolocation_dispatcher_host.h" | |
55 #include "content/browser/gpu/compositor_util.h" | 54 #include "content/browser/gpu/compositor_util.h" |
56 #include "content/browser/gpu/gpu_data_manager_impl.h" | 55 #include "content/browser/gpu/gpu_data_manager_impl.h" |
57 #include "content/browser/gpu/gpu_process_host.h" | 56 #include "content/browser/gpu/gpu_process_host.h" |
58 #include "content/browser/gpu/shader_disk_cache.h" | 57 #include "content/browser/gpu/shader_disk_cache.h" |
59 #include "content/browser/histogram_message_filter.h" | 58 #include "content/browser/histogram_message_filter.h" |
60 #include "content/browser/indexed_db/indexed_db_context_impl.h" | 59 #include "content/browser/indexed_db/indexed_db_context_impl.h" |
61 #include "content/browser/indexed_db/indexed_db_dispatcher_host.h" | 60 #include "content/browser/indexed_db/indexed_db_dispatcher_host.h" |
62 #include "content/browser/loader/resource_message_filter.h" | 61 #include "content/browser/loader/resource_message_filter.h" |
63 #include "content/browser/loader/resource_scheduler_filter.h" | 62 #include "content/browser/loader/resource_scheduler_filter.h" |
64 #include "content/browser/media/android/browser_demuxer_android.h" | 63 #include "content/browser/media/android/browser_demuxer_android.h" |
(...skipping 582 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
647 new ServiceWorkerDispatcherHost(GetID()); | 646 new ServiceWorkerDispatcherHost(GetID()); |
648 service_worker_filter->Init( | 647 service_worker_filter->Init( |
649 storage_partition_impl_->GetServiceWorkerContext()); | 648 storage_partition_impl_->GetServiceWorkerContext()); |
650 AddFilter(service_worker_filter); | 649 AddFilter(service_worker_filter); |
651 | 650 |
652 if (IsGuest()) { | 651 if (IsGuest()) { |
653 if (!g_browser_plugin_geolocation_context.Get().get()) { | 652 if (!g_browser_plugin_geolocation_context.Get().get()) { |
654 g_browser_plugin_geolocation_context.Get() = | 653 g_browser_plugin_geolocation_context.Get() = |
655 new BrowserPluginGeolocationPermissionContext(); | 654 new BrowserPluginGeolocationPermissionContext(); |
656 } | 655 } |
657 AddFilter(GeolocationDispatcherHost::New( | 656 geolocation_dispatcher_host_ = GeolocationDispatcherHost::New( |
658 GetID(), g_browser_plugin_geolocation_context.Get().get())); | 657 GetID(), g_browser_plugin_geolocation_context.Get().get()); |
659 } else { | 658 } else { |
660 AddFilter(GeolocationDispatcherHost::New( | 659 geolocation_dispatcher_host_ = GeolocationDispatcherHost::New( |
661 GetID(), browser_context->GetGeolocationPermissionContext())); | 660 GetID(), browser_context->GetGeolocationPermissionContext()); |
662 } | 661 } |
| 662 AddFilter(geolocation_dispatcher_host_); |
663 gpu_message_filter_ = new GpuMessageFilter(GetID(), widget_helper_.get()); | 663 gpu_message_filter_ = new GpuMessageFilter(GetID(), widget_helper_.get()); |
664 AddFilter(gpu_message_filter_); | 664 AddFilter(gpu_message_filter_); |
665 #if defined(ENABLE_WEBRTC) | 665 #if defined(ENABLE_WEBRTC) |
666 AddFilter(new WebRTCIdentityServiceHost( | 666 AddFilter(new WebRTCIdentityServiceHost( |
667 GetID(), storage_partition_impl_->GetWebRTCIdentityStore())); | 667 GetID(), storage_partition_impl_->GetWebRTCIdentityStore())); |
668 peer_connection_tracker_host_ = new PeerConnectionTrackerHost(GetID()); | 668 peer_connection_tracker_host_ = new PeerConnectionTrackerHost(GetID()); |
669 AddFilter(peer_connection_tracker_host_.get()); | 669 AddFilter(peer_connection_tracker_host_.get()); |
670 AddFilter(new MediaStreamDispatcherHost( | 670 AddFilter(new MediaStreamDispatcherHost( |
671 GetID(), browser_context->GetResourceContext(), media_stream_manager)); | 671 GetID(), browser_context->GetResourceContext(), media_stream_manager)); |
672 AddFilter( | 672 AddFilter( |
(...skipping 1230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1903 // Skip widgets in other processes. | 1903 // Skip widgets in other processes. |
1904 if (widget->GetProcess()->GetID() != GetID()) | 1904 if (widget->GetProcess()->GetID() != GetID()) |
1905 continue; | 1905 continue; |
1906 | 1906 |
1907 RenderViewHost* rvh = RenderViewHost::From(widget); | 1907 RenderViewHost* rvh = RenderViewHost::From(widget); |
1908 rvh->UpdateWebkitPreferences(rvh->GetWebkitPreferences()); | 1908 rvh->UpdateWebkitPreferences(rvh->GetWebkitPreferences()); |
1909 } | 1909 } |
1910 } | 1910 } |
1911 | 1911 |
1912 } // namespace content | 1912 } // namespace content |
OLD | NEW |