diff options
author | mahmadi <mahmadi@chromium.org> | 2015-11-25 12:09:58 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-11-25 20:10:52 +0000 |
commit | fb4743fb5567278542ac4f4b90d595a9e6c17148 (patch) | |
tree | 9d9c88ce8e30af4916520a5b11e9c11d9addd751 /google_apis | |
parent | 1466c8459a40da0077d6e62174c2fec808b9f50f (diff) | |
download | chromium_src-fb4743fb5567278542ac4f4b90d595a9e6c17148.zip chromium_src-fb4743fb5567278542ac4f4b90d595a9e6c17148.tar.gz chromium_src-fb4743fb5567278542ac4f4b90d595a9e6c17148.tar.bz2 |
exposes the backoff information for gaia cookie manager and token service in signin-internals
BUG=405038
Review URL: https://codereview.chromium.org/1441163002
Cr-Commit-Position: refs/heads/master@{#361723}
Diffstat (limited to 'google_apis')
-rw-r--r-- | google_apis/gaia/oauth2_token_service_delegate.cc | 4 | ||||
-rw-r--r-- | google_apis/gaia/oauth2_token_service_delegate.h | 5 |
2 files changed, 9 insertions, 0 deletions
diff --git a/google_apis/gaia/oauth2_token_service_delegate.cc b/google_apis/gaia/oauth2_token_service_delegate.cc index 3c5f75b..0898c7a 100644 --- a/google_apis/gaia/oauth2_token_service_delegate.cc +++ b/google_apis/gaia/oauth2_token_service_delegate.cc @@ -113,3 +113,7 @@ bool OAuth2TokenServiceDelegate::RefreshTokenHasError( std::vector<std::string> OAuth2TokenServiceDelegate::GetAccounts() { return std::vector<std::string>(); } + +const net::BackoffEntry* OAuth2TokenServiceDelegate::BackoffEntry() const { + return nullptr; +} diff --git a/google_apis/gaia/oauth2_token_service_delegate.h b/google_apis/gaia/oauth2_token_service_delegate.h index 24bf063..b727633 100644 --- a/google_apis/gaia/oauth2_token_service_delegate.h +++ b/google_apis/gaia/oauth2_token_service_delegate.h @@ -8,6 +8,7 @@ #include "base/observer_list.h" #include "google_apis/gaia/gaia_auth_util.h" #include "google_apis/gaia/oauth2_token_service.h" +#include "net/base/backoff_entry.h" namespace net { class URLRequestContextGetter; @@ -54,6 +55,10 @@ class OAuth2TokenServiceDelegate { void AddObserver(OAuth2TokenService::Observer* observer); void RemoveObserver(OAuth2TokenService::Observer* observer); + // Returns a pointer to its instance of net::BackoffEntry if it has one, or + // a nullptr otherwise. + virtual const net::BackoffEntry* BackoffEntry() const; + protected: // Called by subclasses to notify observers. virtual void FireRefreshTokenAvailable(const std::string& account_id); |