summaryrefslogtreecommitdiffstats
path: root/components/gcm_driver/gcm_channel_status_syncer.h
diff options
context:
space:
mode:
authorjianli <jianli@chromium.org>2014-10-14 11:57:34 -0700
committerCommit bot <commit-bot@chromium.org>2014-10-14 18:57:53 +0000
commit9e9dd3b7798b3500d70941af04b1325ef9a0b544 (patch)
tree5ff663b076f38af56be7709efcf5ac7c21666b0e /components/gcm_driver/gcm_channel_status_syncer.h
parent7df3ea5ff88f487868b19e03005e5de34cbd20ad (diff)
downloadchromium_src-9e9dd3b7798b3500d70941af04b1325ef9a0b544.zip
chromium_src-9e9dd3b7798b3500d70941af04b1325ef9a0b544.tar.gz
chromium_src-9e9dd3b7798b3500d70941af04b1325ef9a0b544.tar.bz2
[GCM] Start GCMChannelStatusSyncer when GCM is disabled
We need to start GCMChannelStatusSyncer when GCM is disabled in order to poll the server to find out when it is reenabled. Also if server returns empty response, we should not treat it as error and trigger the backoff logic. BUG=423415 TEST=new tests added Review URL: https://codereview.chromium.org/653843003 Cr-Commit-Position: refs/heads/master@{#299518}
Diffstat (limited to 'components/gcm_driver/gcm_channel_status_syncer.h')
-rw-r--r--components/gcm_driver/gcm_channel_status_syncer.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/components/gcm_driver/gcm_channel_status_syncer.h b/components/gcm_driver/gcm_channel_status_syncer.h
index b4641af..8359cdf 100644
--- a/components/gcm_driver/gcm_channel_status_syncer.h
+++ b/components/gcm_driver/gcm_channel_status_syncer.h
@@ -59,7 +59,9 @@ class GCMChannelStatusSyncer {
private:
// Called when a request is completed.
- void OnRequestCompleted(bool enabled, int poll_interval_seconds);
+ void OnRequestCompleted(bool update_received,
+ bool enabled,
+ int poll_interval_seconds);
// Schedules next request to start after appropriate delay.
void ScheduleRequest();