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

Unified Diff: components/sync_driver/data_type_controller.h

Issue 1848793006: [Sync] Register USS types with ModelTypeRegistry before download (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix build. 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 side-by-side diff with in-line comments
Download patch
Index: components/sync_driver/data_type_controller.h
diff --git a/components/sync_driver/data_type_controller.h b/components/sync_driver/data_type_controller.h
index 0c1a61d22a6619621cf5a59cfb4f55c2106a594c..3c75fa4307c286fd061dc0d699c18cc0bf449e55 100644
--- a/components/sync_driver/data_type_controller.h
+++ b/components/sync_driver/data_type_controller.h
@@ -98,6 +98,12 @@ class DataTypeController
// the models are ready.
virtual void LoadModels(const ModelLoadCallback& model_load_callback) = 0;
+ // Registers with sync backend if needed. This function is called by
+ // DataTypeManager before downloading initial data. Non-blocking types need to
+ // pass activation context containing progress marker to sync backend before
+ // initial download starts.
+ virtual void RegisterWithBackend(BackendDataTypeConfigurer* configurer) = 0;
+
// Will start a potentially asynchronous operation to perform the
// model association. Once the model association is done the callback will
// be invoked.
« no previous file with comments | « components/sync_driver/backend_data_type_configurer.h ('k') | components/sync_driver/data_type_manager_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698