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

Unified Diff: components/leveldb/public/cpp/remote_iterator.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/leveldb_service_unittest.cc ('k') | components/leveldb/public/cpp/remote_iterator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/leveldb/public/cpp/remote_iterator.h
diff --git a/components/leveldb/public/cpp/remote_iterator.h b/components/leveldb/public/cpp/remote_iterator.h
index 1d3920ba1231ccb132a751fdf80b23ae40ccf7f4..0a4ae36d1e0bc8047e2afd3102b6ebb8bf0a3254 100644
--- a/components/leveldb/public/cpp/remote_iterator.h
+++ b/components/leveldb/public/cpp/remote_iterator.h
@@ -6,7 +6,6 @@
#define COMPONENTS_LEVELDB_PUBLIC_CPP_REMOTE_ITERATOR_H_
#include "components/leveldb/public/interfaces/leveldb.mojom.h"
-#include "mojo/public/cpp/bindings/array.h"
#include "third_party/leveldatabase/src/include/leveldb/iterator.h"
namespace leveldb {
@@ -37,8 +36,8 @@ class RemoteIterator : public Iterator {
bool valid_;
mojom::DatabaseError status_;
- mojo::Array<uint8_t> key_;
- mojo::Array<uint8_t> value_;
+ base::Optional<std::vector<uint8_t>> key_;
+ base::Optional<std::vector<uint8_t>> value_;
DISALLOW_COPY_AND_ASSIGN(RemoteIterator);
};
« no previous file with comments | « components/leveldb/leveldb_service_unittest.cc ('k') | components/leveldb/public/cpp/remote_iterator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698