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

Unified Diff: sync/api/sync_change.h

Issue 220043002: [Sync] Add sync api support for context changes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Self review 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 | « no previous file | sync/api/sync_change.cc » ('j') | sync/api/sync_change.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/api/sync_change.h
diff --git a/sync/api/sync_change.h b/sync/api/sync_change.h
index 8751fa1ea1b68d58aba469230d320254b63c7c05..6c9e95dd16275a91a34b6da5e0c95bac9a515d27 100644
--- a/sync/api/sync_change.h
+++ b/sync/api/sync_change.h
@@ -15,8 +15,9 @@
namespace syncer {
-// A SyncChange object reflects a change to a piece of synced data. The change
-// can be either a delete, add, or an update. All data relevant to the change
+// A SyncChange object reflects a change to a piece of synced data. If the
+// change is to a a sync entity, the change can be either a delete, add, or an
maniscalco 2014/03/31 23:59:16 nit: s/to a a/to a/
maniscalco 2014/03/31 23:59:16 nit: s/either //
Nicolas Zea 2014/04/02 18:34:36 Done.
Nicolas Zea 2014/04/02 18:34:36 Done.
+// update. Context changes are always updates. All data relevant to the change
// is encapsulated within the SyncChange, which, once created, is immutable.
// Note: it is safe and cheap to pass these by value or make copies, as they do
// not create deep copies of their internal data.
@@ -27,6 +28,7 @@ class SYNC_EXPORT SyncChange {
ACTION_ADD,
ACTION_UPDATE,
ACTION_DELETE,
+ CONTEXT_UPDATE,
maniscalco 2014/03/31 23:59:16 It would be helpful to have a comment somewhere (h
maniscalco 2014/03/31 23:59:16 I would have expected this to be called ACTION_CON
Nicolas Zea 2014/04/02 18:34:36 I was kind of thinking to leave the ACTION_ prefix
Nicolas Zea 2014/04/02 18:34:36 Done.
maniscalco 2014/04/02 21:13:09 I'm OK with that distinction. My thinking here wa
};
// Default constructor creates an invalid change.
« no previous file with comments | « no previous file | sync/api/sync_change.cc » ('j') | sync/api/sync_change.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698