diff options
author | jianli <jianli@chromium.org> | 2014-09-08 11:56:41 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-09-08 19:11:18 +0000 |
commit | 1235e51cc9427558d07f12acd80b6fa96b312748 (patch) | |
tree | c969f43ba8f052f8efe6fa0991bd6070e6a63cf4 /components/gcm_driver/gcm_backoff_policy.h | |
parent | 46a8366faec20a16c85109f480bfa7b348480cac (diff) | |
download | chromium_src-1235e51cc9427558d07f12acd80b6fa96b312748.zip chromium_src-1235e51cc9427558d07f12acd80b6fa96b312748.tar.gz chromium_src-1235e51cc9427558d07f12acd80b6fa96b312748.tar.bz2 |
Add GCMChannelStatusRequest to talk with server for all users
This is to support querying GCM channel status for all users. This
is needed to drop the sign-in enforcement.
BUG=384041
TEST=new tests added
Review URL: https://codereview.chromium.org/530253002
Cr-Commit-Position: refs/heads/master@{#293764}
Diffstat (limited to 'components/gcm_driver/gcm_backoff_policy.h')
-rw-r--r-- | components/gcm_driver/gcm_backoff_policy.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/components/gcm_driver/gcm_backoff_policy.h b/components/gcm_driver/gcm_backoff_policy.h new file mode 100644 index 0000000..d49accb --- /dev/null +++ b/components/gcm_driver/gcm_backoff_policy.h @@ -0,0 +1,17 @@ +// Copyright 2014 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#ifndef COMPONENTS_GCM_DRIVER_GCM_BACKOFF_POLICY_H_ +#define COMPONENTS_GCM_DRIVER_GCM_BACKOFF_POLICY_H_ + +#include "net/base/backoff_entry.h" + +namespace gcm { + +// Returns the backoff policy that applies to all GCM requests. +const net::BackoffEntry::Policy& GetGCMBackoffPolicy(); + +} // namespace gcm + +#endif // COMPONENTS_GCM_DRIVER_GCM_BACKOFF_POLICY_H_ |