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" |
11 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
13 #include "content/browser/indexed_db/indexed_db_backing_store.h" | 13 #include "content/browser/indexed_db/indexed_db_backing_store.h" |
14 #include "content/browser/indexed_db/indexed_db_database.h" | 14 #include "content/browser/indexed_db/indexed_db_database.h" |
15 #include "content/common/indexed_db/indexed_db_key_range.h" | 15 #include "content/common/indexed_db/indexed_db_key_range.h" |
16 #include "third_party/WebKit/public/platform/WebIDBTypes.h" | 16 #include "third_party/WebKit/public/platform/modules/indexeddb/WebIDBTypes.h" |
17 | 17 |
18 namespace content { | 18 namespace content { |
19 | 19 |
20 class IndexedDBTransaction; | 20 class IndexedDBTransaction; |
21 | 21 |
22 class CONTENT_EXPORT IndexedDBCursor | 22 class CONTENT_EXPORT IndexedDBCursor |
23 : NON_EXPORTED_BASE(public base::RefCounted<IndexedDBCursor>) { | 23 : NON_EXPORTED_BASE(public base::RefCounted<IndexedDBCursor>) { |
24 public: | 24 public: |
25 IndexedDBCursor(scoped_ptr<IndexedDBBackingStore::Cursor> cursor, | 25 IndexedDBCursor(scoped_ptr<IndexedDBBackingStore::Cursor> cursor, |
26 indexed_db::CursorType cursor_type, | 26 indexed_db::CursorType cursor_type, |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 scoped_ptr<IndexedDBBackingStore::Cursor> saved_cursor_; | 70 scoped_ptr<IndexedDBBackingStore::Cursor> saved_cursor_; |
71 | 71 |
72 bool closed_; | 72 bool closed_; |
73 | 73 |
74 DISALLOW_COPY_AND_ASSIGN(IndexedDBCursor); | 74 DISALLOW_COPY_AND_ASSIGN(IndexedDBCursor); |
75 }; | 75 }; |
76 | 76 |
77 } // namespace content | 77 } // namespace content |
78 | 78 |
79 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_CURSOR_H_ | 79 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_CURSOR_H_ |
OLD | NEW |