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 // An implementation of SyncNotifier that wraps an invalidation | 5 // An implementation of SyncNotifier 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 // NonBlockingInvalidationNotifier. | 10 // NonBlockingInvalidationNotifier. |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 virtual ~InvalidationNotifier(); | 49 virtual ~InvalidationNotifier(); |
50 | 50 |
51 // SyncNotifier implementation. | 51 // SyncNotifier implementation. |
52 virtual void AddObserver(SyncNotifierObserver* observer) OVERRIDE; | 52 virtual void AddObserver(SyncNotifierObserver* observer) OVERRIDE; |
53 virtual void RemoveObserver(SyncNotifierObserver* observer) OVERRIDE; | 53 virtual void RemoveObserver(SyncNotifierObserver* observer) OVERRIDE; |
54 virtual void SetUniqueId(const std::string& unique_id) OVERRIDE; | 54 virtual void SetUniqueId(const std::string& unique_id) OVERRIDE; |
55 virtual void SetState(const std::string& state) OVERRIDE; | 55 virtual void SetState(const std::string& state) OVERRIDE; |
56 virtual void UpdateCredentials( | 56 virtual void UpdateCredentials( |
57 const std::string& email, const std::string& token) OVERRIDE; | 57 const std::string& email, const std::string& token) OVERRIDE; |
58 virtual void UpdateEnabledTypes( | 58 virtual void UpdateEnabledTypes( |
59 syncable::ModelEnumSet enabled_types) OVERRIDE; | 59 syncable::ModelTypeSet enabled_types) OVERRIDE; |
60 virtual void SendNotification( | 60 virtual void SendNotification( |
61 syncable::ModelEnumSet changed_types) OVERRIDE; | 61 syncable::ModelTypeSet changed_types) OVERRIDE; |
62 | 62 |
63 // notifier::LoginDelegate implementation. | 63 // notifier::LoginDelegate implementation. |
64 virtual void OnConnect( | 64 virtual void OnConnect( |
65 base::WeakPtr<buzz::XmppTaskParentInterface> base_task) OVERRIDE; | 65 base::WeakPtr<buzz::XmppTaskParentInterface> base_task) OVERRIDE; |
66 virtual void OnDisconnect() OVERRIDE; | 66 virtual void OnDisconnect() OVERRIDE; |
67 | 67 |
68 // ChromeInvalidationClient::Listener implementation. | 68 // ChromeInvalidationClient::Listener implementation. |
69 virtual void OnInvalidate( | 69 virtual void OnInvalidate( |
70 const syncable::ModelTypePayloadMap& type_payloads) OVERRIDE; | 70 const syncable::ModelTypePayloadMap& type_payloads) OVERRIDE; |
71 virtual void OnSessionStatusChanged(bool has_session) OVERRIDE; | 71 virtual void OnSessionStatusChanged(bool has_session) OVERRIDE; |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 | 114 |
115 // The invalidation client. | 115 // The invalidation client. |
116 ChromeInvalidationClient invalidation_client_; | 116 ChromeInvalidationClient invalidation_client_; |
117 | 117 |
118 DISALLOW_COPY_AND_ASSIGN(InvalidationNotifier); | 118 DISALLOW_COPY_AND_ASSIGN(InvalidationNotifier); |
119 }; | 119 }; |
120 | 120 |
121 } // namespace sync_notifier | 121 } // namespace sync_notifier |
122 | 122 |
123 #endif // CHROME_BROWSER_SYNC_NOTIFIER_INVALIDATION_NOTIFIER_H_ | 123 #endif // CHROME_BROWSER_SYNC_NOTIFIER_INVALIDATION_NOTIFIER_H_ |
OLD | NEW |