summaryrefslogtreecommitdiffstats
path: root/sync/sync_notifier.gypi
diff options
context:
space:
mode:
authorrlarocque@chromium.org <rlarocque@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-10-04 03:51:01 +0000
committerrlarocque@chromium.org <rlarocque@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-10-04 03:51:01 +0000
commit163d063581234f5b22fb8412ccbd47d772b31b22 (patch)
tree200dbe509a421665a43411987ca8788c1fe1efcf /sync/sync_notifier.gypi
parenteb805dc5dd911e0ea1cf2c0ada33a6fe169e11f1 (diff)
downloadchromium_src-163d063581234f5b22fb8412ccbd47d772b31b22.zip
chromium_src-163d063581234f5b22fb8412ccbd47d772b31b22.tar.gz
chromium_src-163d063581234f5b22fb8412ccbd47d772b31b22.tar.bz2
Refactor common invalidation framework types
Convert the Invalidation struct into a class. This allows us to hide its members, so we can do things like add a DCHECK to make sure we never access the payload field of an unknown version invalidation. It also lets us use factory methods and constructors to initialize it rather than having to initialize its fields one by one. Convert the ObjectIdInvalidationMap from a typedef into a class. Unlike the typedef, the class supports multiple invalidations for the same object ID. It uses the newly introduced SingleObjectInvalidationSet to manage the set of invalidations belonging to a particular ID. Note that the current code still sends only one invalidation per type; that will be changed in a future commit. The end goal of this refactoring is to make these classes smarter so they can help manage the complexity that will be introduced when we implement invalidation 'trickles' support. Note that this commit changes the on-disk format for invalidations, so any invalidations currently stored in the profile may be lost on upgrade. There should be no other notable changes to invalidations behavior in this CL. TBR=brettw BUG=233437 Review URL: https://codereview.chromium.org/23441042 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@226949 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'sync/sync_notifier.gypi')
-rw-r--r--sync/sync_notifier.gypi2
1 files changed, 2 insertions, 0 deletions
diff --git a/sync/sync_notifier.gypi b/sync/sync_notifier.gypi
index ba40772..365ed33 100644
--- a/sync/sync_notifier.gypi
+++ b/sync/sync_notifier.gypi
@@ -35,6 +35,8 @@
'notifier/invalidator_state.h',
'notifier/object_id_invalidation_map.cc',
'notifier/object_id_invalidation_map.h',
+ 'notifier/single_object_invalidation_set.cc',
+ 'notifier/single_object_invalidation_set.h',
],
'conditions': [
['OS != "android"', {