| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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 Invalidator that wraps an invalidation | 5 // An implementation of Invalidator 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 // NonBlockingInvalidator. | 10 // NonBlockingInvalidator. |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 namespace syncer { | 33 namespace syncer { |
| 34 | 34 |
| 35 // This class must live on the IO thread. | 35 // This class must live on the IO thread. |
| 36 class SYNC_EXPORT_PRIVATE InvalidationNotifier | 36 class SYNC_EXPORT_PRIVATE InvalidationNotifier |
| 37 : public Invalidator, | 37 : public Invalidator, |
| 38 public SyncInvalidationListener::Delegate, | 38 public SyncInvalidationListener::Delegate, |
| 39 public base::NonThreadSafe { | 39 public base::NonThreadSafe { |
| 40 public: | 40 public: |
| 41 // |invalidation_state_tracker| must be initialized. | 41 // |invalidation_state_tracker| must be initialized. |
| 42 InvalidationNotifier( | 42 InvalidationNotifier( |
| 43 scoped_ptr<notifier::PushClient> push_client, | 43 scoped_ptr<SyncNetworkChannel> network_channel, |
| 44 const std::string& invalidator_client_id, | 44 const std::string& invalidator_client_id, |
| 45 const UnackedInvalidationsMap& saved_invalidations, | 45 const UnackedInvalidationsMap& saved_invalidations, |
| 46 const std::string& invalidation_bootstrap_data, | 46 const std::string& invalidation_bootstrap_data, |
| 47 const WeakHandle<InvalidationStateTracker>& | 47 const WeakHandle<InvalidationStateTracker>& |
| 48 invalidation_state_tracker, | 48 invalidation_state_tracker, |
| 49 const std::string& client_info); | 49 const std::string& client_info); |
| 50 | 50 |
| 51 virtual ~InvalidationNotifier(); | 51 virtual ~InvalidationNotifier(); |
| 52 | 52 |
| 53 // Invalidator implementation. | 53 // Invalidator implementation. |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 | 96 |
| 97 // The invalidation listener. | 97 // The invalidation listener. |
| 98 SyncInvalidationListener invalidation_listener_; | 98 SyncInvalidationListener invalidation_listener_; |
| 99 | 99 |
| 100 DISALLOW_COPY_AND_ASSIGN(InvalidationNotifier); | 100 DISALLOW_COPY_AND_ASSIGN(InvalidationNotifier); |
| 101 }; | 101 }; |
| 102 | 102 |
| 103 } // namespace syncer | 103 } // namespace syncer |
| 104 | 104 |
| 105 #endif // SYNC_NOTIFIER_INVALIDATION_NOTIFIER_H_ | 105 #endif // SYNC_NOTIFIER_INVALIDATION_NOTIFIER_H_ |
| OLD | NEW |