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

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

Issue 18075008: IndexedDB: Switch key/value handling from vector<char> to std::string (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove C++11ism Created 7 years, 5 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_write_batch.h
diff --git a/content/browser/indexed_db/leveldb/leveldb_write_batch.h b/content/browser/indexed_db/leveldb/leveldb_write_batch.h
index 2849687c915cc23a5fb0b03f8a706d91b09199a6..3fbd103dd4cc0a17bb7ae06fa67243725ce8d7e8 100644
--- a/content/browser/indexed_db/leveldb/leveldb_write_batch.h
+++ b/content/browser/indexed_db/leveldb/leveldb_write_batch.h
@@ -6,6 +6,7 @@
#define CONTENT_BROWSER_INDEXED_DB_LEVELDB_LEVELDB_WRITE_BATCH_H_
#include "base/memory/scoped_ptr.h"
+#include "base/strings/string_piece.h"
namespace leveldb {
class WriteBatch;
@@ -13,8 +14,6 @@ class WriteBatch;
namespace content {
-class LevelDBSlice;
-
// Wrapper around leveldb::WriteBatch.
// This class holds a collection of updates to apply atomically to a database.
class LevelDBWriteBatch {
@@ -22,8 +21,9 @@ class LevelDBWriteBatch {
static scoped_ptr<LevelDBWriteBatch> Create();
~LevelDBWriteBatch();
- void Put(const LevelDBSlice& key, const LevelDBSlice& value);
- void Remove(const LevelDBSlice& key); // Add remove operation to the batch.
+ void Put(const base::StringPiece& key, const base::StringPiece& value);
+ void Remove(const base::StringPiece& key); // Add remove operation to the
+ // batch.
void Clear();
private:
« no previous file with comments | « content/browser/indexed_db/leveldb/leveldb_unittest.cc ('k') | content/browser/indexed_db/leveldb/leveldb_write_batch.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698