| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CONTENT_BROWSER_INDEXED_DB_WEBIDBCURSOR_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_INDEXED_DB_WEBIDBCURSOR_IMPL_H_ |
| 6 #define CONTENT_BROWSER_INDEXED_DB_WEBIDBCURSOR_IMPL_H_ | 6 #define CONTENT_BROWSER_INDEXED_DB_WEBIDBCURSOR_IMPL_H_ |
| 7 | 7 |
| 8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
| 9 #include "third_party/WebKit/public/platform/WebIDBCursor.h" | 9 |
| 10 namespace WebKit { |
| 11 class WebIDBKey; |
| 12 } |
| 10 | 13 |
| 11 namespace content { | 14 namespace content { |
| 12 class IndexedDBCursor; | 15 class IndexedDBCursor; |
| 16 class IndexedDBCallbacksBase; |
| 13 | 17 |
| 14 class WebIDBCursorImpl : public WebKit::WebIDBCursor { | 18 class WebIDBCursorImpl { |
| 15 public: | 19 public: |
| 16 explicit WebIDBCursorImpl(scoped_refptr<IndexedDBCursor> cursor); | 20 explicit WebIDBCursorImpl(scoped_refptr<IndexedDBCursor> cursor); |
| 17 virtual ~WebIDBCursorImpl(); | 21 virtual ~WebIDBCursorImpl(); |
| 18 | 22 |
| 19 virtual void advance(unsigned long, WebKit::WebIDBCallbacks* callbacks); | 23 virtual void advance(unsigned long, IndexedDBCallbacksBase* callbacks); |
| 20 virtual void continueFunction(const WebKit::WebIDBKey& key, | 24 virtual void continueFunction(const WebKit::WebIDBKey& key, |
| 21 WebKit::WebIDBCallbacks* callbacks); | 25 IndexedDBCallbacksBase* callbacks); |
| 22 virtual void prefetchContinue(int number_to_fetch, | 26 virtual void prefetchContinue(int number_to_fetch, |
| 23 WebKit::WebIDBCallbacks* callbacks); | 27 IndexedDBCallbacksBase* callbacks); |
| 24 virtual void prefetchReset(int used_prefetches, int unused_prefetches); | 28 virtual void prefetchReset(int used_prefetches, int unused_prefetches); |
| 25 | 29 |
| 26 private: | 30 private: |
| 27 scoped_refptr<IndexedDBCursor> idb_cursor_backend_; | 31 scoped_refptr<IndexedDBCursor> idb_cursor_backend_; |
| 28 }; | 32 }; |
| 29 | 33 |
| 30 } // namespace content | 34 } // namespace content |
| 31 | 35 |
| 32 #endif // CONTENT_BROWSER_INDEXED_DB_WEBIDBCURSOR_IMPL_H_ | 36 #endif // CONTENT_BROWSER_INDEXED_DB_WEBIDBCURSOR_IMPL_H_ |
| OLD | NEW |