Index: webkit/dom_storage/local_storage_database_adapter.h |
diff --git a/webkit/dom_storage/local_storage_database_adapter.h b/webkit/dom_storage/local_storage_database_adapter.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..96add61129a541e46394cc558c0c68a6ad30d7a7 |
--- /dev/null |
+++ b/webkit/dom_storage/local_storage_database_adapter.h |
@@ -0,0 +1,33 @@ |
+// 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 WEBKIT_DOM_STORAGE_LOCAL_STORAGE_DATABASE_ADAPTER_H_ |
+#define WEBKIT_DOM_STORAGE_LOCAL_STORAGE_DATABASE_ADAPTER_H_ |
+#pragma once |
+ |
+#include "base/memory/scoped_ptr.h" |
+#include "webkit/dom_storage/dom_storage_database_adapter.h" |
+ |
+namespace dom_storage { |
+ |
+class DomStorageDatabase; |
+ |
+class LocalStorageDatabaseAdapter : public DomStorageDatabaseAdapter { |
+ public: |
+ explicit LocalStorageDatabaseAdapter(DomStorageDatabase* db); |
+ virtual ~LocalStorageDatabaseAdapter(); |
+ virtual void ReadAllValues(ValuesMap* result) OVERRIDE; |
+ virtual bool CommitChanges(bool clear_all_first, |
+ const ValuesMap& changes) OVERRIDE; |
+ virtual void DeleteFiles() OVERRIDE; |
+ virtual void Reset() OVERRIDE; |
+ private: |
+ scoped_ptr<DomStorageDatabase> db_; |
+ |
+ DISALLOW_COPY_AND_ASSIGN(LocalStorageDatabaseAdapter); |
+}; |
+ |
+} // namespace dom_storage |
+ |
+#endif // WEBKIT_DOM_STORAGE_LOCAL_STORAGE_DATABASE_ADAPTER_H_ |