| Index: content/browser/indexed_db/leveldb/leveldb_transaction.cc
|
| diff --git a/content/browser/indexed_db/leveldb/leveldb_transaction.cc b/content/browser/indexed_db/leveldb/leveldb_transaction.cc
|
| index 0c3619465bb8545f709ab6bca486d671dc20143e..2fe72ffa9f5f62c05a4146cfa2135defb764312c 100644
|
| --- a/content/browser/indexed_db/leveldb/leveldb_transaction.cc
|
| +++ b/content/browser/indexed_db/leveldb/leveldb_transaction.cc
|
| @@ -435,6 +435,27 @@ LevelDBWriteOnlyTransaction::~LevelDBWriteOnlyTransaction() {
|
| write_batch_->Clear();
|
| }
|
|
|
| +void LevelDBWriteOnlyTransaction::Put(const StringPiece& key,
|
| + const std::string* value)
|
| +{
|
| + DCHECK(!finished_);
|
| + write_batch_->Put(key, *value);
|
| +}
|
| +
|
| +bool LevelDBWriteOnlyTransaction::Get(const StringPiece& key,
|
| + std::string* value, bool* found)
|
| +{
|
| + *found = false;
|
| + DCHECK(!finished_);
|
| +
|
| + bool ok = db_->Get(key, value, found);
|
| + if (!ok) {
|
| + DCHECK(!found);
|
| + return false;
|
| + }
|
| + return true;
|
| +}
|
| +
|
| void LevelDBWriteOnlyTransaction::Remove(const StringPiece& key) {
|
| DCHECK(!finished_);
|
| write_batch_->Remove(key);
|
|
|