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

Unified Diff: jingle/notifier/listener/xmpp_push_client.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: comments addressed 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
« no previous file with comments | « jingle/notifier/listener/send_ping_task_unittest.cc ('k') | jingle/notifier/listener/xmpp_push_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: jingle/notifier/listener/xmpp_push_client.h
diff --git a/jingle/notifier/listener/xmpp_push_client.h b/jingle/notifier/listener/xmpp_push_client.h
index 64725d8601b37797997ee9b2bd86bc22d0aa7627..08a1811706d62a36a05882bb0a2bde8cec196957 100644
--- a/jingle/notifier/listener/xmpp_push_client.h
+++ b/jingle/notifier/listener/xmpp_push_client.h
@@ -21,6 +21,7 @@
#include "jingle/notifier/listener/push_client.h"
#include "jingle/notifier/listener/push_notifications_listen_task.h"
#include "jingle/notifier/listener/push_notifications_subscribe_task.h"
+#include "jingle/notifier/listener/send_ping_task.h"
#include "talk/xmpp/xmppclientsettings.h"
namespace buzz {
@@ -36,7 +37,8 @@ class XmppPushClient :
public PushClient,
public Login::Delegate,
public PushNotificationsListenTaskDelegate,
- public PushNotificationsSubscribeTaskDelegate {
+ public PushNotificationsSubscribeTaskDelegate,
+ public SendPingTaskDelegate {
public:
explicit XmppPushClient(const NotifierOptions& notifier_options);
virtual ~XmppPushClient();
@@ -49,6 +51,7 @@ class XmppPushClient :
virtual void UpdateCredentials(
const std::string& email, const std::string& token) OVERRIDE;
virtual void SendNotification(const Notification& notification) OVERRIDE;
+ virtual void SendPing() OVERRIDE;
// Login::Delegate implementation.
virtual void OnConnect(
@@ -64,6 +67,9 @@ class XmppPushClient :
virtual void OnSubscribed() OVERRIDE;
virtual void OnSubscriptionError() OVERRIDE;
+ // SendPingTaskDelegate implementation.
+ virtual void OnPingResponseReceived() OVERRIDE;
+
private:
base::ThreadChecker thread_checker_;
const NotifierOptions notifier_options_;
« no previous file with comments | « jingle/notifier/listener/send_ping_task_unittest.cc ('k') | jingle/notifier/listener/xmpp_push_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698