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

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

Issue 23582013: [SyncFS] Add MetadataDatabase::PopulateInitialData (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: buildfix Created 7 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 e57d583e3ab811902cda55ed638f6e9d7aa8cdbf..434e7a44831a8650cc0e2a0c0ec93f413039c62b 100644
--- a/chrome/browser/sync_file_system/drive_backend/metadata_database.h
+++ b/chrome/browser/sync_file_system/drive_backend/metadata_database.h
@@ -124,6 +124,21 @@ class MetadataDatabase {
int64 GetLargestChangeID() const;
+ bool HasSyncRoot() const;
+
+ // Populates empty database with initial data.
+ // Adds a file metadata and a file tracker for |sync_root_folder|, and adds
+ // file metadata and file trackers for each |app_root_folders|.
+ // Newly added tracker for |sync_root_folder| is active and non-dirty.
+ // Newly added trackers for |app_root_folders| are inactive and non-dirty.
+ // Trackers for |app_root_folders| are not yet registered as app-roots, but
+ // are ready to register.
+ void PopulateInitialData(
+ int64 largest_change_id,
+ const google_apis::FileResource& sync_root_folder,
+ const ScopedVector<google_apis::FileResource>& app_root_folders,
+ const SyncStatusCallback& callback);
+
// Registers existing folder as the app-root for |app_id|. The folder
// must be an inactive folder that does not yet associated to any App.
// This method associates the folder with |app_id| and activates it.
« 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