| Index: chrome/browser/chromeos/login/login_performer.h
|
| diff --git a/chrome/browser/chromeos/login/login_performer.h b/chrome/browser/chromeos/login/login_performer.h
|
| index 43da2a5f9aebd0175e1cda0d212855780eaaa900..db7611ad04f215f8da79e9d62f364c294ac7a093 100644
|
| --- a/chrome/browser/chromeos/login/login_performer.h
|
| +++ b/chrome/browser/chromeos/login/login_performer.h
|
| @@ -54,6 +54,13 @@ class LoginPerformer : public LoginStatusConsumer,
|
| public content::NotificationObserver,
|
| public OnlineAttemptHost::Delegate {
|
| public:
|
| + typedef enum AuthorizationMode {
|
| + // Authorization performed internally by Chrome.
|
| + AUTH_MODE_INTERNAL,
|
| + // Authorization performed by an extension.
|
| + AUTH_MODE_EXTENSION
|
| + } AuthorizationMode;
|
| +
|
| // Delegate class to get notifications from the LoginPerformer.
|
| class Delegate : public LoginStatusConsumer {
|
| public:
|
| @@ -84,12 +91,12 @@ class LoginPerformer : public LoginStatusConsumer,
|
| virtual void OnOffTheRecordLoginSuccess() OVERRIDE;
|
| virtual void OnPasswordChangeDetected() OVERRIDE;
|
|
|
| - // Completes login process that has already been authenticated with
|
| - // provided |username| and |password|.
|
| - void CompleteLogin(const std::string& username, const std::string& password);
|
| -
|
| - // Performs login with the |username| and |password| specified.
|
| - void Login(const std::string& username, const std::string& password);
|
| + // Performs a login for |username| and |password|. If auth_mode is
|
| + // AUTH_MODE_EXTENSION, there are no further auth checks, AUTH_MODE_INTERNAL
|
| + // will perform auth checks.
|
| + void PerformLogin(const std::string& username,
|
| + const std::string& password,
|
| + AuthorizationMode auth_mode);
|
|
|
| // Performs login for the demo user.
|
| void LoginDemoUser();
|
| @@ -127,12 +134,6 @@ class LoginPerformer : public LoginStatusConsumer,
|
|
|
| void set_delegate(Delegate* delegate) { delegate_ = delegate; }
|
|
|
| - typedef enum AuthorizationMode {
|
| - // Authorization performed internally by Chrome.
|
| - AUTH_MODE_INTERNAL,
|
| - // Authorization performed by an extension.
|
| - AUTH_MODE_EXTENSION
|
| - } AuthorizationMode;
|
| AuthorizationMode auth_mode() const { return auth_mode_; }
|
|
|
| protected:
|
|
|