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

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

Issue 18023022: Blob support for IDB [Chromium] (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge fixes [builds, untested] Created 7 years, 3 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 83b4763edc1dcb1abf0db458d3fa07983c430606..2d0e65574cf0648afbb873920577ff2bfecfbc78 100644
--- a/content/browser/indexed_db/leveldb/leveldb_transaction.h
+++ b/content/browser/indexed_db/leveldb/leveldb_transaction.h
@@ -156,11 +156,16 @@ class CONTENT_EXPORT LevelDBTransaction
std::set<TransactionIterator*> iterators_;
};
+// The transaction actually does allow reading, but reads go straight to the
jsbell 2013/09/13 00:12:21 Also note that duplicate writes are not consolidat
ericu 2013/11/20 23:05:39 Noted. Perhaps I'll call it LevelDBUncachedTransa
+// database, ignoring any writes cached in write_batch_.
+// TODO(ericu): Rename to LevelDBSimpleTransaction.
class LevelDBWriteOnlyTransaction {
public:
static scoped_ptr<LevelDBWriteOnlyTransaction> Create(LevelDBDatabase* db);
~LevelDBWriteOnlyTransaction();
+ void Put(const base::StringPiece& key, const std::string* value);
+ bool Get(const base::StringPiece& key, std::string* value, bool* found);
void Remove(const base::StringPiece& key);
bool Commit();

Powered by Google App Engine
This is Rietveld 408576698