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 <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 scoped_ptr<IndexedDBKey> primary_key, | 46 scoped_ptr<IndexedDBKey> primary_key, |
47 scoped_refptr<IndexedDBCallbacks> callbacks, | 47 scoped_refptr<IndexedDBCallbacks> callbacks, |
48 IndexedDBTransaction* transaction); | 48 IndexedDBTransaction* transaction); |
49 void CursorAdvanceOperation(uint32 count, | 49 void CursorAdvanceOperation(uint32 count, |
50 scoped_refptr<IndexedDBCallbacks> callbacks, | 50 scoped_refptr<IndexedDBCallbacks> callbacks, |
51 IndexedDBTransaction* transaction); | 51 IndexedDBTransaction* transaction); |
52 void CursorPrefetchIterationOperation( | 52 void CursorPrefetchIterationOperation( |
53 int number_to_fetch, | 53 int number_to_fetch, |
54 scoped_refptr<IndexedDBCallbacks> callbacks, | 54 scoped_refptr<IndexedDBCallbacks> callbacks, |
55 IndexedDBTransaction* transaction); | 55 IndexedDBTransaction* transaction); |
| 56 void CursorPrefetchResetOperation(int used_prefetches, |
| 57 IndexedDBTransaction* transaction); |
56 | 58 |
57 private: | 59 private: |
58 friend class base::RefCounted<IndexedDBCursor>; | 60 friend class base::RefCounted<IndexedDBCursor>; |
59 | 61 |
60 ~IndexedDBCursor(); | 62 ~IndexedDBCursor(); |
61 | 63 |
62 IndexedDBDatabase::TaskType task_type_; | 64 IndexedDBDatabase::TaskType task_type_; |
63 indexed_db::CursorType cursor_type_; | 65 indexed_db::CursorType cursor_type_; |
64 const scoped_refptr<IndexedDBTransaction> transaction_; | 66 const scoped_refptr<IndexedDBTransaction> transaction_; |
65 | 67 |
66 // Must be destroyed before transaction_. | 68 // Must be destroyed before transaction_. |
67 scoped_ptr<IndexedDBBackingStore::Cursor> cursor_; | 69 scoped_ptr<IndexedDBBackingStore::Cursor> cursor_; |
68 // Must be destroyed before transaction_. | 70 // Must be destroyed before transaction_. |
69 scoped_ptr<IndexedDBBackingStore::Cursor> saved_cursor_; | 71 scoped_ptr<IndexedDBBackingStore::Cursor> saved_cursor_; |
70 | 72 |
71 bool closed_; | 73 bool closed_; |
72 }; | 74 }; |
73 | 75 |
74 } // namespace content | 76 } // namespace content |
75 | 77 |
76 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_CURSOR_H_ | 78 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_CURSOR_H_ |
OLD | NEW |