Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(169)

Unified Diff: google_apis/gaia/oauth2_token_service.h

Issue 63253003: Fix issues with token refresh in AccountReconcilor (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: wip Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: google_apis/gaia/oauth2_token_service.h
diff --git a/google_apis/gaia/oauth2_token_service.h b/google_apis/gaia/oauth2_token_service.h
index 1745315abf452feaf134ce21c6c63bc3339cbb54..acfd04a543f556bb67394cebd3f404e59c01c0f0 100644
--- a/google_apis/gaia/oauth2_token_service.h
+++ b/google_apis/gaia/oauth2_token_service.h
@@ -5,6 +5,7 @@
#ifndef GOOGLE_APIS_GAIA_OAUTH2_TOKEN_SERVICE_H_
#define GOOGLE_APIS_GAIA_OAUTH2_TOKEN_SERVICE_H_
+#include <deque>
#include <map>
#include <set>
#include <string>
@@ -85,6 +86,8 @@ class OAuth2TokenService : public base::NonThreadSafe {
// this account. This is called during initial startup for each token
// loaded.
virtual void OnRefreshTokenAvailable(const std::string& account_id) {}
+ virtual void OnRefreshTokenAvailable(
+ const std::deque<std::string>& account_ids) {}
// Called whenever the login-scoped refresh token becomes unavailable for
// account |account_id|.
virtual void OnRefreshTokenRevoked(const std::string& account_id) {}
@@ -229,6 +232,8 @@ class OAuth2TokenService : public base::NonThreadSafe {
// Called by subclasses to notify observers.
virtual void FireRefreshTokenAvailable(const std::string& account_id);
+ virtual void FireRefreshTokenAvailable(
+ const std::deque<std::string>& account_ids);
virtual void FireRefreshTokenRevoked(const std::string& account_id);
virtual void FireRefreshTokensLoaded();

Powered by Google App Engine
This is Rietveld 408576698