OLD | NEW |
---|---|
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 CHROME_BROWSER_SYNC_INVALIDATION_FRONTEND_H_ | 5 #ifndef CHROME_BROWSER_SYNC_INVALIDATION_FRONTEND_H_ |
6 #define CHROME_BROWSER_SYNC_INVALIDATION_FRONTEND_H_ | 6 #define CHROME_BROWSER_SYNC_INVALIDATION_FRONTEND_H_ |
7 | 7 |
8 #include "sync/notifier/invalidation_util.h" | 8 #include "sync/notifier/invalidation_util.h" |
9 | 9 |
10 namespace syncer { | 10 namespace syncer { |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
75 const syncer::ObjectIdSet& ids) = 0; | 75 const syncer::ObjectIdSet& ids) = 0; |
76 | 76 |
77 // Stops sending notifications to |handler|. |handler| must not be NULL, and | 77 // Stops sending notifications to |handler|. |handler| must not be NULL, and |
78 // it must already be registered. Note that this doesn't unregister the IDs | 78 // it must already be registered. Note that this doesn't unregister the IDs |
79 // associated with |handler|. | 79 // associated with |handler|. |
80 // | 80 // |
81 // Handler registrations are persisted across restarts of sync. | 81 // Handler registrations are persisted across restarts of sync. |
82 virtual void UnregisterInvalidationHandler( | 82 virtual void UnregisterInvalidationHandler( |
83 syncer::InvalidationHandler* handler) = 0; | 83 syncer::InvalidationHandler* handler) = 0; |
84 | 84 |
85 // TODO(dcheng): Add a comment. | |
akalin
2012/10/19 13:27:16
!
dcheng
2012/10/19 19:38:11
Done.
| |
86 virtual void AcknowledgeInvalidation(const invalidation::ObjectId& id, | |
87 const syncer::AckHandle& ack_handle) = 0; | |
88 | |
85 // Returns the current invalidator state. When called from within | 89 // Returns the current invalidator state. When called from within |
86 // InvalidationHandler::OnInvalidatorStateChange(), this must return | 90 // InvalidationHandler::OnInvalidatorStateChange(), this must return |
87 // the updated state. | 91 // the updated state. |
88 virtual syncer::InvalidatorState GetInvalidatorState() const = 0; | 92 virtual syncer::InvalidatorState GetInvalidatorState() const = 0; |
89 | 93 |
90 protected: | 94 protected: |
91 virtual ~InvalidationFrontend() { } | 95 virtual ~InvalidationFrontend() { } |
92 }; | 96 }; |
93 | 97 |
94 #endif // CHROME_BROWSER_SYNC_INVALIDATION_FRONTEND_H_ | 98 #endif // CHROME_BROWSER_SYNC_INVALIDATION_FRONTEND_H_ |
OLD | NEW |