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

Unified Diff: components/leveldb_proto/leveldb_database.h

Issue 735823004: Make ProtoDatabase properly handle failed Init (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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 | « no previous file | components/leveldb_proto/leveldb_database.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/leveldb_proto/leveldb_database.h
diff --git a/components/leveldb_proto/leveldb_database.h b/components/leveldb_proto/leveldb_database.h
index 187a687015e42781aa64700614f88af44c211fe3..faa8199fe1dde43508d08654db7c17a0c09d6a32 100644
--- a/components/leveldb_proto/leveldb_database.h
+++ b/components/leveldb_proto/leveldb_database.h
@@ -15,6 +15,7 @@
namespace leveldb {
class DB;
+struct Options;
} // namespace leveldb
namespace leveldb_proto {
@@ -27,6 +28,8 @@ class LevelDB {
LevelDB();
virtual ~LevelDB();
+ virtual bool InitWithOptions(const base::FilePath& database_dir,
+ const leveldb::Options& options);
virtual bool Init(const base::FilePath& database_dir);
virtual bool Save(const base::StringPairs& pairs_to_save,
const std::vector<std::string>& keys_to_remove);
« no previous file with comments | « no previous file | components/leveldb_proto/leveldb_database.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698