| 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 // A notifier that uses p2p notifications based on XMPP push | 5 // A notifier that uses p2p notifications based on XMPP push |
| 6 // notifications. Used only for sync integration tests. | 6 // notifications. Used only for sync integration tests. |
| 7 | 7 |
| 8 #ifndef SYNC_NOTIFIER_P2P_NOTIFIER_H_ | 8 #ifndef SYNC_NOTIFIER_P2P_NOTIFIER_H_ |
| 9 #define SYNC_NOTIFIER_P2P_NOTIFIER_H_ | 9 #define SYNC_NOTIFIER_P2P_NOTIFIER_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 "jingle/notifier/listener/push_client_observer.h" | 19 #include "jingle/notifier/listener/push_client_observer.h" |
| 20 #include "sync/internal_api/public/syncable/model_type.h" | 20 #include "sync/internal_api/public/base/model_type.h" |
| 21 #include "sync/notifier/notifications_disabled_reason.h" | 21 #include "sync/notifier/notifications_disabled_reason.h" |
| 22 #include "sync/notifier/sync_notifier.h" | 22 #include "sync/notifier/sync_notifier.h" |
| 23 | 23 |
| 24 namespace notifier { | 24 namespace notifier { |
| 25 class PushClient; | 25 class PushClient; |
| 26 } // namespace notifier | 26 } // namespace notifier |
| 27 | 27 |
| 28 namespace syncer { | 28 namespace syncer { |
| 29 | 29 |
| 30 // The channel to use for sync notifications. | 30 // The channel to use for sync notifications. |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 133 bool notifications_enabled_; | 133 bool notifications_enabled_; |
| 134 // Which set of clients should be sent notifications. | 134 // Which set of clients should be sent notifications. |
| 135 P2PNotificationTarget send_notification_target_; | 135 P2PNotificationTarget send_notification_target_; |
| 136 | 136 |
| 137 syncable::ModelTypeSet enabled_types_; | 137 syncable::ModelTypeSet enabled_types_; |
| 138 }; | 138 }; |
| 139 | 139 |
| 140 } // namespace syncer | 140 } // namespace syncer |
| 141 | 141 |
| 142 #endif // SYNC_NOTIFIER_P2P_NOTIFIER_H_ | 142 #endif // SYNC_NOTIFIER_P2P_NOTIFIER_H_ |
| OLD | NEW |