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

Unified Diff: sync/notifier/fake_invalidator.cc

Issue 11052007: Rename ModelType/ObjectIdStateMap to InvalidationMap. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 2 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/fake_invalidator.h ('k') | sync/notifier/fake_invalidator_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/notifier/fake_invalidator.cc
diff --git a/sync/notifier/fake_invalidator.cc b/sync/notifier/fake_invalidator.cc
index c2b71350e03c9f4e491bcee2acb31f6364c69566..1a99819e4903f7c4e1ba5a045b9da2dbe8628254 100644
--- a/sync/notifier/fake_invalidator.cc
+++ b/sync/notifier/fake_invalidator.cc
@@ -35,8 +35,9 @@ const std::string& FakeInvalidator::GetCredentialsToken() const {
return token_;
}
-const ObjectIdStateMap& FakeInvalidator::GetLastSentIdStateMap() const {
- return last_sent_id_state_map_;
+const ObjectIdInvalidationMap&
+FakeInvalidator::GetLastSentInvalidationMap() const {
+ return last_sent_invalidation_map_;
}
void FakeInvalidator::EmitOnInvalidatorStateChange(InvalidatorState state) {
@@ -44,9 +45,9 @@ void FakeInvalidator::EmitOnInvalidatorStateChange(InvalidatorState state) {
}
void FakeInvalidator::EmitOnIncomingInvalidation(
- const ObjectIdStateMap& id_state_map,
+ const ObjectIdInvalidationMap& invalidation_map,
IncomingInvalidationSource source) {
- registrar_.DispatchInvalidationsToHandlers(id_state_map, source);
+ registrar_.DispatchInvalidationsToHandlers(invalidation_map, source);
}
void FakeInvalidator::RegisterHandler(InvalidationHandler* handler) {
@@ -80,8 +81,9 @@ void FakeInvalidator::UpdateCredentials(
token_ = token;
}
-void FakeInvalidator::SendInvalidation(const ObjectIdStateMap& id_state_map) {
- last_sent_id_state_map_ = id_state_map;
+void FakeInvalidator::SendInvalidation(
+ const ObjectIdInvalidationMap& invalidation_map) {
+ last_sent_invalidation_map_ = invalidation_map;
}
} // namespace syncer
« no previous file with comments | « sync/notifier/fake_invalidator.h ('k') | sync/notifier/fake_invalidator_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698