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 591 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
602 storage_partition_impl_->GetAppCacheService(), | 602 storage_partition_impl_->GetAppCacheService(), |
603 GetID())); | 603 GetID())); |
604 AddFilter(new ClipboardMessageFilter); | 604 AddFilter(new ClipboardMessageFilter); |
605 AddFilter(new DOMStorageMessageFilter( | 605 AddFilter(new DOMStorageMessageFilter( |
606 GetID(), | 606 GetID(), |
607 storage_partition_impl_->GetDOMStorageContext())); | 607 storage_partition_impl_->GetDOMStorageContext())); |
608 AddFilter(new IndexedDBDispatcherHost( | 608 AddFilter(new IndexedDBDispatcherHost( |
609 GetID(), | 609 GetID(), |
610 storage_partition_impl_->GetIndexedDBContext())); | 610 storage_partition_impl_->GetIndexedDBContext())); |
611 AddFilter(new ServiceWorkerDispatcherHost( | 611 AddFilter(new ServiceWorkerDispatcherHost( |
612 storage_partition_impl_->GetServiceWorkerContext())); | 612 GetID(), storage_partition_impl_->GetServiceWorkerContext())); |
613 if (IsGuest()) { | 613 if (IsGuest()) { |
614 if (!g_browser_plugin_geolocation_context.Get().get()) { | 614 if (!g_browser_plugin_geolocation_context.Get().get()) { |
615 g_browser_plugin_geolocation_context.Get() = | 615 g_browser_plugin_geolocation_context.Get() = |
616 new BrowserPluginGeolocationPermissionContext(); | 616 new BrowserPluginGeolocationPermissionContext(); |
617 } | 617 } |
618 AddFilter(GeolocationDispatcherHost::New( | 618 AddFilter(GeolocationDispatcherHost::New( |
619 GetID(), g_browser_plugin_geolocation_context.Get().get())); | 619 GetID(), g_browser_plugin_geolocation_context.Get().get())); |
620 } else { | 620 } else { |
621 AddFilter(GeolocationDispatcherHost::New( | 621 AddFilter(GeolocationDispatcherHost::New( |
622 GetID(), browser_context->GetGeolocationPermissionContext())); | 622 GetID(), browser_context->GetGeolocationPermissionContext())); |
(...skipping 1184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1807 // Skip widgets in other processes. | 1807 // Skip widgets in other processes. |
1808 if (widget->GetProcess()->GetID() != GetID()) | 1808 if (widget->GetProcess()->GetID() != GetID()) |
1809 continue; | 1809 continue; |
1810 | 1810 |
1811 RenderViewHost* rvh = RenderViewHost::From(widget); | 1811 RenderViewHost* rvh = RenderViewHost::From(widget); |
1812 rvh->UpdateWebkitPreferences(rvh->GetWebkitPreferences()); | 1812 rvh->UpdateWebkitPreferences(rvh->GetWebkitPreferences()); |
1813 } | 1813 } |
1814 } | 1814 } |
1815 | 1815 |
1816 } // namespace content | 1816 } // namespace content |
OLD | NEW |