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 invalidator that uses p2p invalidations based on XMPP push | 5 // An invalidator that uses p2p invalidations based on XMPP push |
6 // notifications. Used only for sync integration tests. | 6 // notifications. Used only for sync integration tests. |
7 | 7 |
8 #ifndef COMPONENTS_INVALIDATION_P2P_INVALIDATOR_H_ | 8 #ifndef COMPONENTS_INVALIDATION_P2P_INVALIDATOR_H_ |
9 #define COMPONENTS_INVALIDATION_P2P_INVALIDATOR_H_ | 9 #define COMPONENTS_INVALIDATION_P2P_INVALIDATOR_H_ |
10 | 10 |
11 #include <string> | 11 #include <string> |
12 | 12 |
13 #include "base/compiler_specific.h" | 13 #include "base/compiler_specific.h" |
14 #include "base/memory/ref_counted.h" | 14 #include "base/memory/ref_counted.h" |
15 #include "base/memory/scoped_ptr.h" | 15 #include "base/memory/scoped_ptr.h" |
16 #include "base/memory/weak_ptr.h" | 16 #include "base/memory/weak_ptr.h" |
17 #include "base/observer_list.h" | 17 #include "base/observer_list.h" |
18 #include "base/threading/thread_checker.h" | 18 #include "base/threading/thread_checker.h" |
19 #include "components/invalidation/invalidation_export.h" | 19 #include "components/invalidation/invalidation_export.h" |
| 20 #include "components/invalidation/invalidator.h" |
20 #include "components/invalidation/invalidator_registrar.h" | 21 #include "components/invalidation/invalidator_registrar.h" |
| 22 #include "components/invalidation/object_id_invalidation_map.h" |
21 #include "jingle/notifier/base/notifier_options.h" | 23 #include "jingle/notifier/base/notifier_options.h" |
22 #include "jingle/notifier/listener/push_client.h" | 24 #include "jingle/notifier/listener/push_client.h" |
23 #include "jingle/notifier/listener/push_client_observer.h" | 25 #include "jingle/notifier/listener/push_client_observer.h" |
24 #include "sync/internal_api/public/base/invalidator_state.h" | 26 #include "sync/internal_api/public/base/invalidator_state.h" |
25 #include "sync/internal_api/public/base/model_type.h" | 27 #include "sync/internal_api/public/base/model_type.h" |
26 #include "sync/notifier/invalidator.h" | |
27 #include "sync/notifier/object_id_invalidation_map.h" | |
28 | 28 |
29 namespace notifier { | 29 namespace notifier { |
30 class PushClient; | 30 class PushClient; |
31 } // namespace notifier | 31 } // namespace notifier |
32 | 32 |
33 namespace syncer { | 33 namespace syncer { |
34 | 34 |
35 // The channel to use for sync notifications. | 35 // The channel to use for sync notifications. |
36 INVALIDATION_EXPORT extern const char kSyncP2PNotificationChannel[]; | 36 INVALIDATION_EXPORT extern const char kSyncP2PNotificationChannel[]; |
37 | 37 |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
141 bool notifications_enabled_; | 141 bool notifications_enabled_; |
142 // Which set of clients should be sent notifications. | 142 // Which set of clients should be sent notifications. |
143 P2PNotificationTarget send_notification_target_; | 143 P2PNotificationTarget send_notification_target_; |
144 | 144 |
145 DISALLOW_COPY_AND_ASSIGN(P2PInvalidator); | 145 DISALLOW_COPY_AND_ASSIGN(P2PInvalidator); |
146 }; | 146 }; |
147 | 147 |
148 } // namespace syncer | 148 } // namespace syncer |
149 | 149 |
150 #endif // COMPONENTS_INVALIDATION_P2P_INVALIDATOR_H_ | 150 #endif // COMPONENTS_INVALIDATION_P2P_INVALIDATOR_H_ |
OLD | NEW |