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 #ifndef JINGLE_NOTIFIER_LISTENER_XMPP_PUSH_CLIENT_H_ | 5 #ifndef JINGLE_NOTIFIER_LISTENER_XMPP_PUSH_CLIENT_H_ |
6 #define JINGLE_NOTIFIER_LISTENER_XMPP_PUSH_CLIENT_H_ | 6 #define JINGLE_NOTIFIER_LISTENER_XMPP_PUSH_CLIENT_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
12 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
13 #include "base/macros.h" | 13 #include "base/macros.h" |
14 #include "base/memory/ref_counted.h" | 14 #include "base/memory/ref_counted.h" |
15 #include "base/memory/weak_ptr.h" | 15 #include "base/memory/weak_ptr.h" |
16 #include "base/observer_list.h" | 16 #include "base/observer_list.h" |
17 #include "base/threading/thread_checker.h" | 17 #include "base/threading/thread_checker.h" |
18 #include "jingle/notifier/base/notifier_options.h" | 18 #include "jingle/notifier/base/notifier_options.h" |
19 #include "jingle/notifier/communicator/login.h" | 19 #include "jingle/notifier/communicator/login.h" |
20 #include "jingle/notifier/listener/notification_defines.h" | 20 #include "jingle/notifier/listener/notification_defines.h" |
21 #include "jingle/notifier/listener/push_client.h" | 21 #include "jingle/notifier/listener/push_client.h" |
22 #include "jingle/notifier/listener/push_notifications_listen_task.h" | 22 #include "jingle/notifier/listener/push_notifications_listen_task.h" |
23 #include "jingle/notifier/listener/push_notifications_subscribe_task.h" | 23 #include "jingle/notifier/listener/push_notifications_subscribe_task.h" |
24 #include "jingle/notifier/listener/send_ping_task.h" | 24 #include "jingle/notifier/listener/send_ping_task.h" |
25 #include "webrtc/libjingle/xmpp/xmppclientsettings.h" | 25 #include "third_party/libjingle_xmpp/xmpp/xmppclientsettings.h" |
26 | 26 |
27 namespace buzz { | 27 namespace buzz { |
28 class XmppTaskParentInterface; | 28 class XmppTaskParentInterface; |
29 } // namespace buzz | 29 } // namespace buzz |
30 | 30 |
31 namespace notifier { | 31 namespace notifier { |
32 | 32 |
33 // This class implements a client for the XMPP google:push protocol. | 33 // This class implements a client for the XMPP google:push protocol. |
34 // | 34 // |
35 // This class must be used on a single thread. | 35 // This class must be used on a single thread. |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 base::WeakPtr<buzz::XmppTaskParentInterface> base_task_; | 83 base::WeakPtr<buzz::XmppTaskParentInterface> base_task_; |
84 | 84 |
85 std::vector<Notification> pending_notifications_to_send_; | 85 std::vector<Notification> pending_notifications_to_send_; |
86 | 86 |
87 DISALLOW_COPY_AND_ASSIGN(XmppPushClient); | 87 DISALLOW_COPY_AND_ASSIGN(XmppPushClient); |
88 }; | 88 }; |
89 | 89 |
90 } // namespace notifier | 90 } // namespace notifier |
91 | 91 |
92 #endif // JINGLE_NOTIFIER_LISTENER_XMPP_PUSH_CLIENT_H_ | 92 #endif // JINGLE_NOTIFIER_LISTENER_XMPP_PUSH_CLIENT_H_ |
OLD | NEW |