| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 COMPONENTS_GCM_DRIVER_GCM_CLIENT_H_ | 5 #ifndef COMPONENTS_GCM_DRIVER_GCM_CLIENT_H_ |
| 6 #define COMPONENTS_GCM_DRIVER_GCM_CLIENT_H_ | 6 #define COMPONENTS_GCM_DRIVER_GCM_CLIENT_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 313 // Adds the Instance ID data for a specific app to the persistent store. | 313 // Adds the Instance ID data for a specific app to the persistent store. |
| 314 virtual void AddInstanceIDData(const std::string& app_id, | 314 virtual void AddInstanceIDData(const std::string& app_id, |
| 315 const std::string& instance_id_data) = 0; | 315 const std::string& instance_id_data) = 0; |
| 316 | 316 |
| 317 // Removes the Instance ID data for a specific app from the persistent store. | 317 // Removes the Instance ID data for a specific app from the persistent store. |
| 318 virtual void RemoveInstanceIDData(const std::string& app_id) = 0; | 318 virtual void RemoveInstanceIDData(const std::string& app_id) = 0; |
| 319 | 319 |
| 320 // Retrieves the Instance ID data for a specific app from the persistent | 320 // Retrieves the Instance ID data for a specific app from the persistent |
| 321 // store. | 321 // store. |
| 322 virtual std::string GetInstanceIDData(const std::string& app_id) = 0; | 322 virtual std::string GetInstanceIDData(const std::string& app_id) = 0; |
| 323 |
| 324 // Gets and sets custom heartbeat interval for the MCS connection. |
| 325 // |scope| is used to identify the component that requests a custom interval |
| 326 // to be set, and allows that component to later revoke the setting. It should |
| 327 // be unique. |
| 328 virtual void AddHeartbeatInterval(const std::string& scope, |
| 329 int interval_ms) = 0; |
| 330 virtual void RemoveHeartbeatInterval(const std::string& scope) = 0; |
| 323 }; | 331 }; |
| 324 | 332 |
| 325 } // namespace gcm | 333 } // namespace gcm |
| 326 | 334 |
| 327 #endif // COMPONENTS_GCM_DRIVER_GCM_CLIENT_H_ | 335 #endif // COMPONENTS_GCM_DRIVER_GCM_CLIENT_H_ |
| OLD | NEW |