Index: content/browser/worker_host/worker_message_filter.cc |
=================================================================== |
--- content/browser/worker_host/worker_message_filter.cc (revision 154786) |
+++ content/browser/worker_host/worker_message_filter.cc (working copy) |
@@ -4,6 +4,7 @@ |
#include "content/browser/worker_host/worker_message_filter.h" |
+#include "content/browser/storage_partition_impl.h" |
#include "content/browser/worker_host/message_port_service.h" |
#include "content/browser/worker_host/worker_service_impl.h" |
#include "content/common/view_messages.h" |
@@ -17,11 +18,14 @@ |
WorkerMessageFilter::WorkerMessageFilter( |
int render_process_id, |
content::ResourceContext* resource_context, |
+ content::StoragePartitionImpl* storage_partition, |
const NextRoutingIDCallback& callback) |
: render_process_id_(render_process_id), |
resource_context_(resource_context), |
+ storage_partition_impl_(storage_partition), |
next_routing_id_(callback) { |
DCHECK(resource_context); |
+ DCHECK(storage_partition); |
} |
WorkerMessageFilter::~WorkerMessageFilter() { |
@@ -81,7 +85,8 @@ |
*route_id = params.route_id != MSG_ROUTING_NONE ? |
params.route_id : next_routing_id_.Run(); |
WorkerServiceImpl::GetInstance()->CreateWorker( |
- params, *route_id, this, resource_context_); |
+ params, *route_id, this, resource_context_, |
+ storage_partition_impl_); |
} |
void WorkerMessageFilter::OnLookupSharedWorker( |
@@ -92,7 +97,8 @@ |
*route_id = next_routing_id_.Run(); |
WorkerServiceImpl::GetInstance()->LookupSharedWorker( |
- params, *route_id, this, resource_context_, exists, url_error); |
+ params, *route_id, this, resource_context_, |
+ storage_partition_impl_, exists, url_error); |
} |
void WorkerMessageFilter::OnForwardToWorker(const IPC::Message& message) { |