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

Unified Diff: jingle/notifier/listener/push_notifications_listen_task.h

Issue 11232048: Adding XMPP ping functionality to CLoudPrint. XMPP ping and timeout is controlled thorugh Service S… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: added missing files Created 8 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: jingle/notifier/listener/push_notifications_listen_task.h
diff --git a/jingle/notifier/listener/push_notifications_listen_task.h b/jingle/notifier/listener/push_notifications_listen_task.h
index daf48d9b38a21085dd0ef2a9d268e209faf23f05..3120a88eb9933d854b072eda96d4e1439c5089df 100644
--- a/jingle/notifier/listener/push_notifications_listen_task.h
+++ b/jingle/notifier/listener/push_notifications_listen_task.h
@@ -29,6 +29,7 @@ class PushNotificationsListenTask : public buzz::XmppTask {
class Delegate {
public:
virtual void OnNotificationReceived(const Notification& notification) = 0;
+ virtual void OnPingResponseReceived() = 0;
protected:
virtual ~Delegate() {}
@@ -45,6 +46,8 @@ class PushNotificationsListenTask : public buzz::XmppTask {
private:
bool IsValidNotification(const buzz::XmlElement* stanza);
+ void ProcessMessageStanza(const buzz::XmlElement* stanza);
+ void ProcessPingStanza(const buzz::XmlElement* stanza);
Delegate* delegate_;

Powered by Google App Engine
This is Rietveld 408576698