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

Unified Diff: components/leveldb/leveldb_database_impl.h

Issue 2285623002: [Leveldb] Use std::{string,vector} instead of mojo::{String,Array}. (Closed)
Patch Set: Address comments from Yuzhu Created 4 years, 4 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
« no previous file with comments | « components/leveldb/BUILD.gn ('k') | components/leveldb/leveldb_database_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/leveldb/leveldb_database_impl.h
diff --git a/components/leveldb/leveldb_database_impl.h b/components/leveldb/leveldb_database_impl.h
index e16b4bf0e79df828536e9a0ed4739eb34bed100a..87dba6cd17ebb01e03c87d5d122770f58af45efe 100644
--- a/components/leveldb/leveldb_database_impl.h
+++ b/components/leveldb/leveldb_database_impl.h
@@ -25,22 +25,23 @@ class LevelDBDatabaseImpl : public mojom::LevelDBDatabase {
~LevelDBDatabaseImpl() override;
// Overridden from LevelDBDatabase:
- void Put(mojo::Array<uint8_t> key,
- mojo::Array<uint8_t> value,
+ void Put(const std::vector<uint8_t>& key,
+ const std::vector<uint8_t>& value,
const PutCallback& callback) override;
- void Delete(mojo::Array<uint8_t> key,
+ void Delete(const std::vector<uint8_t>& key,
const DeleteCallback& callback) override;
- void DeletePrefixed(mojo::Array<uint8_t> key_prefix,
+ void DeletePrefixed(const std::vector<uint8_t>& key_prefix,
const DeletePrefixedCallback& callback) override;
- void Write(mojo::Array<mojom::BatchedOperationPtr> operations,
+ void Write(std::vector<mojom::BatchedOperationPtr> operations,
const WriteCallback& callback) override;
- void Get(mojo::Array<uint8_t> key, const GetCallback& callback) override;
- void GetPrefixed(mojo::Array<uint8_t> key_prefix,
+ void Get(const std::vector<uint8_t>& key,
+ const GetCallback& callback) override;
+ void GetPrefixed(const std::vector<uint8_t>& key_prefix,
const GetPrefixedCallback& callback) override;
void GetSnapshot(const GetSnapshotCallback& callback) override;
void ReleaseSnapshot(uint64_t snapshot_id) override;
void GetFromSnapshot(uint64_t snapshot_id,
- mojo::Array<uint8_t> key,
+ const std::vector<uint8_t>& key,
const GetCallback& callback) override;
void NewIterator(const NewIteratorCallback& callback) override;
void NewIteratorFromSnapshot(uint64_t snapshot_id,
@@ -52,7 +53,7 @@ class LevelDBDatabaseImpl : public mojom::LevelDBDatabase {
void IteratorSeekToLast(uint64_t iterator_id,
const IteratorSeekToLastCallback& callback) override;
void IteratorSeek(uint64_t iterator_id,
- mojo::Array<uint8_t> target,
+ const std::vector<uint8_t>& target,
const IteratorSeekToLastCallback& callback) override;
void IteratorNext(uint64_t iterator_id,
const IteratorNextCallback& callback) override;
« no previous file with comments | « components/leveldb/BUILD.gn ('k') | components/leveldb/leveldb_database_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698