Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(15)

Side by Side Diff: jingle/notifier/listener/push_notifications_subscribe_task.h

Issue 2443903004: Add xmllite and xmpp sources to third_party/ (Closed)
Patch Set: Explicitly use webrtc_overrides/webrtc/base/logging.h Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698