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

Unified Diff: content/browser/storage_partition_impl.h

Issue 10885044: Remove storage context accessors from ResourceContext. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merged to ToT Created 8 years, 4 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/storage_partition_impl.h
diff --git a/content/browser/storage_partition_impl.h b/content/browser/storage_partition_impl.h
index 9ab7fc3bffc6099d8519042f72e2a2f7e09d2c8c..fb7520b948163a606170dbb346665c9f4e165868 100644
--- a/content/browser/storage_partition_impl.h
+++ b/content/browser/storage_partition_impl.h
@@ -22,9 +22,11 @@ class StoragePartitionImpl : public StoragePartition {
// TODO(ajwong): Break the direct dependency on |context|. We only
// need 3 pieces of info from it.
static StoragePartitionImpl* Create(BrowserContext* context,
+ const std::string& partition_id,
const FilePath& partition_path);
// StoragePartition interface.
+ virtual const std::string& GetId() OVERRIDE;
virtual quota::QuotaManager* GetQuotaManager() OVERRIDE;
virtual ChromeAppCacheService* GetAppCacheService() OVERRIDE;
virtual fileapi::FileSystemContext* GetFileSystemContext() OVERRIDE;
@@ -33,7 +35,8 @@ class StoragePartitionImpl : public StoragePartition {
virtual IndexedDBContextImpl* GetIndexedDBContext() OVERRIDE;
private:
- StoragePartitionImpl(const FilePath& partition_path,
+ StoragePartitionImpl(const std::string& partition_id,
+ const FilePath& partition_path,
quota::QuotaManager* quota_manager,
ChromeAppCacheService* appcache_service,
fileapi::FileSystemContext* filesystem_context,
@@ -41,6 +44,7 @@ class StoragePartitionImpl : public StoragePartition {
DOMStorageContextImpl* dom_storage_context,
IndexedDBContextImpl* indexed_db_context);
+ std::string partition_id_;
FilePath partition_path_;
scoped_refptr<quota::QuotaManager> quota_manager_;
scoped_refptr<ChromeAppCacheService> appcache_service_;

Powered by Google App Engine
This is Rietveld 408576698