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

Side by Side Diff: sync/notifier/non_blocking_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
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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 implementation of SyncNotifier that wraps InvalidationNotifier 5 // An implementation of SyncNotifier that wraps InvalidationNotifier
6 // on its own thread. 6 // on its own thread.
7 7
8 #ifndef SYNC_NOTIFIER_NON_BLOCKING_INVALIDATOR_H_ 8 #ifndef SYNC_NOTIFIER_NON_BLOCKING_INVALIDATOR_H_
9 #define SYNC_NOTIFIER_NON_BLOCKING_INVALIDATOR_H_ 9 #define SYNC_NOTIFIER_NON_BLOCKING_INVALIDATOR_H_
10 10
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 invalidation_state_tracker, 44 invalidation_state_tracker,
45 const std::string& client_info); 45 const std::string& client_info);
46 46
47 virtual ~NonBlockingInvalidator(); 47 virtual ~NonBlockingInvalidator();
48 48
49 // Invalidator implementation. 49 // Invalidator implementation.
50 virtual void RegisterHandler(InvalidationHandler* handler) OVERRIDE; 50 virtual void RegisterHandler(InvalidationHandler* handler) OVERRIDE;
51 virtual void UpdateRegisteredIds(InvalidationHandler* handler, 51 virtual void UpdateRegisteredIds(InvalidationHandler* handler,
52 const ObjectIdSet& ids) OVERRIDE; 52 const ObjectIdSet& ids) OVERRIDE;
53 virtual void UnregisterHandler(InvalidationHandler* handler) OVERRIDE; 53 virtual void UnregisterHandler(InvalidationHandler* handler) OVERRIDE;
54 virtual void Acknowledge(const invalidation::ObjectId& id,
55 const AckHandle& ack_handle) OVERRIDE;
54 virtual InvalidatorState GetInvalidatorState() const OVERRIDE; 56 virtual InvalidatorState GetInvalidatorState() const OVERRIDE;
55 virtual void SetUniqueId(const std::string& unique_id) OVERRIDE; 57 virtual void SetUniqueId(const std::string& unique_id) OVERRIDE;
56 virtual void UpdateCredentials( 58 virtual void UpdateCredentials(
57 const std::string& email, const std::string& token) OVERRIDE; 59 const std::string& email, const std::string& token) OVERRIDE;
58 virtual void SendInvalidation( 60 virtual void SendInvalidation(
59 const ObjectIdInvalidationMap& invalidation_map) OVERRIDE; 61 const ObjectIdInvalidationMap& invalidation_map) OVERRIDE;
60 62
61 // InvalidationHandler implementation. 63 // InvalidationHandler implementation.
62 virtual void OnInvalidatorStateChange(InvalidatorState state) OVERRIDE; 64 virtual void OnInvalidatorStateChange(InvalidatorState state) OVERRIDE;
63 virtual void OnIncomingInvalidation( 65 virtual void OnIncomingInvalidation(
(...skipping 11 matching lines...) Expand all
75 scoped_refptr<Core> core_; 77 scoped_refptr<Core> core_;
76 scoped_refptr<base::SingleThreadTaskRunner> parent_task_runner_; 78 scoped_refptr<base::SingleThreadTaskRunner> parent_task_runner_;
77 scoped_refptr<base::SingleThreadTaskRunner> network_task_runner_; 79 scoped_refptr<base::SingleThreadTaskRunner> network_task_runner_;
78 80
79 DISALLOW_COPY_AND_ASSIGN(NonBlockingInvalidator); 81 DISALLOW_COPY_AND_ASSIGN(NonBlockingInvalidator);
80 }; 82 };
81 83
82 } // namespace syncer 84 } // namespace syncer
83 85
84 #endif // SYNC_NOTIFIER_NON_BLOCKING_INVALIDATOR_H_ 86 #endif // SYNC_NOTIFIER_NON_BLOCKING_INVALIDATOR_H_
OLDNEW
« no previous file with comments | « sync/notifier/invalidator_registrar_unittest.cc ('k') | sync/notifier/non_blocking_invalidator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698