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

Side by Side Diff: jingle/notifier/listener/push_notifications_listen_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) 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 // This class listens for notifications from the Google Push notifications 5 // This class listens for notifications from the Google Push notifications
6 // service, and signals when they arrive. It checks all incoming stanzas to 6 // service, and signals when they arrive. It checks all incoming stanzas to
7 // see if they look like notifications, and filters out those which are not 7 // see if they look like notifications, and filters out those which are not
8 // valid. 8 // valid.
9 // 9 //
10 // The task is deleted automatically by the buzz::XmppClient. This occurs in the 10 // The task is deleted automatically by the buzz::XmppClient. This occurs in the
11 // destructor of TaskRunner, which is a superclass of buzz::XmppClient. 11 // destructor of TaskRunner, which is a superclass of buzz::XmppClient.
12 12
13 #ifndef JINGLE_NOTIFIER_PUSH_NOTIFICATIONS_LISTENER_LISTEN_TASK_H_ 13 #ifndef JINGLE_NOTIFIER_PUSH_NOTIFICATIONS_LISTENER_LISTEN_TASK_H_
14 #define JINGLE_NOTIFIER_PUSH_NOTIFICATIONS_LISTENER_LISTEN_TASK_H_ 14 #define JINGLE_NOTIFIER_PUSH_NOTIFICATIONS_LISTENER_LISTEN_TASK_H_
15 15
16 #include "base/compiler_specific.h" 16 #include "base/compiler_specific.h"
17 #include "base/macros.h" 17 #include "base/macros.h"
18 #include "webrtc/libjingle/xmpp/xmpptask.h" 18 #include "third_party/libjingle_xmpp/xmpp/xmpptask.h"
19 19
20 namespace buzz { 20 namespace buzz {
21 class XmlElement; 21 class XmlElement;
22 } 22 }
23 23
24 namespace notifier { 24 namespace notifier {
25 25
26 struct Notification; 26 struct Notification;
27 27
28 class PushNotificationsListenTask : public buzz::XmppTask { 28 class PushNotificationsListenTask : public buzz::XmppTask {
(...skipping 22 matching lines...) Expand all
51 51
52 DISALLOW_COPY_AND_ASSIGN(PushNotificationsListenTask); 52 DISALLOW_COPY_AND_ASSIGN(PushNotificationsListenTask);
53 }; 53 };
54 54
55 typedef PushNotificationsListenTask::Delegate 55 typedef PushNotificationsListenTask::Delegate
56 PushNotificationsListenTaskDelegate; 56 PushNotificationsListenTaskDelegate;
57 57
58 } // namespace notifier 58 } // namespace notifier
59 59
60 #endif // JINGLE_NOTIFIER_PUSH_NOTIFICATIONS_LISTENER_LISTEN_TASK_H_ 60 #endif // JINGLE_NOTIFIER_PUSH_NOTIFICATIONS_LISTENER_LISTEN_TASK_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698