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

Side by Side Diff: jingle/notifier/listener/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: nits Created 8 years, 1 month 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef JINGLE_NOTIFIER_LISTENER_PUSH_CLIENT_H_ 5 #ifndef JINGLE_NOTIFIER_LISTENER_PUSH_CLIENT_H_
6 #define JINGLE_NOTIFIER_LISTENER_PUSH_CLIENT_H_ 6 #define JINGLE_NOTIFIER_LISTENER_PUSH_CLIENT_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 virtual void UpdateSubscriptions(const SubscriptionList& subscriptions) = 0; 43 virtual void UpdateSubscriptions(const SubscriptionList& subscriptions) = 0;
44 44
45 // If not connected, connects with the given credentials. If 45 // If not connected, connects with the given credentials. If
46 // already connected, the next connection attempt will use the given 46 // already connected, the next connection attempt will use the given
47 // credentials. 47 // credentials.
48 virtual void UpdateCredentials( 48 virtual void UpdateCredentials(
49 const std::string& email, const std::string& token) = 0; 49 const std::string& email, const std::string& token) = 0;
50 50
51 // Sends a notification (with no reliability guarantees). 51 // Sends a notification (with no reliability guarantees).
52 virtual void SendNotification(const Notification& notification) = 0; 52 virtual void SendNotification(const Notification& notification) = 0;
53
54 // Sends a notification (with no reliability guarantees).
akalin 2012/10/24 20:13:49 fix comment.
55 virtual void SendPing() = 0;
53 }; 56 };
54 57
55 } // namespace notifier 58 } // namespace notifier
56 59
57 #endif // JINGLE_NOTIFIER_LISTENER_PUSH_CLIENT_H_ 60 #endif // JINGLE_NOTIFIER_LISTENER_PUSH_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698