| Index: chrome/browser/chromeos/login/google_authenticator.h
|
| diff --git a/chrome/browser/chromeos/login/google_authenticator.h b/chrome/browser/chromeos/login/google_authenticator.h
|
| index 619dd688e255d45aa923d36a5e015d0fa882cbe4..2257bca9c0ba95afecdefbae18c69d59a7310993 100644
|
| --- a/chrome/browser/chromeos/login/google_authenticator.h
|
| +++ b/chrome/browser/chromeos/login/google_authenticator.h
|
| @@ -39,11 +39,15 @@ class GoogleAuthenticator : public Authenticator,
|
| // authentication cookies or a callback to consumer_->OnLoginFailure() with
|
| // an error message. Uses |profile| when doing URL fetches.
|
| // Should be called on the FILE thread!
|
| + // Optionally could pass CAPTCHA challenge token - |login_token| and
|
| + // |login_captcha| string that user has entered.
|
| //
|
| // Returns true if the attempt gets sent successfully and false if not.
|
| bool AuthenticateToLogin(Profile* profile,
|
| const std::string& username,
|
| - const std::string& password);
|
| + const std::string& password,
|
| + const std::string& login_token,
|
| + const std::string& login_captcha);
|
|
|
| // Given a |username| and |password|, this method attempts to
|
| // authenticate to the cached credentials. This will never contact
|
| @@ -149,6 +153,9 @@ class GoogleAuthenticator : public Authenticator,
|
| // The format of said POST body.
|
| static const char kFormat[];
|
|
|
| + // The format of said POST body when CAPTCHA token & answer are specified.
|
| + static const char kFormatCaptcha[];
|
| +
|
| // Magic string indicating that, while a second factor is still
|
| // needed to complete authentication, the user provided the right password.
|
| static const char kSecondFactor[];
|
|
|