| 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_INDEXED_DB_CURSOR_H_ | 5 #ifndef CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_CURSOR_H_ |
| 6 #define CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_CURSOR_H_ | 6 #define CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_CURSOR_H_ |
| 7 | 7 |
| 8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
| 9 #include "content/common/indexed_db/indexed_db_key.h" | 9 #include "content/common/indexed_db/indexed_db_key.h" |
| 10 | 10 |
| 11 namespace content { | 11 namespace content { |
| 12 | 12 |
| 13 class IndexedDBCallbacksWrapper; | 13 class IndexedDBCallbacksWrapper; |
| 14 | 14 |
| 15 class IndexedDBCursor : public base::RefCounted<IndexedDBCursor> { | 15 class IndexedDBCursor : public base::RefCounted<IndexedDBCursor> { |
| 16 public: | 16 public: |
| 17 virtual void Advance(unsigned long count, | 17 virtual void Advance(unsigned long count, |
| 18 scoped_refptr<IndexedDBCallbacksWrapper> callbacks) = 0; | 18 scoped_refptr<IndexedDBCallbacksWrapper> callbacks) = 0; |
| 19 virtual void ContinueFunction( | 19 virtual void ContinueFunction( |
| 20 scoped_ptr<IndexedDBKey> key, | 20 scoped_ptr<IndexedDBKey> key, |
| 21 scoped_refptr<IndexedDBCallbacksWrapper> callbacks) = 0; | 21 scoped_refptr<IndexedDBCallbacksWrapper> callbacks) = 0; |
| 22 virtual void DeleteFunction( | |
| 23 scoped_refptr<IndexedDBCallbacksWrapper> callbacks) = 0; | |
| 24 virtual void PrefetchContinue( | 22 virtual void PrefetchContinue( |
| 25 int number_to_fetch, | 23 int number_to_fetch, |
| 26 scoped_refptr<IndexedDBCallbacksWrapper> callbacks) = 0; | 24 scoped_refptr<IndexedDBCallbacksWrapper> callbacks) = 0; |
| 27 virtual void PrefetchReset(int used_prefetches, int unused_prefetches) = 0; | 25 virtual void PrefetchReset(int used_prefetches, int unused_prefetches) = 0; |
| 28 virtual void PostSuccessHandlerCallback() = 0; | 26 virtual void PostSuccessHandlerCallback() = 0; |
| 29 | 27 |
| 30 protected: | 28 protected: |
| 31 virtual ~IndexedDBCursor() {} | 29 virtual ~IndexedDBCursor() {} |
| 32 friend class base::RefCounted<IndexedDBCursor>; | 30 friend class base::RefCounted<IndexedDBCursor>; |
| 33 }; | 31 }; |
| 34 | 32 |
| 35 } // namespace content | 33 } // namespace content |
| 36 | 34 |
| 37 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_CURSOR_H_ | 35 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_CURSOR_H_ |
| OLD | NEW |