summaryrefslogtreecommitdiffstats
path: root/sync/internal_api/public
diff options
context:
space:
mode:
authorhaitaol@chromium.org <haitaol@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-04-21 18:35:44 +0000
committerhaitaol@chromium.org <haitaol@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-04-21 18:35:44 +0000
commitd50311f0a8785d61a806337d842e0a48bb3e75f4 (patch)
tree2568bafe3ee83322c1e646931516ccd41d8f7e3b /sync/internal_api/public
parentbcae6b83ce10987bf5bca2fddfc9e2c058a5c4b5 (diff)
downloadchromium_src-d50311f0a8785d61a806337d842e0a48bb3e75f4.zip
chromium_src-d50311f0a8785d61a806337d842e0a48bb3e75f4.tar.gz
chromium_src-d50311f0a8785d61a806337d842e0a48bb3e75f4.tar.bz2
Add sync manager classes for backup/rollback:
* SyncBackupManager runs before first-sync to save local data in backup DB. * SyncRollbackManager deletes local data that's not found in backup DB. BUG=362679 Review URL: https://codereview.chromium.org/235053006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@265027 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'sync/internal_api/public')
-rw-r--r--sync/internal_api/public/base/model_type.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/sync/internal_api/public/base/model_type.h b/sync/internal_api/public/base/model_type.h
index 831fd2c..f412716 100644
--- a/sync/internal_api/public/base/model_type.h
+++ b/sync/internal_api/public/base/model_type.h
@@ -317,6 +317,9 @@ SYNC_EXPORT bool IsRealDataType(ModelType model_type);
// TODO(haitaol): Make entries of act-once data types immutable.
SYNC_EXPORT bool IsActOnceDataType(ModelType model_type);
+// Returns set of model types that should be backed up before first sync.
+SYNC_EXPORT ModelTypeSet BackupTypes();
+
} // namespace syncer
#endif // SYNC_INTERNAL_API_PUBLIC_BASE_MODEL_TYPE_H_