| 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 <map> | 8 #include <map> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 306 const IndexedDBKey* primary_key, | 306 const IndexedDBKey* primary_key, |
| 307 IteratorState state, | 307 IteratorState state, |
| 308 leveldb::Status*); | 308 leveldb::Status*); |
| 309 bool Advance(uint32 count, leveldb::Status*); | 309 bool Advance(uint32 count, leveldb::Status*); |
| 310 bool FirstSeek(leveldb::Status*); | 310 bool FirstSeek(leveldb::Status*); |
| 311 | 311 |
| 312 virtual Cursor* Clone() = 0; | 312 virtual Cursor* Clone() = 0; |
| 313 virtual const IndexedDBKey& primary_key() const; | 313 virtual const IndexedDBKey& primary_key() const; |
| 314 virtual IndexedDBValue* value() = 0; | 314 virtual IndexedDBValue* value() = 0; |
| 315 virtual const RecordIdentifier& record_identifier() const; | 315 virtual const RecordIdentifier& record_identifier() const; |
| 316 virtual bool LoadCurrentRow() = 0; | 316 virtual bool LoadCurrentRow(leveldb::Status* s) = 0; |
| 317 | 317 |
| 318 protected: | 318 protected: |
| 319 Cursor(scoped_refptr<IndexedDBBackingStore> backing_store, | 319 Cursor(scoped_refptr<IndexedDBBackingStore> backing_store, |
| 320 Transaction* transaction, | 320 Transaction* transaction, |
| 321 int64 database_id, | 321 int64 database_id, |
| 322 const CursorOptions& cursor_options); | 322 const CursorOptions& cursor_options); |
| 323 explicit Cursor(const IndexedDBBackingStore::Cursor* other); | 323 explicit Cursor(const IndexedDBBackingStore::Cursor* other); |
| 324 | 324 |
| 325 virtual std::string EncodeKey(const IndexedDBKey& key) = 0; | 325 virtual std::string EncodeKey(const IndexedDBKey& key) = 0; |
| 326 virtual std::string EncodeKey(const IndexedDBKey& key, | 326 virtual std::string EncodeKey(const IndexedDBKey& key, |
| (...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 652 // complete. While > 0, temporary journal entries may exist so out-of-band | 652 // complete. While > 0, temporary journal entries may exist so out-of-band |
| 653 // journal cleaning must be deferred. | 653 // journal cleaning must be deferred. |
| 654 size_t committing_transaction_count_; | 654 size_t committing_transaction_count_; |
| 655 | 655 |
| 656 DISALLOW_COPY_AND_ASSIGN(IndexedDBBackingStore); | 656 DISALLOW_COPY_AND_ASSIGN(IndexedDBBackingStore); |
| 657 }; | 657 }; |
| 658 | 658 |
| 659 } // namespace content | 659 } // namespace content |
| 660 | 660 |
| 661 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_BACKING_STORE_H_ | 661 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_BACKING_STORE_H_ |
| OLD | NEW |