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

Side by Side Diff: components/leveldb/util.h

Issue 1861903002: mojo leveldb: Add an iteration interface. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase + comments Created 4 years, 8 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 unified diff | Download patch
« no previous file with comments | « components/leveldb/remote_iterator_unittest.cc ('k') | components/leveldb/util.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef COMPONENTS_LEVELDB_UTIL_H_
6 #define COMPONENTS_LEVELDB_UTIL_H_
7
8 #include "components/leveldb/public/interfaces/leveldb.mojom.h"
9
10 namespace leveldb {
11
12 class Slice;
13 class Status;
14
15 DatabaseError LeveldbStatusToError(const leveldb::Status& s);
16
17 // Builds a Slice pointing to the data inside |a|. This is not a type-converter
18 // as it is not a copy operation; the returned Slice points into |a| and must
19 // outlive |a|.
20 leveldb::Slice GetSliceFor(const mojo::Array<uint8_t>& a);
21
22 } // namespace leveldb
23
24 #endif // COMPONENTS_LEVELDB_UTIL_H_
OLDNEW
« no previous file with comments | « components/leveldb/remote_iterator_unittest.cc ('k') | components/leveldb/util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698