OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 // This class handles subscribing to the new Google push notifications. | 5 // This class handles subscribing to the new Google push notifications. |
6 | 6 |
7 #ifndef JINGLE_NOTIFIER_LISTENER_PUSH_NOTIFICATIONS_SUBSCRIBE_TASK_H_ | 7 #ifndef JINGLE_NOTIFIER_LISTENER_PUSH_NOTIFICATIONS_SUBSCRIBE_TASK_H_ |
8 #define JINGLE_NOTIFIER_LISTENER_PUSH_NOTIFICATIONS_SUBSCRIBE_TASK_H_ | 8 #define JINGLE_NOTIFIER_LISTENER_PUSH_NOTIFICATIONS_SUBSCRIBE_TASK_H_ |
9 | 9 |
10 #include <string> | 10 #include <string> |
11 #include <vector> | 11 #include <vector> |
12 | 12 |
13 #include "base/compiler_specific.h" | 13 #include "base/compiler_specific.h" |
14 #include "base/gtest_prod_util.h" | 14 #include "base/gtest_prod_util.h" |
15 #include "base/macros.h" | 15 #include "base/macros.h" |
16 #include "jingle/notifier/listener/notification_defines.h" | 16 #include "jingle/notifier/listener/notification_defines.h" |
17 #include "third_party/webrtc/libjingle/xmllite/xmlelement.h" | 17 #include "third_party/libjingle_xmpp/xmllite/xmlelement.h" |
18 #include "webrtc/libjingle/xmpp/xmpptask.h" | 18 #include "third_party/libjingle_xmpp/xmpp/xmpptask.h" |
19 | 19 |
20 namespace notifier { | 20 namespace notifier { |
21 class PushNotificationsSubscribeTask : public buzz::XmppTask { | 21 class PushNotificationsSubscribeTask : public buzz::XmppTask { |
22 public: | 22 public: |
23 class Delegate { | 23 class Delegate { |
24 public: | 24 public: |
25 virtual ~Delegate() {} | 25 virtual ~Delegate() {} |
26 virtual void OnSubscribed() = 0; | 26 virtual void OnSubscribed() = 0; |
27 virtual void OnSubscriptionError() = 0; | 27 virtual void OnSubscriptionError() = 0; |
28 }; | 28 }; |
(...skipping 23 matching lines...) Expand all Loading... |
52 DISALLOW_COPY_AND_ASSIGN(PushNotificationsSubscribeTask); | 52 DISALLOW_COPY_AND_ASSIGN(PushNotificationsSubscribeTask); |
53 }; | 53 }; |
54 | 54 |
55 typedef PushNotificationsSubscribeTask::Delegate | 55 typedef PushNotificationsSubscribeTask::Delegate |
56 PushNotificationsSubscribeTaskDelegate; | 56 PushNotificationsSubscribeTaskDelegate; |
57 | 57 |
58 | 58 |
59 } // namespace notifier | 59 } // namespace notifier |
60 | 60 |
61 #endif // JINGLE_NOTIFIER_LISTENER_PUSH_NOTIFICATIONS_SUBSCRIBE_TASK_H_ | 61 #endif // JINGLE_NOTIFIER_LISTENER_PUSH_NOTIFICATIONS_SUBSCRIBE_TASK_H_ |
OLD | NEW |