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

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

Issue 10837230: Move StoragePartition into content/public and remove BrowserContext::GetDOMStorageContext(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove DISALLOW_COPY_AND_ASSIGN, and change RPH::CreateMessageFilters() to not suddenly isolate all… 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
« no previous file with comments | « content/public/browser/resource_context.h ('k') | no next file » | 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
new file mode 100644
index 0000000000000000000000000000000000000000..d7c13630cd7414d5676f6f1cfe30c012dfb1089b
--- /dev/null
+++ b/content/public/browser/storage_partition.h
@@ -0,0 +1,53 @@
+// 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:
+ virtual quota::QuotaManager* GetQuotaManager() = 0;
+ virtual appcache::AppCacheService* GetAppCacheService() = 0;
+ virtual fileapi::FileSystemContext* GetFileSystemContext() = 0;
+ virtual webkit_database::DatabaseTracker* GetDatabaseTracker() = 0;
+ virtual DOMStorageContext* GetDOMStorageContext() = 0;
+ virtual IndexedDBContext* GetIndexedDBContext() = 0;
+
+ protected:
+ virtual ~StoragePartition() {}
+};
+
+} // namespace content
+
+#endif // CONTENT_PUBLIC_BROWSER_STORAGE_PARTITION_H_
« no previous file with comments | « content/public/browser/resource_context.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698