Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(257)

Side by Side Diff: content/browser/indexed_db/indexed_db_backing_store.h

Issue 1116253003: IndexedDB: Added IDBObjectStore.getAll() corruption test. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@idb-objectstore-getall
Patch Set: Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | content/browser/indexed_db/indexed_db_backing_store.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « no previous file | content/browser/indexed_db/indexed_db_backing_store.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698