summaryrefslogtreecommitdiffstats
path: root/google_apis
diff options
context:
space:
mode:
Diffstat (limited to 'google_apis')
-rw-r--r--google_apis/gaia/oauth2_token_service_delegate.cc4
-rw-r--r--google_apis/gaia/oauth2_token_service_delegate.h5
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);