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

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

Issue 10911084: Implement Invalidator::Acknowledge (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Adapt patch to new TickClock interface Created 7 years, 9 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
« no previous file with comments | « sync/notifier/ack_tracker.cc ('k') | sync/notifier/fake_invalidator.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #ifndef SYNC_NOTIFIER_FAKE_INVALIDATOR_H_ 5 #ifndef SYNC_NOTIFIER_FAKE_INVALIDATOR_H_
6 #define SYNC_NOTIFIER_FAKE_INVALIDATOR_H_ 6 #define SYNC_NOTIFIER_FAKE_INVALIDATOR_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 16 matching lines...) Expand all
27 const ObjectIdInvalidationMap& GetLastSentInvalidationMap() const; 27 const ObjectIdInvalidationMap& GetLastSentInvalidationMap() const;
28 28
29 void EmitOnInvalidatorStateChange(InvalidatorState state); 29 void EmitOnInvalidatorStateChange(InvalidatorState state);
30 void EmitOnIncomingInvalidation( 30 void EmitOnIncomingInvalidation(
31 const ObjectIdInvalidationMap& invalidation_map); 31 const ObjectIdInvalidationMap& invalidation_map);
32 32
33 virtual void RegisterHandler(InvalidationHandler* handler) OVERRIDE; 33 virtual void RegisterHandler(InvalidationHandler* handler) OVERRIDE;
34 virtual void UpdateRegisteredIds(InvalidationHandler* handler, 34 virtual void UpdateRegisteredIds(InvalidationHandler* handler,
35 const ObjectIdSet& ids) OVERRIDE; 35 const ObjectIdSet& ids) OVERRIDE;
36 virtual void UnregisterHandler(InvalidationHandler* handler) OVERRIDE; 36 virtual void UnregisterHandler(InvalidationHandler* handler) OVERRIDE;
37 virtual void Acknowledge(const invalidation::ObjectId& id,
38 const AckHandle& ack_handle) OVERRIDE;
37 virtual InvalidatorState GetInvalidatorState() const OVERRIDE; 39 virtual InvalidatorState GetInvalidatorState() const OVERRIDE;
38 virtual void SetUniqueId(const std::string& unique_id) OVERRIDE; 40 virtual void SetUniqueId(const std::string& unique_id) OVERRIDE;
39 virtual void UpdateCredentials( 41 virtual void UpdateCredentials(
40 const std::string& email, const std::string& token) OVERRIDE; 42 const std::string& email, const std::string& token) OVERRIDE;
41 virtual void SendInvalidation( 43 virtual void SendInvalidation(
42 const ObjectIdInvalidationMap& invalidation_map) OVERRIDE; 44 const ObjectIdInvalidationMap& invalidation_map) OVERRIDE;
43 45
44 private: 46 private:
45 InvalidatorRegistrar registrar_; 47 InvalidatorRegistrar registrar_;
46 std::string unique_id_; 48 std::string unique_id_;
47 std::string state_; 49 std::string state_;
48 std::string email_; 50 std::string email_;
49 std::string token_; 51 std::string token_;
50 ObjectIdInvalidationMap last_sent_invalidation_map_; 52 ObjectIdInvalidationMap last_sent_invalidation_map_;
51 }; 53 };
52 54
53 } // namespace syncer 55 } // namespace syncer
54 56
55 #endif // SYNC_NOTIFIER_FAKE_INVALIDATOR_H_ 57 #endif // SYNC_NOTIFIER_FAKE_INVALIDATOR_H_
OLDNEW
« no previous file with comments | « sync/notifier/ack_tracker.cc ('k') | sync/notifier/fake_invalidator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698