| 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 592 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 603 storage_partition_impl_->GetAppCacheService(), | 603 storage_partition_impl_->GetAppCacheService(), |
| 604 GetID())); | 604 GetID())); |
| 605 AddFilter(new ClipboardMessageFilter); | 605 AddFilter(new ClipboardMessageFilter); |
| 606 AddFilter(new DOMStorageMessageFilter( | 606 AddFilter(new DOMStorageMessageFilter( |
| 607 GetID(), | 607 GetID(), |
| 608 storage_partition_impl_->GetDOMStorageContext())); | 608 storage_partition_impl_->GetDOMStorageContext())); |
| 609 AddFilter(new IndexedDBDispatcherHost( | 609 AddFilter(new IndexedDBDispatcherHost( |
| 610 GetID(), | 610 GetID(), |
| 611 storage_partition_impl_->GetIndexedDBContext())); | 611 storage_partition_impl_->GetIndexedDBContext())); |
| 612 AddFilter(new ServiceWorkerDispatcherHost( | 612 AddFilter(new ServiceWorkerDispatcherHost( |
| 613 storage_partition_impl_->GetServiceWorkerContext())); | 613 GetID(), storage_partition_impl_->GetServiceWorkerContext())); |
| 614 if (IsGuest()) { | 614 if (IsGuest()) { |
| 615 if (!g_browser_plugin_geolocation_context.Get().get()) { | 615 if (!g_browser_plugin_geolocation_context.Get().get()) { |
| 616 g_browser_plugin_geolocation_context.Get() = | 616 g_browser_plugin_geolocation_context.Get() = |
| 617 new BrowserPluginGeolocationPermissionContext(); | 617 new BrowserPluginGeolocationPermissionContext(); |
| 618 } | 618 } |
| 619 AddFilter(GeolocationDispatcherHost::New( | 619 AddFilter(GeolocationDispatcherHost::New( |
| 620 GetID(), g_browser_plugin_geolocation_context.Get().get())); | 620 GetID(), g_browser_plugin_geolocation_context.Get().get())); |
| 621 } else { | 621 } else { |
| 622 AddFilter(GeolocationDispatcherHost::New( | 622 AddFilter(GeolocationDispatcherHost::New( |
| 623 GetID(), browser_context->GetGeolocationPermissionContext())); | 623 GetID(), browser_context->GetGeolocationPermissionContext())); |
| (...skipping 1174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1798 // Skip widgets in other processes. | 1798 // Skip widgets in other processes. |
| 1799 if (widget->GetProcess()->GetID() != GetID()) | 1799 if (widget->GetProcess()->GetID() != GetID()) |
| 1800 continue; | 1800 continue; |
| 1801 | 1801 |
| 1802 RenderViewHost* rvh = RenderViewHost::From(widget); | 1802 RenderViewHost* rvh = RenderViewHost::From(widget); |
| 1803 rvh->UpdateWebkitPreferences(rvh->GetWebkitPreferences()); | 1803 rvh->UpdateWebkitPreferences(rvh->GetWebkitPreferences()); |
| 1804 } | 1804 } |
| 1805 } | 1805 } |
| 1806 | 1806 |
| 1807 } // namespace content | 1807 } // namespace content |
| OLD | NEW |