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

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
« no previous file with comments | « content/browser/storage_partition_impl_map.cc ('k') | content/public/browser/browser_context.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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,20 @@
}
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 hacky but correct. The request context should be
michaeln 2012/09/13 21:47:22 ptal at this part too
awong 2012/09/14 00:09:57 Cleaver. I agree this is a good enough hack until
+ // more directly accessible than digging it out of the appcache service.
net::URLRequestContext* request_context =
- resource_context_->GetRequestContext();
+ partition_.appcache_service()->request_context();
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 +274,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());
« no previous file with comments | « content/browser/storage_partition_impl_map.cc ('k') | content/public/browser/browser_context.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698