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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 virtual ~InvalidationNotifier(); | 43 virtual ~InvalidationNotifier(); |
44 | 44 |
45 // SyncNotifier implementation. | 45 // SyncNotifier implementation. |
46 virtual void AddObserver(SyncNotifierObserver* observer) OVERRIDE; | 46 virtual void AddObserver(SyncNotifierObserver* observer) OVERRIDE; |
47 virtual void RemoveObserver(SyncNotifierObserver* observer) OVERRIDE; | 47 virtual void RemoveObserver(SyncNotifierObserver* observer) OVERRIDE; |
48 virtual void SetUniqueId(const std::string& unique_id) OVERRIDE; | 48 virtual void SetUniqueId(const std::string& unique_id) OVERRIDE; |
49 virtual void SetState(const std::string& state) OVERRIDE; | 49 virtual void SetState(const std::string& state) OVERRIDE; |
50 virtual void UpdateCredentials( | 50 virtual void UpdateCredentials( |
51 const std::string& email, const std::string& token) OVERRIDE; | 51 const std::string& email, const std::string& token) OVERRIDE; |
52 virtual void UpdateEnabledTypes( | 52 virtual void UpdateEnabledTypes( |
53 const syncable::ModelTypeSet& types) OVERRIDE; | 53 const syncable::ModelTypeSet& enabled_types) OVERRIDE; |
54 virtual void SendNotification() OVERRIDE; | 54 virtual void SendNotification( |
| 55 const syncable::ModelTypeSet& changed_types) OVERRIDE; |
55 | 56 |
56 // notifier::LoginDelegate implementation. | 57 // notifier::LoginDelegate implementation. |
57 virtual void OnConnect(base::WeakPtr<talk_base::Task> base_task) OVERRIDE; | 58 virtual void OnConnect(base::WeakPtr<talk_base::Task> base_task) OVERRIDE; |
58 virtual void OnDisconnect() OVERRIDE; | 59 virtual void OnDisconnect() OVERRIDE; |
59 | 60 |
60 // ChromeInvalidationClient::Listener implementation. | 61 // ChromeInvalidationClient::Listener implementation. |
61 virtual void OnInvalidate( | 62 virtual void OnInvalidate( |
62 const syncable::ModelTypePayloadMap& type_payloads) OVERRIDE; | 63 const syncable::ModelTypePayloadMap& type_payloads) OVERRIDE; |
63 virtual void OnSessionStatusChanged(bool has_session) OVERRIDE; | 64 virtual void OnSessionStatusChanged(bool has_session) OVERRIDE; |
64 | 65 |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 | 100 |
100 // The invalidation client. | 101 // The invalidation client. |
101 ChromeInvalidationClient invalidation_client_; | 102 ChromeInvalidationClient invalidation_client_; |
102 | 103 |
103 DISALLOW_COPY_AND_ASSIGN(InvalidationNotifier); | 104 DISALLOW_COPY_AND_ASSIGN(InvalidationNotifier); |
104 }; | 105 }; |
105 | 106 |
106 } // namespace sync_notifier | 107 } // namespace sync_notifier |
107 | 108 |
108 #endif // CHROME_BROWSER_SYNC_NOTIFIER_INVALIDATION_NOTIFIER_H_ | 109 #endif // CHROME_BROWSER_SYNC_NOTIFIER_INVALIDATION_NOTIFIER_H_ |
OLD | NEW |