| OLD | NEW |
| 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 Loading... |
| 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 ping (with no reliability guarantees). |
| 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_ |
| OLD | NEW |