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

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

Issue 17911005: Merge 208347 "Revert 208315 "Make use of InvalidationService"" (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1547/src/
Patch Set: Created 7 years, 5 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/fake_invalidator.cc ('k') | sync/notifier/invalidation_notifier.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 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 Invalidator that wraps an invalidation 5 // An implementation of Invalidator that wraps an invalidation
6 // client. Handles the details of connecting to XMPP and hooking it 6 // client. Handles the details of connecting to XMPP and hooking it
7 // up to the invalidation client. 7 // up to the invalidation client.
8 // 8 //
9 // You probably don't want to use this directly; use 9 // You probably don't want to use this directly; use
10 // NonBlockingInvalidator. 10 // NonBlockingInvalidator.
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 // Invalidator implementation. 55 // Invalidator implementation.
56 virtual void RegisterHandler(InvalidationHandler* handler) OVERRIDE; 56 virtual void RegisterHandler(InvalidationHandler* handler) OVERRIDE;
57 virtual void UpdateRegisteredIds(InvalidationHandler* handler, 57 virtual void UpdateRegisteredIds(InvalidationHandler* handler,
58 const ObjectIdSet& ids) OVERRIDE; 58 const ObjectIdSet& ids) OVERRIDE;
59 virtual void UnregisterHandler(InvalidationHandler* handler) OVERRIDE; 59 virtual void UnregisterHandler(InvalidationHandler* handler) OVERRIDE;
60 virtual void Acknowledge(const invalidation::ObjectId& id, 60 virtual void Acknowledge(const invalidation::ObjectId& id,
61 const AckHandle& ack_handle) OVERRIDE; 61 const AckHandle& ack_handle) OVERRIDE;
62 virtual InvalidatorState GetInvalidatorState() const OVERRIDE; 62 virtual InvalidatorState GetInvalidatorState() const OVERRIDE;
63 virtual void UpdateCredentials( 63 virtual void UpdateCredentials(
64 const std::string& email, const std::string& token) OVERRIDE; 64 const std::string& email, const std::string& token) OVERRIDE;
65 virtual void SendInvalidation(
66 const ObjectIdInvalidationMap& invalidation_map) OVERRIDE;
65 67
66 // SyncInvalidationListener::Delegate implementation. 68 // SyncInvalidationListener::Delegate implementation.
67 virtual void OnInvalidate( 69 virtual void OnInvalidate(
68 const ObjectIdInvalidationMap& invalidation_map) OVERRIDE; 70 const ObjectIdInvalidationMap& invalidation_map) OVERRIDE;
69 virtual void OnInvalidatorStateChange(InvalidatorState state) OVERRIDE; 71 virtual void OnInvalidatorStateChange(InvalidatorState state) OVERRIDE;
70 72
71 private: 73 private:
72 // We start off in the STOPPED state. When we get our initial 74 // We start off in the STOPPED state. When we get our initial
73 // credentials, we connect and move to the CONNECTING state. When 75 // credentials, we connect and move to the CONNECTING state. When
74 // we're connected we start the invalidation client and move to the 76 // we're connected we start the invalidation client and move to the
(...skipping 29 matching lines...) Expand all
104 106
105 // The invalidation listener. 107 // The invalidation listener.
106 SyncInvalidationListener invalidation_listener_; 108 SyncInvalidationListener invalidation_listener_;
107 109
108 DISALLOW_COPY_AND_ASSIGN(InvalidationNotifier); 110 DISALLOW_COPY_AND_ASSIGN(InvalidationNotifier);
109 }; 111 };
110 112
111 } // namespace syncer 113 } // namespace syncer
112 114
113 #endif // SYNC_NOTIFIER_INVALIDATION_NOTIFIER_H_ 115 #endif // SYNC_NOTIFIER_INVALIDATION_NOTIFIER_H_
OLDNEW
« no previous file with comments | « sync/notifier/fake_invalidator.cc ('k') | sync/notifier/invalidation_notifier.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698