Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(514)

Unified Diff: content/browser/worker_host/worker_message_filter.cc

Issue 10916132: AppCache and StoragePartition'ing (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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) {

Powered by Google App Engine
This is Rietveld 408576698