Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(12)

Unified Diff: google_apis/gcm/engine/gcm_store_impl.h

Issue 1121003003: [GCM] Adding handling of heartbeat intervals to the GCM store. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@heartbeat-gcm
Patch Set: Adding histrograms Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: google_apis/gcm/engine/gcm_store_impl.h
diff --git a/google_apis/gcm/engine/gcm_store_impl.h b/google_apis/gcm/engine/gcm_store_impl.h
index 636b4becea51e33286a180f96c410688915a4e89..6ee8e88fd7bc50c27e73411d792ed6590fe5f0ad 100644
--- a/google_apis/gcm/engine/gcm_store_impl.h
+++ b/google_apis/gcm/engine/gcm_store_impl.h
@@ -95,6 +95,13 @@ class GCM_EXPORT GCMStoreImpl : public GCMStore {
void SetLastTokenFetchTime(const base::Time& time,
const UpdateCallback& callback) override;
+ // Sets the custom client heartbeat interval for the scope.
+ void AddHeartbeatInterval(const std::string& scope,
+ int interval_ms,
+ const UpdateCallback& callback) override;
+ void RemoveHeartbeatInterval(const std::string& scope,
+ const UpdateCallback& callback) override;
+
// Injects a value to database. Only to be used for testing.
void SetValueForTesting(const std::string& key,
const std::string& value,

Powered by Google App Engine
This is Rietveld 408576698