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

Unified Diff: jingle/notifier/listener/fake_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/jingle.gyp ('k') | jingle/notifier/listener/fake_push_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: jingle/notifier/listener/fake_push_client.h
diff --git a/jingle/notifier/listener/fake_push_client.h b/jingle/notifier/listener/fake_push_client.h
index 90e086c3268b902fe7568bbb6a226017d959cf48..2c1340de88b5ec288618cb979db492ac37dfdccd 100644
--- a/jingle/notifier/listener/fake_push_client.h
+++ b/jingle/notifier/listener/fake_push_client.h
@@ -29,6 +29,7 @@ class FakePushClient : 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;
// Triggers OnNotificationsEnabled on all observers.
void EnableNotifications();
@@ -43,6 +44,7 @@ class FakePushClient : public PushClient {
const std::string& email() const;
const std::string& token() const;
const std::vector<Notification>& sent_notifications() const;
+ int sent_pings() const;
private:
ObserverList<PushClientObserver> observers_;
@@ -50,6 +52,7 @@ class FakePushClient : public PushClient {
std::string email_;
std::string token_;
std::vector<Notification> sent_notifications_;
+ int sent_pings_;
DISALLOW_COPY_AND_ASSIGN(FakePushClient);
};
« no previous file with comments | « jingle/jingle.gyp ('k') | jingle/notifier/listener/fake_push_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698