summaryrefslogtreecommitdiffstats
path: root/content/browser/storage_partition_impl_map.h
diff options
context:
space:
mode:
authormichaeln@chromium.org <michaeln@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-09-15 05:12:34 +0000
committermichaeln@chromium.org <michaeln@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-09-15 05:12:34 +0000
commit55c0ecae62d3e95bf016510d8cb00fdcc6c7271e (patch)
tree7657cef41f5f1487f095437c39c45dfc2b979f0d /content/browser/storage_partition_impl_map.h
parent7dc57d7e28303ebee22ca59528f4ee22b64b54a9 (diff)
downloadchromium_src-55c0ecae62d3e95bf016510d8cb00fdcc6c7271e.zip
chromium_src-55c0ecae62d3e95bf016510d8cb00fdcc6c7271e.tar.gz
chromium_src-55c0ecae62d3e95bf016510d8cb00fdcc6c7271e.tar.bz2
AppCache and StoragePartition'ing
* Get rid of BrowserContext::GetAppCacheService and ResourceContext::GetAppCacheService as they've been replace by accessors on the StoragePartition and WorkerStoragePartition classes. * Added a BrowsingContext::GetRequestContextForStoragePartition(id) accessor so the constellation of storage context + main request context can initialized properly. Implemented that method in chrome's Profile class in terms of the existing GetRequestContextForIsolatedApp(id) accessor. * Hold references to the ChromeAppCacheService and ChromeBlobStorageContext inside of ResourceMessageFilter and provide accessors to them. These are for use by the ResourceDispatcherHost singleton which would otherwise not have enough context to get needed references to partitioned things. * Widen the ResourceDispatcherHostDelegate::RequestBeginning method to also take an AppCacheService* parameter since that value can no longer be retrieved via the ResourceContext. Chrome's impl of this delegate interface needs that value to construct OfflineResourceThrottles. * Poke at WorkerProcessHost to create ResourceMessageFilters and others to utlize the correct URLRequestContext so the right set of cookies are used in shared workers. TBR=mihaip,sail,thakis BUG=85121 Review URL: https://chromiumcodereview.appspot.com/10916132 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@156991 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser/storage_partition_impl_map.h')
-rw-r--r--content/browser/storage_partition_impl_map.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/content/browser/storage_partition_impl_map.h b/content/browser/storage_partition_impl_map.h
index d4a66e7..ff75c4d 100644
--- a/content/browser/storage_partition_impl_map.h
+++ b/content/browser/storage_partition_impl_map.h
@@ -39,7 +39,8 @@ class StoragePartitionImplMap : public base::SupportsUserData::Data {
// doesn't need to be aware of this ordering? Revisit when refactoring
// ResourceContext and AppCache to respect storage partitions.
void PostCreateInitialization(StoragePartitionImpl* partition,
- const FilePath& partition_path);
+ const FilePath& partition_path,
+ net::URLRequestContextGetter* request_context);
BrowserContext* browser_context_; // Not Owned.
std::map<std::string, StoragePartitionImpl*> partitions_;