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

Unified Diff: sync/api/sync_change_processor.h

Issue 220043002: [Sync] Add sync api support for context changes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 years, 9 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 | « chrome/browser/sync/glue/shared_change_processor_ref.cc ('k') | sync/api/sync_change_processor.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/api/sync_change_processor.h
diff --git a/sync/api/sync_change_processor.h b/sync/api/sync_change_processor.h
index 3cdf6a8c2b701e45aac2ea7cb674c963a54cfd00..efc35f7d75528b26c5ab7bd5cfc3547282be2770 100644
--- a/sync/api/sync_change_processor.h
+++ b/sync/api/sync_change_processor.h
@@ -63,6 +63,12 @@ class SYNC_EXPORT SyncChangeProcessor {
virtual void GetSyncData(const ModelType& type,
const std::string& sync_tag,
const GetSyncDataCallback& callback) const {}
+
+ // Updates the context for |type|. Default implementation does nothing.
+ // A type's context is a per-client blob that can affect all SyncData
+ // sent to/from the server, much like a cookie.
+ virtual syncer::SyncError UpdateDataTypeContext(ModelType type,
+ const std::string& context);
};
} // namespace syncer
« no previous file with comments | « chrome/browser/sync/glue/shared_change_processor_ref.cc ('k') | sync/api/sync_change_processor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698