Index: content/browser/dom_storage/dom_storage_database_adapter.h |
diff --git a/content/browser/dom_storage/dom_storage_database_adapter.h b/content/browser/dom_storage/dom_storage_database_adapter.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..d2c56cc7c3d3e7907dba8faa02cfbb4533bc7856 |
--- /dev/null |
+++ b/content/browser/dom_storage/dom_storage_database_adapter.h |
@@ -0,0 +1,29 @@ |
+// 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_BROWSER_DOM_STORAGE_DOM_STORAGE_DATABASE_ADAPTER_H_ |
+#define CONTENT_BROWSER_DOM_STORAGE_DOM_STORAGE_DATABASE_ADAPTER_H_ |
+ |
+// Database interface used by DOMStorageArea. Abstracts the differences between |
+// the per-origin DOMStorageDatabases for localStorage and |
+// SessionStorageDatabase which stores multiple origins. |
+ |
+#include "content/common/content_export.h" |
+#include "content/common/dom_storage/dom_storage_types.h" |
+ |
+namespace content { |
+ |
+class CONTENT_EXPORT DOMStorageDatabaseAdapter { |
+ public: |
+ virtual ~DOMStorageDatabaseAdapter() {} |
+ virtual void ReadAllValues(DOMStorageValuesMap* result) = 0; |
+ virtual bool CommitChanges( |
+ bool clear_all_first, const DOMStorageValuesMap& changes) = 0; |
+ virtual void DeleteFiles() {} |
+ virtual void Reset() {} |
+}; |
+ |
+} // namespace content |
+ |
+#endif // CONTENT_BROWSER_DOM_STORAGE_DOM_STORAGE_DATABASE_ADAPTER_H_ |