Index: content/browser/indexed_db/leveldb/leveldb_factory.h |
diff --git a/content/browser/indexed_db/leveldb/leveldb_factory.h b/content/browser/indexed_db/leveldb/leveldb_factory.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..31974ee9098f3440603c9aa4b9876348abc9f885 |
--- /dev/null |
+++ b/content/browser/indexed_db/leveldb/leveldb_factory.h |
@@ -0,0 +1,33 @@ |
+// Copyright 2014 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_INDEXED_DB_LEVELDB_LEVELDB_FACTORY_H_ |
+#define CONTENT_BROWSER_INDEXED_DB_LEVELDB_LEVELDB_FACTORY_H_ |
+ |
+#include "base/memory/scoped_ptr.h" |
+#include "content/common/content_export.h" |
+#include "third_party/leveldatabase/src/include/leveldb/status.h" |
+ |
+namespace base { |
+class FilePath; |
+} |
+ |
+namespace content { |
+ |
+class LevelDBComparator; |
+class LevelDBDatabase; |
+ |
+class CONTENT_EXPORT LevelDBFactory { |
+ public: |
+ virtual ~LevelDBFactory() {} |
+ virtual leveldb::Status OpenLevelDB(const base::FilePath& file_name, |
+ const LevelDBComparator* comparator, |
+ scoped_ptr<LevelDBDatabase>* db, |
+ bool* is_disk_full) = 0; |
+ virtual leveldb::Status DestroyLevelDB(const base::FilePath& file_name) = 0; |
+}; |
+ |
+} // namespace content |
+ |
+#endif // CONTENT_BROWSER_INDEXED_DB_LEVELDB_LEVELDB_FACTORY_H_ |