| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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. |
| 11 | 11 |
| 12 #ifndef COMPONENTS_INVALIDATION_INVALIDATION_NOTIFIER_H_ | 12 #ifndef COMPONENTS_INVALIDATION_INVALIDATION_NOTIFIER_H_ |
| 13 #define COMPONENTS_INVALIDATION_INVALIDATION_NOTIFIER_H_ | 13 #define COMPONENTS_INVALIDATION_INVALIDATION_NOTIFIER_H_ |
| 14 | 14 |
| 15 #include <string> | 15 #include <string> |
| 16 | 16 |
| 17 #include "base/basictypes.h" | 17 #include "base/basictypes.h" |
| 18 #include "base/compiler_specific.h" | 18 #include "base/compiler_specific.h" |
| 19 #include "base/memory/scoped_ptr.h" | 19 #include "base/memory/scoped_ptr.h" |
| 20 #include "base/threading/non_thread_safe.h" | 20 #include "base/threading/non_thread_safe.h" |
| 21 #include "components/invalidation/invalidation_export.h" | 21 #include "components/invalidation/invalidation_export.h" |
| 22 #include "components/invalidation/invalidation_state_tracker.h" | 22 #include "components/invalidation/invalidation_state_tracker.h" |
| 23 #include "components/invalidation/invalidator.h" | 23 #include "components/invalidation/invalidator.h" |
| 24 #include "components/invalidation/invalidator_registrar.h" | 24 #include "components/invalidation/invalidator_registrar.h" |
| 25 #include "components/invalidation/sync_invalidation_listener.h" | 25 #include "components/invalidation/sync_invalidation_listener.h" |
| 26 #include "sync/internal_api/public/base/model_type.h" | |
| 27 #include "sync/internal_api/public/util/weak_handle.h" | 26 #include "sync/internal_api/public/util/weak_handle.h" |
| 28 | 27 |
| 29 namespace notifier { | 28 namespace notifier { |
| 30 class PushClient; | 29 class PushClient; |
| 31 } // namespace notifier | 30 } // namespace notifier |
| 32 | 31 |
| 33 namespace syncer { | 32 namespace syncer { |
| 34 | 33 |
| 35 // This class must live on the IO thread. | 34 // This class must live on the IO thread. |
| 36 class INVALIDATION_EXPORT_PRIVATE InvalidationNotifier | 35 class INVALIDATION_EXPORT_PRIVATE InvalidationNotifier |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 | 98 |
| 100 // The invalidation listener. | 99 // The invalidation listener. |
| 101 SyncInvalidationListener invalidation_listener_; | 100 SyncInvalidationListener invalidation_listener_; |
| 102 | 101 |
| 103 DISALLOW_COPY_AND_ASSIGN(InvalidationNotifier); | 102 DISALLOW_COPY_AND_ASSIGN(InvalidationNotifier); |
| 104 }; | 103 }; |
| 105 | 104 |
| 106 } // namespace syncer | 105 } // namespace syncer |
| 107 | 106 |
| 108 #endif // COMPONENTS_INVALIDATION_INVALIDATION_NOTIFIER_H_ | 107 #endif // COMPONENTS_INVALIDATION_INVALIDATION_NOTIFIER_H_ |
| OLD | NEW |