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

Unified Diff: chrome/browser/signin/token_service.h

Issue 11991002: Merge 176800 (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1364/src/
Patch Set: Created 7 years, 11 months 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
« no previous file with comments | « chrome/browser/signin/signin_manager.cc ('k') | chrome/browser/signin/token_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/signin/token_service.h
===================================================================
--- chrome/browser/signin/token_service.h (revision 177312)
+++ chrome/browser/signin/token_service.h (working copy)
@@ -143,8 +143,8 @@
// called.
bool TokensLoadedFromDB() const;
- // Returns true if the token service has all credentials needed to fetch
- // tokens.
+ // Returns true if the token service has either GAIA credentials or OAuth2
+ // tokens needed to fetch other service tokens.
virtual bool AreCredentialsValid() const;
// Tokens will be fetched for all services(sync, talk) in the background.
@@ -159,6 +159,7 @@
// Typical use is to create an OAuth2 token for appropriate scope and then
// use that token to call a Google API.
virtual bool HasOAuthLoginToken() const;
+ virtual bool HasOAuthLoginAccessToken() const;
virtual const std::string& GetOAuth2LoginRefreshToken() const;
const std::string& GetOAuth2LoginAccessToken() const;
@@ -182,6 +183,9 @@
const WDTypedResult* result) OVERRIDE;
protected:
+ // Saves OAuth2 credentials.
+ void SaveOAuth2Credentials(const ClientOAuthResult& result);
+
void set_tokens_loaded(bool loaded) {
tokens_loaded_ = loaded;
}
« no previous file with comments | « chrome/browser/signin/signin_manager.cc ('k') | chrome/browser/signin/token_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698