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 #include "content/browser/indexed_db/indexed_db_cursor.h" | 5 #include "content/browser/indexed_db/indexed_db_cursor.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 #include <utility> | 8 #include <utility> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/bind.h" | 11 #include "base/bind.h" |
12 #include "base/logging.h" | 12 #include "base/logging.h" |
13 #include "content/browser/indexed_db/indexed_db_callbacks.h" | 13 #include "content/browser/indexed_db/indexed_db_callbacks.h" |
14 #include "content/browser/indexed_db/indexed_db_database_error.h" | |
15 #include "content/browser/indexed_db/indexed_db_tracing.h" | 14 #include "content/browser/indexed_db/indexed_db_tracing.h" |
16 #include "content/browser/indexed_db/indexed_db_transaction.h" | 15 #include "content/browser/indexed_db/indexed_db_transaction.h" |
17 #include "content/browser/indexed_db/indexed_db_value.h" | 16 #include "content/browser/indexed_db/indexed_db_value.h" |
| 17 #include "content/common/indexed_db/indexed_db_database_error.h" |
18 | 18 |
19 namespace content { | 19 namespace content { |
20 | 20 |
21 IndexedDBCursor::IndexedDBCursor( | 21 IndexedDBCursor::IndexedDBCursor( |
22 std::unique_ptr<IndexedDBBackingStore::Cursor> cursor, | 22 std::unique_ptr<IndexedDBBackingStore::Cursor> cursor, |
23 indexed_db::CursorType cursor_type, | 23 indexed_db::CursorType cursor_type, |
24 blink::WebIDBTaskType task_type, | 24 blink::WebIDBTaskType task_type, |
25 IndexedDBTransaction* transaction) | 25 IndexedDBTransaction* transaction) |
26 : task_type_(task_type), | 26 : task_type_(task_type), |
27 cursor_type_(cursor_type), | 27 cursor_type_(cursor_type), |
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
198 } | 198 } |
199 | 199 |
200 void IndexedDBCursor::Close() { | 200 void IndexedDBCursor::Close() { |
201 IDB_TRACE("IndexedDBCursor::Close"); | 201 IDB_TRACE("IndexedDBCursor::Close"); |
202 closed_ = true; | 202 closed_ = true; |
203 cursor_.reset(); | 203 cursor_.reset(); |
204 saved_cursor_.reset(); | 204 saved_cursor_.reset(); |
205 } | 205 } |
206 | 206 |
207 } // namespace content | 207 } // namespace content |
OLD | NEW |