Index: content/browser/renderer_host/render_process_host_impl.cc |
diff --git a/content/browser/renderer_host/render_process_host_impl.cc b/content/browser/renderer_host/render_process_host_impl.cc |
index 3d8725c9046ee3c128b4581d3bd9a153e27839cd..5628e5c710669f45135288c87056d120a193f6ff 100644 |
--- a/content/browser/renderer_host/render_process_host_impl.cc |
+++ b/content/browser/renderer_host/render_process_host_impl.cc |
@@ -96,6 +96,8 @@ |
#include "content/browser/renderer_host/text_input_client_message_filter.h" |
#include "content/browser/renderer_host/websocket_dispatcher_host.h" |
#include "content/browser/resolve_proxy_msg_helper.h" |
+#include "content/browser/service_worker/cache_storage_context_impl.h" |
+#include "content/browser/service_worker/cache_storage_dispatcher_host.h" |
#include "content/browser/service_worker/service_worker_context_wrapper.h" |
#include "content/browser/service_worker/service_worker_dispatcher_host.h" |
#include "content/browser/shared_worker/shared_worker_message_filter.h" |
@@ -847,6 +849,11 @@ void RenderProcessHostImpl::CreateMessageFilters() { |
base::Unretained(widget_helper_.get()))); |
AddFilter(message_port_message_filter_.get()); |
+ scoped_refptr<CacheStorageDispatcherHost> cache_storage_filter = |
+ new CacheStorageDispatcherHost(); |
+ cache_storage_filter->Init(storage_partition_impl_->GetCacheStorageContext()); |
+ AddFilter(cache_storage_filter.get()); |
+ |
scoped_refptr<ServiceWorkerDispatcherHost> service_worker_filter = |
new ServiceWorkerDispatcherHost( |
GetID(), message_port_message_filter_.get(), resource_context); |