summaryrefslogtreecommitdiffstats
path: root/sync/notifier/p2p_invalidator.h
diff options
context:
space:
mode:
authordcheng@chromium.org <dcheng@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-03-05 03:51:44 +0000
committerdcheng@chromium.org <dcheng@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-03-05 03:51:44 +0000
commitce2e906005c7d6664518ff9b1e541733ed251ace (patch)
treef34377f83975fcc5d289491ba7d2828eebedf52b /sync/notifier/p2p_invalidator.h
parentb86d3ec7994792d30c1a54d8b25579ad8eded24f (diff)
downloadchromium_src-ce2e906005c7d6664518ff9b1e541733ed251ace.zip
chromium_src-ce2e906005c7d6664518ff9b1e541733ed251ace.tar.gz
chromium_src-ce2e906005c7d6664518ff9b1e541733ed251ace.tar.bz2
Implement Invalidator::Acknowledge.
We implement this by creating a local queue of entries we've received invalidations for and then immediately acknowledging to Tango. When InvalidationHandlers acknowledge that they've finished processing for an id, we erase their entry from the queue; otherwise, we send reminder invalidations on an exponentially increasing delay. BUG=124149 Review URL: https://chromiumcodereview.appspot.com/10911084 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@186079 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'sync/notifier/p2p_invalidator.h')
-rw-r--r--sync/notifier/p2p_invalidator.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sync/notifier/p2p_invalidator.h b/sync/notifier/p2p_invalidator.h
index cfb9644..952299f 100644
--- a/sync/notifier/p2p_invalidator.h
+++ b/sync/notifier/p2p_invalidator.h
@@ -102,6 +102,8 @@ class SYNC_EXPORT_PRIVATE P2PInvalidator
virtual void UpdateRegisteredIds(InvalidationHandler* handler,
const ObjectIdSet& ids) OVERRIDE;
virtual void UnregisterHandler(InvalidationHandler* handler) OVERRIDE;
+ virtual void Acknowledge(const invalidation::ObjectId& id,
+ const AckHandle& ack_handle) OVERRIDE;
virtual InvalidatorState GetInvalidatorState() const OVERRIDE;
virtual void SetUniqueId(const std::string& unique_id) OVERRIDE;
virtual void UpdateCredentials(