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

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

Issue 9466022: Changes to the sign in manager in preparation for one-click sign in. This CL (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Fixed tests, added more docs Created 8 years, 10 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 | « no previous file | chrome/browser/signin/signin_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/signin/signin_manager.h
===================================================================
--- chrome/browser/signin/signin_manager.h (revision 124627)
+++ chrome/browser/signin/signin_manager.h (working copy)
@@ -82,6 +82,11 @@
// attempt.
void ProvideSecondFactorAccessCode(const std::string& access_code);
+ // Attempt to sign in this user with existing credentials from the cookie jar.
+ // Otherwise the result is the same as StartSignIn().
+ virtual void StartSignInWithCredentials(const std::string& username,
+ const std::string& password);
+
// Sign a user out, removing the preference, erasing all keys
// associated with the user, and canceling all auth in progress.
virtual void SignOut();
@@ -101,10 +106,20 @@
virtual void OnClientLoginSuccess(const ClientLoginResult& result) OVERRIDE;
virtual void OnClientLoginFailure(
const GoogleServiceAuthError& error) OVERRIDE;
+ virtual void OnOAuthLoginTokenSuccess(const std::string& refresh_token,
+ const std::string& access_token,
+ int expires_in_secs) OVERRIDE;
+ virtual void OnOAuthLoginTokenFailure(
+ const GoogleServiceAuthError& error) OVERRIDE;
virtual void OnGetUserInfoSuccess(const UserInfoMap& data) OVERRIDE;
virtual void OnGetUserInfoFailure(
const GoogleServiceAuthError& error) OVERRIDE;
+ virtual void OnTokenAuthSuccess(const net::ResponseCookies& cookies,
+ const std::string& data) OVERRIDE;
virtual void OnTokenAuthFailure(const GoogleServiceAuthError& error) OVERRIDE;
+ virtual void OnUberAuthTokenSuccess(const std::string& token) OVERRIDE;
+ virtual void OnUberAuthTokenFailure(
+ const GoogleServiceAuthError& error) OVERRIDE;
// content::NotificationObserver
virtual void Observe(int type,
@@ -123,6 +138,11 @@
// restarts we can use the old token(which might throw a password error).
void ClearTransientSigninData();
+ // Called to handle an error from a GAIA auth fetch. Sets the last error
+ // to |error|, sends out a notification of login failure, and clears the
+ // transient signin data.
+ void HandleAuthError(const GoogleServiceAuthError& error);
+
Profile* profile_;
// ClientLogin identity.
« no previous file with comments | « no previous file | chrome/browser/signin/signin_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698