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 | |
Nicolas Zea
2015/05/13 17:57:36
nit: I'd explicitly call out that it should be a u
fgorski
2015/05/13 18:59:15
Done.
| |
326 // to be set, and allows that component to later revoke the setting. | |
327 virtual void AddHeartbeatInterval(const std::string& scope, | |
328 int interval_ms) = 0; | |
329 virtual void RemoveHeartbeatInterval(const std::string& scope) = 0; | |
323 }; | 330 }; |
324 | 331 |
325 } // namespace gcm | 332 } // namespace gcm |
326 | 333 |
327 #endif // COMPONENTS_GCM_DRIVER_GCM_CLIENT_H_ | 334 #endif // COMPONENTS_GCM_DRIVER_GCM_CLIENT_H_ |
OLD | NEW |