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

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

Issue 15564008: Migrate the IndexedDB backend from Blink to Chromium (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Accessor naming, use LevelDBSlice ctor explicitly 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_cursor.h
diff --git a/content/browser/indexed_db/indexed_db_cursor.h b/content/browser/indexed_db/indexed_db_cursor.h
new file mode 100644
index 0000000000000000000000000000000000000000..35a310e0ffdf5004dbc5465ea22c32e6d8681b43
--- /dev/null
+++ b/content/browser/indexed_db/indexed_db_cursor.h
@@ -0,0 +1,37 @@
+// 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_CURSOR_H_
+#define CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_CURSOR_H_
+
+#include "base/memory/ref_counted.h"
+#include "content/common/indexed_db/indexed_db_key.h"
+
+namespace content {
+
+class IndexedDBCallbacksWrapper;
+class IndexedDBRequest;
+
+typedef int ExceptionCode;
+
+class IndexedDBCursor : public base::RefCounted<IndexedDBCursor> {
+ public:
+ virtual void Advance(unsigned long count,
+ scoped_refptr<IndexedDBCallbacksWrapper>) = 0;
+ virtual void ContinueFunction(scoped_ptr<IndexedDBKey> key,
+ scoped_refptr<IndexedDBCallbacksWrapper>) = 0;
+ virtual void DeleteFunction(scoped_refptr<IndexedDBCallbacksWrapper>) = 0;
+ virtual void PrefetchContinue(int number_to_fetch,
+ scoped_refptr<IndexedDBCallbacksWrapper>) = 0;
+ virtual void PrefetchReset(int used_prefetches, int unused_prefetches) = 0;
+ virtual void PostSuccessHandlerCallback() = 0;
+
+ protected:
+ virtual ~IndexedDBCursor() {}
+ friend class base::RefCounted<IndexedDBCursor>;
+};
+
+} // namespace content
+
+#endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_CURSOR_H_

Powered by Google App Engine
This is Rietveld 408576698