| OLD | NEW |
| (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_WEBIDBCURSOR_IMPL_H_ | |
| 6 #define CONTENT_BROWSER_INDEXED_DB_WEBIDBCURSOR_IMPL_H_ | |
| 7 | |
| 8 #include "base/memory/ref_counted.h" | |
| 9 | |
| 10 namespace content { | |
| 11 class IndexedDBCursor; | |
| 12 class IndexedDBCallbacksBase; | |
| 13 class IndexedDBKey; | |
| 14 | |
| 15 class WebIDBCursorImpl { | |
| 16 public: | |
| 17 explicit WebIDBCursorImpl(scoped_refptr<IndexedDBCursor> cursor); | |
| 18 virtual ~WebIDBCursorImpl(); | |
| 19 | |
| 20 virtual void advance(unsigned long, IndexedDBCallbacksBase* callbacks); | |
| 21 virtual void continueFunction(const IndexedDBKey& key, | |
| 22 IndexedDBCallbacksBase* callbacks); | |
| 23 virtual void prefetchContinue(int number_to_fetch, | |
| 24 IndexedDBCallbacksBase* callbacks); | |
| 25 virtual void prefetchReset(int used_prefetches, int unused_prefetches); | |
| 26 | |
| 27 private: | |
| 28 scoped_refptr<IndexedDBCursor> idb_cursor_backend_; | |
| 29 }; | |
| 30 | |
| 31 } // namespace content | |
| 32 | |
| 33 #endif // CONTENT_BROWSER_INDEXED_DB_WEBIDBCURSOR_IMPL_H_ | |
| OLD | NEW |