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

Unified Diff: chrome/browser/sync_file_system/drive_backend/metadata_database.h

Issue 542233003: [SyncFS] Make on-disk version default for metadata database index (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 years, 3 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 | « no previous file | chrome/browser/sync_file_system/drive_backend/metadata_database.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sync_file_system/drive_backend/metadata_database.h
diff --git a/chrome/browser/sync_file_system/drive_backend/metadata_database.h b/chrome/browser/sync_file_system/drive_backend/metadata_database.h
index 99e967b00e82e5d17cf528e31dd85f74af3bfede..aec156fae1ffde76b8c1fdca3cc850f5760ea68b 100644
--- a/chrome/browser/sync_file_system/drive_backend/metadata_database.h
+++ b/chrome/browser/sync_file_system/drive_backend/metadata_database.h
@@ -139,6 +139,7 @@ class MetadataDatabase {
const CreateCallback& callback);
static SyncStatusCode CreateForTesting(
scoped_ptr<LevelDBWrapper> db,
+ bool enable_on_disk_index,
scoped_ptr<MetadataDatabase>* metadata_database_out);
~MetadataDatabase();
@@ -358,6 +359,7 @@ class MetadataDatabase {
MetadataDatabase(
const scoped_refptr<base::SequencedTaskRunner>& worker_task_runner,
const base::FilePath& database_path,
+ bool enable_on_disk_index,
leveldb::Env* env_override);
static void CreateOnWorkerTaskRunner(
scoped_ptr<CreateParam> create_param,
@@ -418,6 +420,8 @@ class MetadataDatabase {
leveldb::Env* env_override_;
scoped_ptr<LevelDBWrapper> db_;
+ bool enable_on_disk_index_;
+
int64 largest_known_change_id_;
scoped_ptr<MetadataDatabaseIndexInterface> index_;
« no previous file with comments | « no previous file | chrome/browser/sync_file_system/drive_backend/metadata_database.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698