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

Unified Diff: content/browser/indexed_db/indexed_db_factory.h

Issue 15564008: Migrate the IndexedDB backend from Blink to Chromium (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Coding style fixes Created 7 years, 7 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
Index: content/browser/indexed_db/indexed_db_factory.h
diff --git a/content/browser/indexed_db/indexed_db_factory.h b/content/browser/indexed_db/indexed_db_factory.h
new file mode 100644
index 0000000000000000000000000000000000000000..25e3d57d722346b97a3d54f6be0dbfb2e860367f
--- /dev/null
+++ b/content/browser/indexed_db/indexed_db_factory.h
@@ -0,0 +1,45 @@
+// Copyright (c) 2013 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_INDEXED_DB_FACTORY_H_
+#define CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_FACTORY_H_
+
+#include "base/memory/ref_counted.h"
+#include "base/string16.h"
+
+namespace content {
+
+class IndexedDBCallbacksWrapper;
+class IndexedDBDatabase;
+class IndexedDBDatabaseCallbacksWrapper;
+
+typedef int ExceptionCode;
jamesr 2013/05/22 18:59:44 This seems like at least the third time I've seen
jsbell 2013/05/22 22:21:14 Removed. Also removed some class forward declarati
+
+class IndexedDBFactory : public base::RefCounted<IndexedDBFactory> {
+ public:
+ static scoped_refptr<IndexedDBFactory> Create();
+
+ virtual void GetDatabaseNames(scoped_refptr<IndexedDBCallbacksWrapper>,
+ const string16& database_identifier,
+ const string16& data_dir) = 0;
+ virtual void Open(const string16& name,
+ int64_t version,
+ int64_t transaction_id,
+ scoped_refptr<IndexedDBCallbacksWrapper>,
+ scoped_refptr<IndexedDBDatabaseCallbacksWrapper>,
+ const string16& database_identifier,
+ const string16& data_dir) = 0;
+ virtual void DeleteDatabase(const string16& name,
+ scoped_refptr<IndexedDBCallbacksWrapper>,
+ const string16& database_identifier,
+ const string16& data_dir) = 0;
+
+ protected:
+ virtual ~IndexedDBFactory() {}
+ friend class base::RefCounted<IndexedDBFactory>;
+};
+
+} // namespace content
+
+#endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_FACTORY_H_

Powered by Google App Engine
This is Rietveld 408576698