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..1f5288bcebfabc59bd63f4f89f6e9c410c4a0815 100644 |
--- a/content/public/browser/storage_partition.h |
+++ b/content/public/browser/storage_partition.h |
@@ -5,6 +5,8 @@ |
#ifndef CONTENT_PUBLIC_BROWSER_STORAGE_PARTITION_H_ |
#define CONTENT_PUBLIC_BROWSER_STORAGE_PARTITION_H_ |
+#include <string> |
+ |
#include "base/basictypes.h" |
namespace appcache { |
@@ -37,6 +39,14 @@ class DOMStorageContext; |
// the cookies, localStorage, etc., that normal web renderers have access to. |
class StoragePartition { |
public: |
+ // Returns the partition id for this StoragePartition. |
+ // |
+ // This value should be used to compare whether two StoragePartition objects |
+ // are equivalent. On the IO thread, this can be particularly useful because |
+ // StoragePartition objects themselves are only meant for use on the UI |
+ // thread. |
michaeln
2012/08/30 21:48:45
I'm thinking that we could make this class thread
|
+ virtual const std::string& GetId() = 0; |
+ |
virtual quota::QuotaManager* GetQuotaManager() = 0; |
virtual appcache::AppCacheService* GetAppCacheService() = 0; |
virtual fileapi::FileSystemContext* GetFileSystemContext() = 0; |