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

Unified Diff: content/public/browser/storage_partition.h

Issue 10913265: Redo the Storage Partition directory layout to support guest tags and origin based partitions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix typo 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/common/content_constants.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..6cdb32864ff4f5bd8ef58366ff941313c94f3ffb 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,14 @@ class StoragePartition {
virtual DOMStorageContext* GetDOMStorageContext() = 0;
virtual IndexedDBContext* GetIndexedDBContext() = 0;
+ // Returns the relative path from the profile's base directory, to the
+ // directory that holds all the state for storage contexts in |partition_id|.
+ //
+ // TODO(ajwong): Remove this function from the public API once
+ // URLRequestContextGetter's creation is moved into StoragePartition.
+ static CONTENT_EXPORT FilePath GetPartitionPath(
+ const std::string& partition_id);
+
protected:
virtual ~StoragePartition() {}
};
« no previous file with comments | « content/browser/storage_partition_impl_map.cc ('k') | content/public/common/content_constants.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698