Chromium Code Reviews| 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_BACKING_STORE_H_ | 5 #ifndef CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_BACKING_STORE_H_ |
| 6 #define CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_BACKING_STORE_H_ | 6 #define CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_BACKING_STORE_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 308 leveldb::Status* s) { | 308 leveldb::Status* s) { |
| 309 return Continue(key, NULL, state, s); | 309 return Continue(key, NULL, state, s); |
| 310 } | 310 } |
| 311 bool Continue(const IndexedDBKey* key, | 311 bool Continue(const IndexedDBKey* key, |
| 312 const IndexedDBKey* primary_key, | 312 const IndexedDBKey* primary_key, |
| 313 IteratorState state, | 313 IteratorState state, |
| 314 leveldb::Status*); | 314 leveldb::Status*); |
| 315 bool Advance(uint32_t count, leveldb::Status*); | 315 bool Advance(uint32_t count, leveldb::Status*); |
| 316 bool FirstSeek(leveldb::Status*); | 316 bool FirstSeek(leveldb::Status*); |
| 317 | 317 |
| 318 virtual Cursor* Clone() = 0; | 318 virtual std::unique_ptr<Cursor> Clone() = 0; |
|
cmumford
2016/08/13 00:08:38
Now that you're changing Clone's signature, why no
jsbell
2016/08/16 03:05:28
Done.
| |
| 319 virtual const IndexedDBKey& primary_key() const; | 319 virtual const IndexedDBKey& primary_key() const; |
| 320 virtual IndexedDBValue* value() = 0; | 320 virtual IndexedDBValue* value() = 0; |
| 321 virtual const RecordIdentifier& record_identifier() const; | 321 virtual const RecordIdentifier& record_identifier() const; |
| 322 virtual bool LoadCurrentRow(leveldb::Status* s) = 0; | 322 virtual bool LoadCurrentRow(leveldb::Status* s) = 0; |
| 323 | 323 |
| 324 protected: | 324 protected: |
| 325 Cursor(scoped_refptr<IndexedDBBackingStore> backing_store, | 325 Cursor(scoped_refptr<IndexedDBBackingStore> backing_store, |
| 326 Transaction* transaction, | 326 Transaction* transaction, |
| 327 int64_t database_id, | 327 int64_t database_id, |
| 328 const CursorOptions& cursor_options); | 328 const CursorOptions& cursor_options); |
| (...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 666 // complete. While > 0, temporary journal entries may exist so out-of-band | 666 // complete. While > 0, temporary journal entries may exist so out-of-band |
| 667 // journal cleaning must be deferred. | 667 // journal cleaning must be deferred. |
| 668 size_t committing_transaction_count_; | 668 size_t committing_transaction_count_; |
| 669 | 669 |
| 670 DISALLOW_COPY_AND_ASSIGN(IndexedDBBackingStore); | 670 DISALLOW_COPY_AND_ASSIGN(IndexedDBBackingStore); |
| 671 }; | 671 }; |
| 672 | 672 |
| 673 } // namespace content | 673 } // namespace content |
| 674 | 674 |
| 675 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_BACKING_STORE_H_ | 675 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_BACKING_STORE_H_ |
| OLD | NEW |