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 // Gets and sets custom heartbeat interval for the MCS connection. | |
Nicolas Zea
2015/05/07 18:13:52
Describe what scope corresponds to?
fgorski
2015/05/10 06:44:33
Done.
| |
314 virtual void AddHeartbeatInterval(const std::string& scope, | |
315 int interval_ms) = 0; | |
316 virtual void RemoveHeartbeatInterval(const std::string& scope) = 0; | |
312 }; | 317 }; |
313 | 318 |
314 } // namespace gcm | 319 } // namespace gcm |
315 | 320 |
316 #endif // COMPONENTS_GCM_DRIVER_GCM_CLIENT_H_ | 321 #endif // COMPONENTS_GCM_DRIVER_GCM_CLIENT_H_ |
OLD | NEW |