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

Unified Diff: components/gcm_driver/gcm_client_impl.cc

Issue 1124783002: [GCM] Wiring heartbeat interval calls to GCMDriver (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@store-heartbeat-gcm
Patch Set: Adding MCS client tests for storing heartbeat interval 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
Index: components/gcm_driver/gcm_client_impl.cc
diff --git a/components/gcm_driver/gcm_client_impl.cc b/components/gcm_driver/gcm_client_impl.cc
index 1c9f64fbe447498e27d1ca4a8c47b77a210adb1b..69605ae7012f38ea80fe7bbf4fd4e8f97e34142f 100644
--- a/components/gcm_driver/gcm_client_impl.cc
+++ b/components/gcm_driver/gcm_client_impl.cc
@@ -530,6 +530,17 @@ void GCMClientImpl::UpdateHeartbeatTimer(scoped_ptr<base::Timer> timer) {
mcs_client_->UpdateHeartbeatTimer(timer.Pass());
}
+void GCMClientImpl::AddHeartbeatInterval(const std::string& scope,
+ int interval_ms) {
+ DCHECK(mcs_client_);
+ mcs_client_->AddHeartbeatInterval(scope, interval_ms);
Nicolas Zea 2015/05/07 18:13:52 This can be called from any arbitrary component ri
fgorski 2015/05/10 06:44:33 Good point. I've added a check against delayed tas
+}
+
+void GCMClientImpl::RemoveHeartbeatInterval(const std::string& scope) {
+ DCHECK(mcs_client_);
+ mcs_client_->RemoveHeartbeatInterval(scope);
+}
+
void GCMClientImpl::StartCheckin() {
// Make sure no checkin is in progress.
if (checkin_request_.get())

Powered by Google App Engine
This is Rietveld 408576698