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

Unified Diff: sync/notifier/p2p_invalidator.h

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/object_id_state_map_test_util.cc ('k') | sync/notifier/p2p_invalidator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/notifier/p2p_invalidator.h
diff --git a/sync/notifier/p2p_invalidator.h b/sync/notifier/p2p_invalidator.h
index dd462eff9f43beff7647c1e5329bbccec5d8a023..bbcbcf53fe7784fc2a018d202afc85b5c1f70bf4 100644
--- a/sync/notifier/p2p_invalidator.h
+++ b/sync/notifier/p2p_invalidator.h
@@ -56,7 +56,7 @@ class P2PNotificationData {
P2PNotificationData();
P2PNotificationData(const std::string& sender_id,
P2PNotificationTarget target,
- const ObjectIdStateMap& id_state_map,
+ const ObjectIdInvalidationMap& invalidation_map,
IncomingInvalidationSource source);
~P2PNotificationData();
@@ -64,7 +64,7 @@ class P2PNotificationData {
// Returns true if the given ID is targeted by this notification.
bool IsTargeted(const std::string& id) const;
- const ObjectIdStateMap& GetIdStateMap() const;
+ const ObjectIdInvalidationMap& GetIdInvalidationMap() const;
IncomingInvalidationSource GetSource() const;
@@ -81,8 +81,8 @@ class P2PNotificationData {
std::string sender_id_;
// The intendent recipient(s) of the notification.
P2PNotificationTarget target_;
- // The state map for the notification.
- ObjectIdStateMap id_state_map_;
+ // The invalidation map for the notification.
+ ObjectIdInvalidationMap invalidation_map_;
// The source of the invalidation.
IncomingInvalidationSource source_;
};
@@ -110,7 +110,8 @@ class P2PInvalidator : public Invalidator,
virtual void SetStateDeprecated(const std::string& state) OVERRIDE;
virtual void UpdateCredentials(
const std::string& email, const std::string& token) OVERRIDE;
- virtual void SendInvalidation(const ObjectIdStateMap& id_state_map) OVERRIDE;
+ virtual void SendInvalidation(
+ const ObjectIdInvalidationMap& invalidation_map) OVERRIDE;
// PushClientObserver implementation.
virtual void OnNotificationsEnabled() OVERRIDE;
« no previous file with comments | « sync/notifier/object_id_state_map_test_util.cc ('k') | sync/notifier/p2p_invalidator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698