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

Side by Side 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: 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_CURSOR_H_
6 #define CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_CURSOR_H_
7
8 #include "base/memory/ref_counted.h"
9 #include "content/common/indexed_db/indexed_db_key.h"
10
11 namespace content {
12
13 class IndexedDBCallbacksWrapper;
14 class IndexedDBRequest;
15
16 typedef int ExceptionCode;
17
18 class IndexedDBCursor : public base::RefCounted<IndexedDBCursor> {
19 public:
20 virtual void Advance(unsigned long count,
21 scoped_refptr<IndexedDBCallbacksWrapper>) = 0;
22 virtual void ContinueFunction(scoped_ptr<IndexedDBKey> key,
23 scoped_refptr<IndexedDBCallbacksWrapper>) = 0;
24 virtual void DeleteFunction(scoped_refptr<IndexedDBCallbacksWrapper>) = 0;
25 virtual void PrefetchContinue(int number_to_fetch,
26 scoped_refptr<IndexedDBCallbacksWrapper>) = 0;
27 virtual void PrefetchReset(int used_prefetches, int unused_prefetches) = 0;
28 virtual void PostSuccessHandlerCallback() = 0;
29
30 protected:
31 virtual ~IndexedDBCursor() {}
32 friend class base::RefCounted<IndexedDBCursor>;
33 };
34
35 } // namespace content
36
37 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_CURSOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698