| 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 593 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 604 AddFilter(new MIDIDispatcherHost(GetID(), browser_context)); | 604 AddFilter(new MIDIDispatcherHost(GetID(), browser_context)); |
| 605 AddFilter(new VideoCaptureHost(media_stream_manager)); | 605 AddFilter(new VideoCaptureHost(media_stream_manager)); |
| 606 AddFilter(new AppCacheDispatcherHost( | 606 AddFilter(new AppCacheDispatcherHost( |
| 607 storage_partition_impl_->GetAppCacheService(), | 607 storage_partition_impl_->GetAppCacheService(), |
| 608 GetID())); | 608 GetID())); |
| 609 AddFilter(new ClipboardMessageFilter); | 609 AddFilter(new ClipboardMessageFilter); |
| 610 AddFilter(new DOMStorageMessageFilter( | 610 AddFilter(new DOMStorageMessageFilter( |
| 611 GetID(), | 611 GetID(), |
| 612 storage_partition_impl_->GetDOMStorageContext())); | 612 storage_partition_impl_->GetDOMStorageContext())); |
| 613 AddFilter(new IndexedDBDispatcherHost( | 613 AddFilter(new IndexedDBDispatcherHost( |
| 614 GetID(), | |
| 615 storage_partition_impl_->GetIndexedDBContext())); | 614 storage_partition_impl_->GetIndexedDBContext())); |
| 616 | 615 |
| 617 scoped_refptr<ServiceWorkerDispatcherHost> service_worker_filter = | 616 scoped_refptr<ServiceWorkerDispatcherHost> service_worker_filter = |
| 618 new ServiceWorkerDispatcherHost(GetID()); | 617 new ServiceWorkerDispatcherHost(GetID()); |
| 619 service_worker_filter->Init( | 618 service_worker_filter->Init( |
| 620 storage_partition_impl_->GetServiceWorkerContext()); | 619 storage_partition_impl_->GetServiceWorkerContext()); |
| 621 AddFilter(service_worker_filter); | 620 AddFilter(service_worker_filter); |
| 622 | 621 |
| 623 if (IsGuest()) { | 622 if (IsGuest()) { |
| 624 if (!g_browser_plugin_geolocation_context.Get().get()) { | 623 if (!g_browser_plugin_geolocation_context.Get().get()) { |
| (...skipping 1220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1845 // Skip widgets in other processes. | 1844 // Skip widgets in other processes. |
| 1846 if (widget->GetProcess()->GetID() != GetID()) | 1845 if (widget->GetProcess()->GetID() != GetID()) |
| 1847 continue; | 1846 continue; |
| 1848 | 1847 |
| 1849 RenderViewHost* rvh = RenderViewHost::From(widget); | 1848 RenderViewHost* rvh = RenderViewHost::From(widget); |
| 1850 rvh->UpdateWebkitPreferences(rvh->GetWebkitPreferences()); | 1849 rvh->UpdateWebkitPreferences(rvh->GetWebkitPreferences()); |
| 1851 } | 1850 } |
| 1852 } | 1851 } |
| 1853 | 1852 |
| 1854 } // namespace content | 1853 } // namespace content |
| OLD | NEW |