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

Side by Side Diff: sync/notifier/p2p_invalidator.h

Issue 10911084: Implement Invalidator::Acknowledge (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 3 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 // 4 //
5 // An invalidator that uses p2p invalidations based on XMPP push 5 // An invalidator that uses p2p invalidations based on XMPP push
6 // notifications. Used only for sync integration tests. 6 // notifications. Used only for sync integration tests.
7 7
8 #ifndef SYNC_NOTIFIER_P2P_INVALIDATOR_H_ 8 #ifndef SYNC_NOTIFIER_P2P_INVALIDATOR_H_
9 #define SYNC_NOTIFIER_P2P_INVALIDATOR_H_ 9 #define SYNC_NOTIFIER_P2P_INVALIDATOR_H_
10 10
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 P2PInvalidator(scoped_ptr<notifier::PushClient> push_client, 98 P2PInvalidator(scoped_ptr<notifier::PushClient> push_client,
99 P2PNotificationTarget send_notification_target); 99 P2PNotificationTarget send_notification_target);
100 100
101 virtual ~P2PInvalidator(); 101 virtual ~P2PInvalidator();
102 102
103 // Invalidator implementation. 103 // Invalidator implementation.
104 virtual void RegisterHandler(InvalidationHandler* handler) OVERRIDE; 104 virtual void RegisterHandler(InvalidationHandler* handler) OVERRIDE;
105 virtual void UpdateRegisteredIds(InvalidationHandler* handler, 105 virtual void UpdateRegisteredIds(InvalidationHandler* handler,
106 const ObjectIdSet& ids) OVERRIDE; 106 const ObjectIdSet& ids) OVERRIDE;
107 virtual void UnregisterHandler(InvalidationHandler* handler) OVERRIDE; 107 virtual void UnregisterHandler(InvalidationHandler* handler) OVERRIDE;
108 virtual void Acknowledge(const invalidation::ObjectId& id,
109 const AckHandle& ack_handle) OVERRIDE;
108 virtual InvalidatorState GetInvalidatorState() const OVERRIDE; 110 virtual InvalidatorState GetInvalidatorState() const OVERRIDE;
109 virtual void SetUniqueId(const std::string& unique_id) OVERRIDE; 111 virtual void SetUniqueId(const std::string& unique_id) OVERRIDE;
110 virtual void SetStateDeprecated(const std::string& state) OVERRIDE; 112 virtual void SetStateDeprecated(const std::string& state) OVERRIDE;
111 virtual void UpdateCredentials( 113 virtual void UpdateCredentials(
112 const std::string& email, const std::string& token) OVERRIDE; 114 const std::string& email, const std::string& token) OVERRIDE;
113 virtual void SendInvalidation(const ObjectIdStateMap& id_state_map) OVERRIDE; 115 virtual void SendInvalidation(const ObjectIdStateMap& id_state_map) OVERRIDE;
114 116
115 // PushClientObserver implementation. 117 // PushClientObserver implementation.
116 virtual void OnNotificationsEnabled() OVERRIDE; 118 virtual void OnNotificationsEnabled() OVERRIDE;
117 virtual void OnNotificationsDisabled( 119 virtual void OnNotificationsDisabled(
(...skipping 20 matching lines...) Expand all
138 bool notifications_enabled_; 140 bool notifications_enabled_;
139 // Which set of clients should be sent notifications. 141 // Which set of clients should be sent notifications.
140 P2PNotificationTarget send_notification_target_; 142 P2PNotificationTarget send_notification_target_;
141 143
142 DISALLOW_COPY_AND_ASSIGN(P2PInvalidator); 144 DISALLOW_COPY_AND_ASSIGN(P2PInvalidator);
143 }; 145 };
144 146
145 } // namespace syncer 147 } // namespace syncer
146 148
147 #endif // SYNC_NOTIFIER_P2P_INVALIDATOR_H_ 149 #endif // SYNC_NOTIFIER_P2P_INVALIDATOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698