OLD | NEW |
1 // Copyright (c) 2011 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 CHROME_BROWSER_SYNC_NOTIFIER_P2P_NOTIFIER_H_ | 8 #ifndef CHROME_BROWSER_SYNC_NOTIFIER_P2P_NOTIFIER_H_ |
9 #define CHROME_BROWSER_SYNC_NOTIFIER_P2P_NOTIFIER_H_ | 9 #define CHROME_BROWSER_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/observer_list.h" | 16 #include "base/observer_list.h" |
17 #include "chrome/browser/sync/notifier/sync_notifier.h" | 17 #include "chrome/browser/sync/notifier/sync_notifier.h" |
18 #include "chrome/browser/sync/syncable/model_type.h" | |
19 #include "jingle/notifier/listener/talk_mediator.h" | 18 #include "jingle/notifier/listener/talk_mediator.h" |
| 19 #include "sync/syncable/model_type.h" |
20 | 20 |
21 namespace base { | 21 namespace base { |
22 class MessageLoopProxy; | 22 class MessageLoopProxy; |
23 } | 23 } |
24 | 24 |
25 | 25 |
26 namespace sync_notifier { | 26 namespace sync_notifier { |
27 | 27 |
28 // The channel to use for sync notifications. | 28 // The channel to use for sync notifications. |
29 extern const char* kSyncP2PNotificationChannel; | 29 extern const char* kSyncP2PNotificationChannel; |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
134 bool notifications_enabled_; | 134 bool notifications_enabled_; |
135 // Which set of clients should be sent notifications. | 135 // Which set of clients should be sent notifications. |
136 P2PNotificationTarget send_notification_target_; | 136 P2PNotificationTarget send_notification_target_; |
137 | 137 |
138 syncable::ModelTypeSet enabled_types_; | 138 syncable::ModelTypeSet enabled_types_; |
139 scoped_refptr<base::MessageLoopProxy> parent_message_loop_proxy_; | 139 scoped_refptr<base::MessageLoopProxy> parent_message_loop_proxy_; |
140 }; | 140 }; |
141 | 141 |
142 } // namespace sync_notifier | 142 } // namespace sync_notifier |
143 #endif // CHROME_BROWSER_SYNC_NOTIFIER_P2P_NOTIFIER_H_ | 143 #endif // CHROME_BROWSER_SYNC_NOTIFIER_P2P_NOTIFIER_H_ |
OLD | NEW |