aboutsummaryrefslogtreecommitdiff
path: root/src/device_registration_info.h
diff options
context:
space:
mode:
authorAlex Vakulenko <avakulenko@google.com>2016-04-07 10:13:38 -0700
committerAlex Vakulenko <avakulenko@google.com>2016-04-07 18:03:19 +0000
commitc507804da0da985c39c798720d36610503bc7cff (patch)
tree0afa1fe38c2dfb31190ee9fb733c9f80e4b46f10 /src/device_registration_info.h
parenteae016cab6044d22b150afdf6f3f3cb5cc1c79fd (diff)
downloadlibweave-c507804da0da985c39c798720d36610503bc7cff.tar.gz
libweave: Remove backup polling (30 minute poll interval)
The "just-in-case" polling every 30 minutes was a backup mechanism to guard against XMPP channel possibly missing command notifications. This hasn't been observed to be a major source of problems, so it was decided that this backup polling is no longer needed. BUG: 27878849 Change-Id: Ie8c816391e5bc5dfec0601fdd699f56eaee53efe Reviewed-on: https://weave-review.googlesource.com/3149 Reviewed-by: Alex Vakulenko <avakulenko@google.com>
Diffstat (limited to 'src/device_registration_info.h')
-rw-r--r--src/device_registration_info.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/device_registration_info.h b/src/device_registration_info.h
index db08ef9..5ecdcac 100644
--- a/src/device_registration_info.h
+++ b/src/device_registration_info.h
@@ -161,6 +161,10 @@ class DeviceRegistrationInfo : public NotificationDelegate,
// restarted anytime the access_token is refreshed.
void StartNotificationChannel();
+ // Helpers to start and stop pull notification channel.
+ void StartPullChannel();
+ void StopPullChannel();
+
// Do a HTTPS request to cloud services.
// Handles many cases like reauthorization, 5xx HTTP response codes
// and device removal. It is a recommended way to do cloud API