Index: content/public/browser/storage_partition.h |
diff --git a/content/public/browser/storage_partition.h b/content/public/browser/storage_partition.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..7cc1f3bfd4a1a3242883c9668dfd41fe34724c7c |
--- /dev/null |
+++ b/content/public/browser/storage_partition.h |
@@ -0,0 +1,58 @@ |
+// Copyright (c) 2012 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef CONTENT_PUBLIC_BROWSER_STORAGE_PARTITION_H_ |
+#define CONTENT_PUBLIC_BROWSER_STORAGE_PARTITION_H_ |
+ |
+#include "base/basictypes.h" |
+ |
+namespace appcache { |
+class AppCacheService; |
+} |
+ |
+namespace fileapi { |
+class FileSystemContext; |
+} |
+ |
+namespace quota { |
+class QuotaManager; |
+} |
+ |
+namespace webkit_database { |
+class DatabaseTracker; |
+} |
+ |
+namespace content { |
+ |
+class BrowserContext; |
+class IndexedDBContext; |
+class DOMStorageContext; |
+ |
+// Defines what persistent state a child process can access. |
+// |
+// The StoragePartition defines the view each child process has of the |
+// persistent state inside the BrowserContext. This is used to implement |
+// isolated storage where a renderer with isolated storage cannot see |
+// the cookies, localStorage, etc., that normal web renderers have access to. |
+class StoragePartition { |
+ public: |
+ StoragePartition() {} |
jam
2012/08/15 15:16:22
nit: don't need, so get rid of (convention we foll
awong
2012/08/17 00:52:39
See comment for DISALLOW_COPY_AND_ASSIGN().
jam
2012/08/17 16:42:24
same, only put stuff that's needed. the convention
|
+ |
+ virtual quota::QuotaManager* GetQuotaManager() = 0; |
+ virtual appcache::AppCacheService* GetAppCacheService() = 0; |
+ virtual fileapi::FileSystemContext* GetFileSystemContext() = 0; |
+ virtual webkit_database::DatabaseTracker* GetDatabaseTracker() = 0; |
+ virtual content::DOMStorageContext* GetDOMStorageContext() = 0; |
jam
2012/08/15 15:16:22
nit: drop the "content::"
awong
2012/08/17 00:52:39
Done.
|
+ virtual IndexedDBContext* GetIndexedDBContext() = 0; |
+ |
+ protected: |
+ virtual ~StoragePartition() {} |
+ |
+ private: |
+ DISALLOW_COPY_AND_ASSIGN(StoragePartition); |
jam
2012/08/15 15:16:22
nit: not needed since this interface is non-copyab
awong
2012/08/17 00:52:39
I'm not sure I understand. If we leave both the d
jam
2012/08/17 16:42:24
hmm, I didn't even think that *a1= *a2 would compi
|
+}; |
+ |
+} // namespace content |
+ |
+#endif // CONTENT_PUBLIC_BROWSER_STORAGE_PARTITION_H_ |