| 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 595 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 606 storage_partition_impl_->GetAppCacheService(), | 606 storage_partition_impl_->GetAppCacheService(), |
| 607 GetID())); | 607 GetID())); |
| 608 AddFilter(new ClipboardMessageFilter); | 608 AddFilter(new ClipboardMessageFilter); |
| 609 AddFilter(new DOMStorageMessageFilter( | 609 AddFilter(new DOMStorageMessageFilter( |
| 610 GetID(), | 610 GetID(), |
| 611 storage_partition_impl_->GetDOMStorageContext())); | 611 storage_partition_impl_->GetDOMStorageContext())); |
| 612 AddFilter(new IndexedDBDispatcherHost( | 612 AddFilter(new IndexedDBDispatcherHost( |
| 613 GetID(), | 613 GetID(), |
| 614 storage_partition_impl_->GetIndexedDBContext())); | 614 storage_partition_impl_->GetIndexedDBContext())); |
| 615 AddFilter(new ServiceWorkerDispatcherHost( | 615 AddFilter(new ServiceWorkerDispatcherHost( |
| 616 storage_partition_impl_->GetServiceWorkerContext())); | 616 GetID(), storage_partition_impl_->GetServiceWorkerContext())); |
| 617 if (IsGuest()) { | 617 if (IsGuest()) { |
| 618 if (!g_browser_plugin_geolocation_context.Get().get()) { | 618 if (!g_browser_plugin_geolocation_context.Get().get()) { |
| 619 g_browser_plugin_geolocation_context.Get() = | 619 g_browser_plugin_geolocation_context.Get() = |
| 620 new BrowserPluginGeolocationPermissionContext(); | 620 new BrowserPluginGeolocationPermissionContext(); |
| 621 } | 621 } |
| 622 AddFilter(GeolocationDispatcherHost::New( | 622 AddFilter(GeolocationDispatcherHost::New( |
| 623 GetID(), g_browser_plugin_geolocation_context.Get().get())); | 623 GetID(), g_browser_plugin_geolocation_context.Get().get())); |
| 624 } else { | 624 } else { |
| 625 AddFilter(GeolocationDispatcherHost::New( | 625 AddFilter(GeolocationDispatcherHost::New( |
| 626 GetID(), browser_context->GetGeolocationPermissionContext())); | 626 GetID(), browser_context->GetGeolocationPermissionContext())); |
| (...skipping 1200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1827 // Skip widgets in other processes. | 1827 // Skip widgets in other processes. |
| 1828 if (widget->GetProcess()->GetID() != GetID()) | 1828 if (widget->GetProcess()->GetID() != GetID()) |
| 1829 continue; | 1829 continue; |
| 1830 | 1830 |
| 1831 RenderViewHost* rvh = RenderViewHost::From(widget); | 1831 RenderViewHost* rvh = RenderViewHost::From(widget); |
| 1832 rvh->UpdateWebkitPreferences(rvh->GetWebkitPreferences()); | 1832 rvh->UpdateWebkitPreferences(rvh->GetWebkitPreferences()); |
| 1833 } | 1833 } |
| 1834 } | 1834 } |
| 1835 | 1835 |
| 1836 } // namespace content | 1836 } // namespace content |
| OLD | NEW |