Chromium Code Reviews| Index: content/public/browser/storage_partition.h |
| diff --git a/content/public/browser/storage_partition.h b/content/public/browser/storage_partition.h |
| index d7c13630cd7414d5676f6f1cfe30c012dfb1089b..f36e1de5dcdd024106a34529c0b0bdcfaf94176a 100644 |
| --- a/content/public/browser/storage_partition.h |
| +++ b/content/public/browser/storage_partition.h |
| @@ -5,7 +5,10 @@ |
| #ifndef CONTENT_PUBLIC_BROWSER_STORAGE_PARTITION_H_ |
| #define CONTENT_PUBLIC_BROWSER_STORAGE_PARTITION_H_ |
| +#include <string> |
| + |
| #include "base/basictypes.h" |
| +#include "base/file_path.h" |
| namespace appcache { |
| class AppCacheService; |
| @@ -37,6 +40,7 @@ class DOMStorageContext; |
| // the cookies, localStorage, etc., that normal web renderers have access to. |
| class StoragePartition { |
| public: |
| + virtual FilePath GetPath() = 0; |
| virtual quota::QuotaManager* GetQuotaManager() = 0; |
| virtual appcache::AppCacheService* GetAppCacheService() = 0; |
| virtual fileapi::FileSystemContext* GetFileSystemContext() = 0; |
| @@ -44,6 +48,15 @@ class StoragePartition { |
| virtual DOMStorageContext* GetDOMStorageContext() = 0; |
| virtual IndexedDBContext* GetIndexedDBContext() = 0; |
| + // Returns the base directory under which all the storage context hold their |
|
Charlie Reis
2012/09/14 21:03:13
nit: contexts
awong
2012/09/14 22:26:07
Done.
|
| + // state for this partition. The |profile_path| should be the base directory |
| + // for this profile. |
| + // |
| + // TODO(ajwong): Remove this function from the public API once |
| + // URLRequestContextGetter's creation is moved into StoragePartition. |
| + static CONTENT_EXPORT FilePath GetPartitionPath(const FilePath& profile_path, |
| + const std::string& partition_id); |
|
Charlie Reis
2012/09/14 21:03:13
nit: wrong indent
awong
2012/09/14 22:26:07
Done.
|
| + |
| protected: |
| virtual ~StoragePartition() {} |
| }; |