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

Unified Diff: content/browser/indexed_db/leveldb/leveldb_transaction.h

Issue 237143006: Make iterating over a corrupted IndexedDB fail. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added Status checks. Created 6 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/indexed_db/leveldb/leveldb_transaction.h
diff --git a/content/browser/indexed_db/leveldb/leveldb_transaction.h b/content/browser/indexed_db/leveldb/leveldb_transaction.h
index 8827db84a4e3c4bd7fe4c3cfbef364274272bcb0..1102651d96437e702805514470eec24e72e0587b 100644
--- a/content/browser/indexed_db/leveldb/leveldb_transaction.h
+++ b/content/browser/indexed_db/leveldb/leveldb_transaction.h
@@ -68,10 +68,10 @@ class CONTENT_EXPORT LevelDBTransaction
virtual ~DataIterator();
virtual bool IsValid() const OVERRIDE;
- virtual void SeekToLast() OVERRIDE;
- virtual void Seek(const base::StringPiece& slice) OVERRIDE;
- virtual void Next() OVERRIDE;
- virtual void Prev() OVERRIDE;
+ virtual leveldb::Status SeekToLast() OVERRIDE;
+ virtual leveldb::Status Seek(const base::StringPiece& slice) OVERRIDE;
+ virtual leveldb::Status Next() OVERRIDE;
+ virtual leveldb::Status Prev() OVERRIDE;
virtual base::StringPiece Key() const OVERRIDE;
virtual base::StringPiece Value() const OVERRIDE;
bool IsDeleted() const;
@@ -89,10 +89,10 @@ class CONTENT_EXPORT LevelDBTransaction
scoped_refptr<LevelDBTransaction> transaction);
virtual bool IsValid() const OVERRIDE;
- virtual void SeekToLast() OVERRIDE;
- virtual void Seek(const base::StringPiece& target) OVERRIDE;
- virtual void Next() OVERRIDE;
- virtual void Prev() OVERRIDE;
+ virtual leveldb::Status SeekToLast() OVERRIDE;
+ virtual leveldb::Status Seek(const base::StringPiece& target) OVERRIDE;
+ virtual leveldb::Status Next() OVERRIDE;
+ virtual leveldb::Status Prev() OVERRIDE;
virtual base::StringPiece Key() const OVERRIDE;
virtual base::StringPiece Value() const OVERRIDE;
void DataChanged();

Powered by Google App Engine
This is Rietveld 408576698