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

Unified Diff: sync/notifier/object_id_invalidation_map.cc

Issue 56113003: Implement new invalidations ack tracking system (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Modify drive TODO comment + rebase Created 7 years, 1 month 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 | « sync/notifier/object_id_invalidation_map.h ('k') | sync/notifier/p2p_invalidator.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/notifier/object_id_invalidation_map.cc
diff --git a/sync/notifier/object_id_invalidation_map.cc b/sync/notifier/object_id_invalidation_map.cc
index e1f584d0e4eb812b329dc2cb33e48cfe6dde3da4..1082eaa29be1f85f971e53955bd15a8524e84eb2 100644
--- a/sync/notifier/object_id_invalidation_map.cc
+++ b/sync/notifier/object_id_invalidation_map.cc
@@ -64,6 +64,15 @@ void ObjectIdInvalidationMap::GetAllInvalidations(
out->insert(out->begin(), it->second.begin(), it->second.end());
}
}
+void ObjectIdInvalidationMap::AcknowledgeAll() const {
+ for (IdToListMap::const_iterator it1 = map_.begin();
+ it1 != map_.end(); ++it1) {
+ for (SingleObjectInvalidationSet::const_iterator it2 = it1->second.begin();
+ it2 != it1->second.end(); ++it2) {
+ it2->Acknowledge();
+ }
+ }
+}
bool ObjectIdInvalidationMap::operator==(
const ObjectIdInvalidationMap& other) const {
« no previous file with comments | « sync/notifier/object_id_invalidation_map.h ('k') | sync/notifier/p2p_invalidator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698