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

Unified Diff: sync/notifier/invalidator_registrar.cc

Issue 159773006: [invalidations] Added table with registered objectsIds (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@about_invalidations_clean
Patch Set: Change constness of iterators for android clang Created 6 years, 10 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 | « sync/notifier/invalidator_registrar.h ('k') | sync/notifier/non_blocking_invalidator.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/notifier/invalidator_registrar.cc
diff --git a/sync/notifier/invalidator_registrar.cc b/sync/notifier/invalidator_registrar.cc
index 1c9c50cbbf2044c06e5e483f30ad48b967035478..334505287d20de79c9993c35682a4ec6fbe3b003 100644
--- a/sync/notifier/invalidator_registrar.cc
+++ b/sync/notifier/invalidator_registrar.cc
@@ -123,6 +123,18 @@ InvalidatorState InvalidatorRegistrar::GetInvalidatorState() const {
return state_;
}
+std::map<std::string, ObjectIdSet>
+InvalidatorRegistrar::GetSanitizedHandlersIdsMap() {
+ DCHECK(thread_checker_.CalledOnValidThread());
+ std::map<std::string, ObjectIdSet> clean_handlers_to_ids;
+ for (HandlerIdsMap::const_iterator it = handler_to_ids_map_.begin();
+ it != handler_to_ids_map_.end();
+ ++it) {
+ clean_handlers_to_ids[it->first->GetOwnerName()] = ObjectIdSet(it->second);
+ }
+ return clean_handlers_to_ids;
+}
+
bool InvalidatorRegistrar::IsHandlerRegisteredForTest(
InvalidationHandler* handler) const {
DCHECK(thread_checker_.CalledOnValidThread());
« no previous file with comments | « sync/notifier/invalidator_registrar.h ('k') | sync/notifier/non_blocking_invalidator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698