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 624 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
635 AddFilter(new MIDIDispatcherHost(GetID(), browser_context)); | 635 AddFilter(new MIDIDispatcherHost(GetID(), browser_context)); |
636 AddFilter(new VideoCaptureHost(media_stream_manager)); | 636 AddFilter(new VideoCaptureHost(media_stream_manager)); |
637 AddFilter(new AppCacheDispatcherHost( | 637 AddFilter(new AppCacheDispatcherHost( |
638 storage_partition_impl_->GetAppCacheService(), | 638 storage_partition_impl_->GetAppCacheService(), |
639 GetID())); | 639 GetID())); |
640 AddFilter(new ClipboardMessageFilter); | 640 AddFilter(new ClipboardMessageFilter); |
641 AddFilter(new DOMStorageMessageFilter( | 641 AddFilter(new DOMStorageMessageFilter( |
642 GetID(), | 642 GetID(), |
643 storage_partition_impl_->GetDOMStorageContext())); | 643 storage_partition_impl_->GetDOMStorageContext())); |
644 AddFilter(new IndexedDBDispatcherHost( | 644 AddFilter(new IndexedDBDispatcherHost( |
645 storage_partition_impl_->GetIndexedDBContext())); | 645 GetID(), |
| 646 storage_partition_impl_->GetURLRequestContext(), |
| 647 storage_partition_impl_->GetIndexedDBContext(), |
| 648 ChromeBlobStorageContext::GetFor(browser_context))); |
646 | 649 |
647 scoped_refptr<ServiceWorkerDispatcherHost> service_worker_filter = | 650 scoped_refptr<ServiceWorkerDispatcherHost> service_worker_filter = |
648 new ServiceWorkerDispatcherHost(GetID()); | 651 new ServiceWorkerDispatcherHost(GetID()); |
649 service_worker_filter->Init( | 652 service_worker_filter->Init( |
650 storage_partition_impl_->GetServiceWorkerContext()); | 653 storage_partition_impl_->GetServiceWorkerContext()); |
651 AddFilter(service_worker_filter); | 654 AddFilter(service_worker_filter); |
652 | 655 |
653 if (IsGuest()) { | 656 if (IsGuest()) { |
654 if (!g_browser_plugin_geolocation_context.Get().get()) { | 657 if (!g_browser_plugin_geolocation_context.Get().get()) { |
655 g_browser_plugin_geolocation_context.Get() = | 658 g_browser_plugin_geolocation_context.Get() = |
(...skipping 1239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1895 // Skip widgets in other processes. | 1898 // Skip widgets in other processes. |
1896 if (widget->GetProcess()->GetID() != GetID()) | 1899 if (widget->GetProcess()->GetID() != GetID()) |
1897 continue; | 1900 continue; |
1898 | 1901 |
1899 RenderViewHost* rvh = RenderViewHost::From(widget); | 1902 RenderViewHost* rvh = RenderViewHost::From(widget); |
1900 rvh->UpdateWebkitPreferences(rvh->GetWebkitPreferences()); | 1903 rvh->UpdateWebkitPreferences(rvh->GetWebkitPreferences()); |
1901 } | 1904 } |
1902 } | 1905 } |
1903 | 1906 |
1904 } // namespace content | 1907 } // namespace content |
OLD | NEW |