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

Unified Diff: components/sync/model/model_type_change_processor.h

Issue 2406163006: [Sync] Services can now always assume processor exists. (Closed)
Patch Set: Updates for Max. Created 4 years, 2 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 | « components/sync/model/fake_model_type_service.cc ('k') | components/sync/model/model_type_service.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/sync/model/model_type_change_processor.h
diff --git a/components/sync/model/model_type_change_processor.h b/components/sync/model/model_type_change_processor.h
index 7fe49048d81e852943868afbfeba391f88add11e..d1b29478068cfe2ee875698b951e862547956344 100644
--- a/components/sync/model/model_type_change_processor.h
+++ b/components/sync/model/model_type_change_processor.h
@@ -66,6 +66,11 @@ class ModelTypeChangeProcessor : public SyncErrorFactory {
// Indicates that sync is being disabled permanently for this data type. All
// metadata should be erased from storage.
virtual void DisableSync() = 0;
+
+ // Returns a boolean representing whether the processor's metadata is
+ // currently up to date and accurately tracking the model type's data. If
+ // false, calls to Put and Delete will no-op and can be omitted by services.
+ virtual bool IsTrackingMetadata() = 0;
};
} // namespace syncer
« no previous file with comments | « components/sync/model/fake_model_type_service.cc ('k') | components/sync/model/model_type_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698