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

Unified Diff: content/browser/worker_host/worker_process_host.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_process_host.cc
===================================================================
--- content/browser/worker_host/worker_process_host.cc (revision 156155)
+++ content/browser/worker_host/worker_process_host.cc (working copy)
@@ -251,11 +251,21 @@
}
void WorkerProcessHost::CreateMessageFilters(int render_process_id) {
+ // TODO(michaeln): Put ChromeBlobStorageContext in StorageParition too.
+ ChromeBlobStorageContext* blob_storage_context =
+ content::GetChromeBlobStorageContextForResourceContext(
+ resource_context_);
+
+ // TODO(michaeln): This is not correct, shared workers will not be using the
+ // isolated/partitioned request context, they'll be using the cookies and
+ // cache associated with normal web browsing.
michaeln 2012/09/13 00:21:20 The wrong RequestContext here is a blocker i think
awong 2012/09/13 00:45:50 Ick. It is a blocker to 144549, but not m23 luckil
net::URLRequestContext* request_context =
resource_context_->GetRequestContext();
ResourceMessageFilter* resource_message_filter = new ResourceMessageFilter(
process_->GetData().id, content::PROCESS_TYPE_WORKER, resource_context_,
+ partition_.appcache_service(),
+ blob_storage_context,
new URLRequestContextSelector(request_context));
process_->GetHost()->AddFilter(resource_message_filter);
@@ -265,15 +275,13 @@
base::Unretained(WorkerServiceImpl::GetInstance())));
process_->GetHost()->AddFilter(worker_message_filter_);
process_->GetHost()->AddFilter(new AppCacheDispatcherHost(
- static_cast<ChromeAppCacheService*>(
- ResourceContext::GetAppCacheService(resource_context_)),
+ partition_.appcache_service(),
process_->GetData().id));
process_->GetHost()->AddFilter(new FileAPIMessageFilter(
process_->GetData().id,
request_context,
partition_.filesystem_context(),
- content::GetChromeBlobStorageContextForResourceContext(
- resource_context_)));
+ blob_storage_context));
process_->GetHost()->AddFilter(new FileUtilitiesMessageFilter(
process_->GetData().id));
process_->GetHost()->AddFilter(new MimeRegistryMessageFilter());

Powered by Google App Engine
This is Rietveld 408576698