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 988506fac5e6d0f0079651a731d46c32c7da3a35..73a9bb9cf0a39832777581fa1d467a17a8ba03c5 100644 |
--- a/content/browser/indexed_db/leveldb/leveldb_transaction.h |
+++ b/content/browser/indexed_db/leveldb/leveldb_transaction.h |
@@ -26,7 +26,10 @@ class CONTENT_EXPORT LevelDBTransaction |
: public base::RefCounted<LevelDBTransaction> { |
public: |
void Put(const base::StringPiece& key, std::string* value); |
- void Remove(const base::StringPiece& key); |
+ |
+ // Returns true if the record was deleted, and false if it was already |
+ // deleted. |
+ bool Remove(const base::StringPiece& key); |
virtual leveldb::Status Get(const base::StringPiece& key, |
std::string* value, |
bool* found); |
@@ -130,7 +133,7 @@ class CONTENT_EXPORT LevelDBTransaction |
DISALLOW_COPY_AND_ASSIGN(TransactionIterator); |
}; |
dmurph
2016/05/20 18:41:15
Can you document what this returns?
palakj1
2016/05/20 19:13:45
Done
|
- void Set(const base::StringPiece& key, std::string* value, bool deleted); |
+ bool Set(const base::StringPiece& key, std::string* value, bool deleted); |
void Clear(); |
void RegisterIterator(TransactionIterator* iterator); |
void UnregisterIterator(TransactionIterator* iterator); |