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 SyncNotifier that wraps InvalidationNotifier | 5 // An implementation of SyncNotifier that wraps InvalidationNotifier |
6 // on its own thread. | 6 // on its own thread. |
7 | 7 |
8 #ifndef COMPONENTS_INVALIDATION_IMPL_NON_BLOCKING_INVALIDATOR_H_ | 8 #ifndef COMPONENTS_INVALIDATION_IMPL_NON_BLOCKING_INVALIDATOR_H_ |
9 #define COMPONENTS_INVALIDATION_IMPL_NON_BLOCKING_INVALIDATOR_H_ | 9 #define COMPONENTS_INVALIDATION_IMPL_NON_BLOCKING_INVALIDATOR_H_ |
10 | 10 |
11 #include <string> | 11 #include <string> |
12 | 12 |
13 #include "base/basictypes.h" | |
14 #include "base/callback.h" | 13 #include "base/callback.h" |
15 #include "base/compiler_specific.h" | 14 #include "base/compiler_specific.h" |
| 15 #include "base/macros.h" |
16 #include "base/memory/ref_counted.h" | 16 #include "base/memory/ref_counted.h" |
17 #include "base/memory/weak_ptr.h" | 17 #include "base/memory/weak_ptr.h" |
18 #include "components/invalidation/impl/invalidation_state_tracker.h" | 18 #include "components/invalidation/impl/invalidation_state_tracker.h" |
19 #include "components/invalidation/impl/invalidator.h" | 19 #include "components/invalidation/impl/invalidator.h" |
20 #include "components/invalidation/impl/invalidator_registrar.h" | 20 #include "components/invalidation/impl/invalidator_registrar.h" |
21 #include "components/invalidation/impl/unacked_invalidation_set.h" | 21 #include "components/invalidation/impl/unacked_invalidation_set.h" |
22 #include "components/invalidation/public/invalidation_export.h" | 22 #include "components/invalidation/public/invalidation_export.h" |
23 #include "components/invalidation/public/invalidator_state.h" | 23 #include "components/invalidation/public/invalidator_state.h" |
24 #include "jingle/notifier/base/notifier_options.h" | 24 #include "jingle/notifier/base/notifier_options.h" |
25 | 25 |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 scoped_refptr<base::SingleThreadTaskRunner> network_task_runner_; | 103 scoped_refptr<base::SingleThreadTaskRunner> network_task_runner_; |
104 | 104 |
105 base::WeakPtrFactory<NonBlockingInvalidator> weak_ptr_factory_; | 105 base::WeakPtrFactory<NonBlockingInvalidator> weak_ptr_factory_; |
106 | 106 |
107 DISALLOW_COPY_AND_ASSIGN(NonBlockingInvalidator); | 107 DISALLOW_COPY_AND_ASSIGN(NonBlockingInvalidator); |
108 }; | 108 }; |
109 | 109 |
110 } // namespace syncer | 110 } // namespace syncer |
111 | 111 |
112 #endif // COMPONENTS_INVALIDATION_IMPL_NON_BLOCKING_INVALIDATOR_H_ | 112 #endif // COMPONENTS_INVALIDATION_IMPL_NON_BLOCKING_INVALIDATOR_H_ |
OLD | NEW |