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

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

Issue 1124783002: [GCM] Wiring heartbeat interval calls to GCMDriver (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@store-heartbeat-gcm
Patch Set: Addressing final feedback and fixing formatting Created 5 years, 7 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
« no previous file with comments | « google_apis/gcm/engine/gcm_store.cc ('k') | google_apis/gcm/engine/mcs_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: google_apis/gcm/engine/mcs_client.h
diff --git a/google_apis/gcm/engine/mcs_client.h b/google_apis/gcm/engine/mcs_client.h
index a81bcbe95bb9c4cd843d861940749297c088fea6..8d35fd480a17da211703cd2f19fdaffed28abdc5 100644
--- a/google_apis/gcm/engine/mcs_client.h
+++ b/google_apis/gcm/engine/mcs_client.h
@@ -160,8 +160,8 @@ class GCM_EXPORT MCSClient {
void AddHeartbeatInterval(const std::string& scope, int interval_ms);
void RemoveHeartbeatInterval(const std::string& scope);
- HeartbeatManager& GetHeartbeatManagerForTesting() {
- return heartbeat_manager_;
+ HeartbeatManager* GetHeartbeatManagerForTesting() {
+ return &heartbeat_manager_;
}
private:
@@ -225,8 +225,9 @@ class GCM_EXPORT MCSClient {
// any associated state).
MCSPacketInternal PopMessageForSend();
- // Gets the minimum interval from the map of scopes to intervals.
- int GetMinCustomHeartbeatInterval();
+ // Gets the minimum interval from the map of scopes to intervals in
+ // milliseconds.
+ int GetMinHeartbeatIntervalMs();
// Local version string. Sent on login.
const std::string version_string_;
« no previous file with comments | « google_apis/gcm/engine/gcm_store.cc ('k') | google_apis/gcm/engine/mcs_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698