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

Unified Diff: jingle/notifier/listener/non_blocking_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: 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/non_blocking_push_client.h
diff --git a/jingle/notifier/listener/non_blocking_push_client.h b/jingle/notifier/listener/non_blocking_push_client.h
index 434f5f4ec68070e37f309ece5af72e102852045c..f5c6bc48e095a05e406115b794d2538260bf08c5 100644
--- a/jingle/notifier/listener/non_blocking_push_client.h
+++ b/jingle/notifier/listener/non_blocking_push_client.h
@@ -49,6 +49,7 @@ class NonBlockingPushClient : public PushClient {
virtual void UpdateCredentials(
const std::string& email, const std::string& token) OVERRIDE;
virtual void SendNotification(const Notification& notification) OVERRIDE;
+ virtual void SendPing() OVERRIDE;
private:
class Core;
@@ -56,6 +57,7 @@ class NonBlockingPushClient : public PushClient {
void OnNotificationsEnabled();
void OnNotificationsDisabled(NotificationsDisabledReason reason);
void OnIncomingNotification(const Notification& notification);
+ void OnPingResponse();
base::ThreadChecker thread_checker_;
base::WeakPtrFactory<NonBlockingPushClient> weak_ptr_factory_;

Powered by Google App Engine
This is Rietveld 408576698