Chromium Code Reviews| 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; |
|
akalin
2012/10/25 00:10:13
add a unit test for this please
gene
2012/10/25 00:43:26
Done.
|
| // 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_; |