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 291 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
302 | 302 |
303 // Removes the account mapping related to |account_id| from the persistent | 303 // Removes the account mapping related to |account_id| from the persistent |
304 // store. | 304 // store. |
305 virtual void RemoveAccountMapping(const std::string& account_id) = 0; | 305 virtual void RemoveAccountMapping(const std::string& account_id) = 0; |
306 | 306 |
307 // Sets last token fetch time in persistent store. | 307 // Sets last token fetch time in persistent store. |
308 virtual void SetLastTokenFetchTime(const base::Time& time) = 0; | 308 virtual void SetLastTokenFetchTime(const base::Time& time) = 0; |
309 | 309 |
310 // Updates the timer used by the HeartbeatManager for sending heartbeats. | 310 // Updates the timer used by the HeartbeatManager for sending heartbeats. |
311 virtual void UpdateHeartbeatTimer(scoped_ptr<base::Timer> timer) = 0; | 311 virtual void UpdateHeartbeatTimer(scoped_ptr<base::Timer> timer) = 0; |
| 312 |
| 313 // Adds the Instance ID data for a specific app to the persistent store. |
| 314 virtual void AddInstanceIDData(const std::string& app_id, |
| 315 const std::string& instance_id_data) = 0; |
| 316 |
| 317 // Removes the Instance ID data for a specific app from the persistent store. |
| 318 virtual void RemoveInstanceIDData(const std::string& app_id) = 0; |
| 319 |
| 320 // Retrieves the Instance ID data for a specific app from the persistent |
| 321 // store. |
| 322 virtual std::string GetInstanceIDData(const std::string& app_id) = 0; |
312 }; | 323 }; |
313 | 324 |
314 } // namespace gcm | 325 } // namespace gcm |
315 | 326 |
316 #endif // COMPONENTS_GCM_DRIVER_GCM_CLIENT_H_ | 327 #endif // COMPONENTS_GCM_DRIVER_GCM_CLIENT_H_ |
OLD | NEW |