Index: chrome/browser/signin/oauth2_token_service.h |
diff --git a/chrome/browser/signin/oauth2_token_service.h b/chrome/browser/signin/oauth2_token_service.h |
index 3f19b3c0817954e516767854af99d7beceb27cc1..ef8680f4248f8c189327d0af1b59e2b05cf48f1f 100644 |
--- a/chrome/browser/signin/oauth2_token_service.h |
+++ b/chrome/browser/signin/oauth2_token_service.h |
@@ -99,6 +99,11 @@ class OAuth2TokenService : public content::NotificationObserver, |
const ScopeSet& scopes, |
OAuth2TokenService::Consumer* consumer); |
+ virtual scoped_ptr<Request> InvalidateTokenAndStartRequest( |
+ const ScopeSet& scopes, |
+ OAuth2TokenService::Consumer* consumer, |
+ const std::string& invalid_token); |
+ |
// content::NotificationObserver |
virtual void Observe(int type, |
const content::NotificationSource& source, |
@@ -133,6 +138,7 @@ class OAuth2TokenService : public content::NotificationObserver, |
// ensure no entry with the same |scopes| is added before the usage of the |
// returned entry is done. |
const CacheEntry* GetCacheEntry(const ScopeSet& scopes); |
+ |
// Registers a new access token in the cache if |refresh_token| is the one |
// currently held by TokenService. |
void RegisterCacheEntry(const std::string& refresh_token, |
@@ -140,6 +146,12 @@ class OAuth2TokenService : public content::NotificationObserver, |
const std::string& access_token, |
const base::Time& expiration_date); |
+ // Removes an access token for the given set of scopes from the cache. |
+ // Returns true if the entry was removed, otherwise false. |
+ bool RemoveCacheEntry(const OAuth2TokenService::ScopeSet& scopes, |
+ const std::string& token_to_remove); |
+ |
+ |
// Called when |fetcher| finishes fetching. |
void OnFetchComplete(Fetcher* fetcher); |