OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 // A simple wrapper around invalidation::InvalidationClient that | 5 // A simple wrapper around invalidation::InvalidationClient that |
6 // handles all the startup/shutdown details and hookups. | 6 // handles all the startup/shutdown details and hookups. |
7 | 7 |
8 #ifndef CHROME_BROWSER_SYNC_NOTIFIER_CHROME_INVALIDATION_CLIENT_H_ | 8 #ifndef CHROME_BROWSER_SYNC_NOTIFIER_CHROME_INVALIDATION_CLIENT_H_ |
9 #define CHROME_BROWSER_SYNC_NOTIFIER_CHROME_INVALIDATION_CLIENT_H_ | 9 #define CHROME_BROWSER_SYNC_NOTIFIER_CHROME_INVALIDATION_CLIENT_H_ |
10 #pragma once | 10 #pragma once |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 | 78 |
79 // Changes the task used to |base_task|, which must still be | 79 // Changes the task used to |base_task|, which must still be |
80 // non-NULL. Must only be called between calls to Start() and | 80 // non-NULL. Must only be called between calls to Start() and |
81 // Stop(). | 81 // Stop(). |
82 void ChangeBaseTask(base::WeakPtr<buzz::XmppTaskParentInterface> base_task); | 82 void ChangeBaseTask(base::WeakPtr<buzz::XmppTaskParentInterface> base_task); |
83 | 83 |
84 // Register the sync types that we're interested in getting | 84 // Register the sync types that we're interested in getting |
85 // notifications for. May be called at any time. | 85 // notifications for. May be called at any time. |
86 void RegisterTypes(const syncable::ModelTypeSet& types); | 86 void RegisterTypes(const syncable::ModelTypeSet& types); |
87 | 87 |
88 virtual void WriteState(const std::string& state); | 88 virtual void WriteState(const std::string& state) OVERRIDE; |
89 | 89 |
90 // invalidation::InvalidationListener implementation. | 90 // invalidation::InvalidationListener implementation. |
91 virtual void Ready( | 91 virtual void Ready( |
92 invalidation::InvalidationClient* client) OVERRIDE; | 92 invalidation::InvalidationClient* client) OVERRIDE; |
93 virtual void Invalidate( | 93 virtual void Invalidate( |
94 invalidation::InvalidationClient* client, | 94 invalidation::InvalidationClient* client, |
95 const invalidation::Invalidation& invalidation, | 95 const invalidation::Invalidation& invalidation, |
96 const invalidation::AckHandle& ack_handle) OVERRIDE; | 96 const invalidation::AckHandle& ack_handle) OVERRIDE; |
97 virtual void InvalidateUnknownVersion( | 97 virtual void InvalidateUnknownVersion( |
98 invalidation::InvalidationClient* client, | 98 invalidation::InvalidationClient* client, |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
140 // Stored to pass to |registration_manager_| on start. | 140 // Stored to pass to |registration_manager_| on start. |
141 syncable::ModelTypeSet registered_types_; | 141 syncable::ModelTypeSet registered_types_; |
142 bool ticl_ready_; | 142 bool ticl_ready_; |
143 | 143 |
144 DISALLOW_COPY_AND_ASSIGN(ChromeInvalidationClient); | 144 DISALLOW_COPY_AND_ASSIGN(ChromeInvalidationClient); |
145 }; | 145 }; |
146 | 146 |
147 } // namespace sync_notifier | 147 } // namespace sync_notifier |
148 | 148 |
149 #endif // CHROME_BROWSER_SYNC_NOTIFIER_CHROME_INVALIDATION_CLIENT_H_ | 149 #endif // CHROME_BROWSER_SYNC_NOTIFIER_CHROME_INVALIDATION_CLIENT_H_ |
OLD | NEW |