Index: sync/notifier/invalidation_state_tracker.h |
diff --git a/sync/notifier/invalidation_state_tracker.h b/sync/notifier/invalidation_state_tracker.h |
index 81a07eae5c51555792a4b42c7c9d04272cdb3aff..22e3e6f6d004ca78ec3c7ab8951f6e58687ec2d5 100644 |
--- a/sync/notifier/invalidation_state_tracker.h |
+++ b/sync/notifier/invalidation_state_tracker.h |
@@ -30,14 +30,16 @@ class TaskRunner; |
namespace syncer { |
-class InvalidationStateTracker { |
+class SYNC_EXPORT InvalidationStateTracker { |
public: |
InvalidationStateTracker() {} |
+ virtual ~InvalidationStateTracker() {} |
// The per-client unique ID used to register the invalidation client with the |
// server. This is used to squelch invalidation notifications that originate |
- // from changes made by this client. |
- virtual void SetInvalidatorClientId(const std::string& data) = 0; |
+ // from changes made by this client. Setting the client ID clears all other |
+ // state. |
+ virtual void ClearAndSetNewClientId(const std::string& data) = 0; |
virtual std::string GetInvalidatorClientId() const = 0; |
// Used by invalidation::InvalidationClient for persistence. |data| is an |
@@ -55,9 +57,6 @@ class InvalidationStateTracker { |
// Erases invalidation versions, client ID, and state stored on disk. |
virtual void Clear() = 0; |
- |
- protected: |
- virtual ~InvalidationStateTracker() {} |
}; |
} // namespace syncer |