| 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 // 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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 // Our observers (which must live on the same thread). | 103 // Our observers (which must live on the same thread). |
| 104 ObserverList<SyncNotifierObserver> observers_; | 104 ObserverList<SyncNotifierObserver> observers_; |
| 105 | 105 |
| 106 // The client ID to pass to |chrome_invalidation_client_|. | 106 // The client ID to pass to |chrome_invalidation_client_|. |
| 107 std::string invalidation_client_id_; | 107 std::string invalidation_client_id_; |
| 108 | 108 |
| 109 // The state to pass to |chrome_invalidation_client_|. | 109 // The state to pass to |chrome_invalidation_client_|. |
| 110 std::string invalidation_state_; | 110 std::string invalidation_state_; |
| 111 | 111 |
| 112 // The XMPP connection manager. | 112 // The XMPP connection manager. |
| 113 // TODO(akalin): Use PushClient instead. |
| 113 scoped_ptr<notifier::Login> login_; | 114 scoped_ptr<notifier::Login> login_; |
| 114 | 115 |
| 115 // The invalidation client. | 116 // The invalidation client. |
| 116 ChromeInvalidationClient invalidation_client_; | 117 ChromeInvalidationClient invalidation_client_; |
| 117 | 118 |
| 118 DISALLOW_COPY_AND_ASSIGN(InvalidationNotifier); | 119 DISALLOW_COPY_AND_ASSIGN(InvalidationNotifier); |
| 119 }; | 120 }; |
| 120 | 121 |
| 121 } // namespace sync_notifier | 122 } // namespace sync_notifier |
| 122 | 123 |
| 123 #endif // SYNC_NOTIFIER_INVALIDATION_NOTIFIER_H_ | 124 #endif // SYNC_NOTIFIER_INVALIDATION_NOTIFIER_H_ |
| OLD | NEW |