| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_AUTH_LOGIN_PERFORMER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_AUTH_LOGIN_PERFORMER_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_AUTH_LOGIN_PERFORMER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_AUTH_LOGIN_PERFORMER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 virtual void WhiteListCheckFailed(const std::string& email) = 0; | 51 virtual void WhiteListCheckFailed(const std::string& email) = 0; |
| 52 virtual void PolicyLoadFailed() = 0; | 52 virtual void PolicyLoadFailed() = 0; |
| 53 virtual void OnOnlineChecked(const std::string& email, bool success) = 0; | 53 virtual void OnOnlineChecked(const std::string& email, bool success) = 0; |
| 54 }; | 54 }; |
| 55 | 55 |
| 56 explicit LoginPerformer(Delegate* delegate); | 56 explicit LoginPerformer(Delegate* delegate); |
| 57 virtual ~LoginPerformer(); | 57 virtual ~LoginPerformer(); |
| 58 | 58 |
| 59 // AuthStatusConsumer implementation: | 59 // AuthStatusConsumer implementation: |
| 60 virtual void OnAuthFailure(const AuthFailure& error) OVERRIDE; | 60 virtual void OnAuthFailure(const AuthFailure& error) OVERRIDE; |
| 61 virtual void OnRetailModeAuthSuccess( | |
| 62 const UserContext& user_context) OVERRIDE; | |
| 63 virtual void OnAuthSuccess(const UserContext& user_context) OVERRIDE; | 61 virtual void OnAuthSuccess(const UserContext& user_context) OVERRIDE; |
| 64 virtual void OnOffTheRecordAuthSuccess() OVERRIDE; | 62 virtual void OnOffTheRecordAuthSuccess() OVERRIDE; |
| 65 virtual void OnPasswordChangeDetected() OVERRIDE; | 63 virtual void OnPasswordChangeDetected() OVERRIDE; |
| 66 | 64 |
| 67 // Performs a login for |user_context|. | 65 // Performs a login for |user_context|. |
| 68 // If auth_mode is AUTH_MODE_EXTENSION, there are no further auth checks, | 66 // If auth_mode is AUTH_MODE_EXTENSION, there are no further auth checks, |
| 69 // AUTH_MODE_INTERNAL will perform auth checks. | 67 // AUTH_MODE_INTERNAL will perform auth checks. |
| 70 void PerformLogin(const UserContext& user_context, | 68 void PerformLogin(const UserContext& user_context, |
| 71 AuthorizationMode auth_mode); | 69 AuthorizationMode auth_mode); |
| 72 | 70 |
| 73 // Performs supervised user login with a given |user_context|. | 71 // Performs supervised user login with a given |user_context|. |
| 74 void LoginAsSupervisedUser(const UserContext& user_context); | 72 void LoginAsSupervisedUser(const UserContext& user_context); |
| 75 | 73 |
| 76 // Performs retail mode login. | |
| 77 void LoginRetailMode(); | |
| 78 | |
| 79 // Performs actions to prepare guest mode login. | 74 // Performs actions to prepare guest mode login. |
| 80 void LoginOffTheRecord(); | 75 void LoginOffTheRecord(); |
| 81 | 76 |
| 82 // Performs public session login with a given |user_context|. | 77 // Performs public session login with a given |user_context|. |
| 83 void LoginAsPublicSession(const UserContext& user_context); | 78 void LoginAsPublicSession(const UserContext& user_context); |
| 84 | 79 |
| 85 // Performs a login into the kiosk mode account with |app_user_id|. | 80 // Performs a login into the kiosk mode account with |app_user_id|. |
| 86 void LoginAsKioskAccount(const std::string& app_user_id, | 81 void LoginAsKioskAccount(const std::string& app_user_id, |
| 87 bool use_guest_mount); | 82 bool use_guest_mount); |
| 88 | 83 |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 159 scoped_ptr<policy::WildcardLoginChecker> wildcard_login_checker_; | 154 scoped_ptr<policy::WildcardLoginChecker> wildcard_login_checker_; |
| 160 | 155 |
| 161 base::WeakPtrFactory<LoginPerformer> weak_factory_; | 156 base::WeakPtrFactory<LoginPerformer> weak_factory_; |
| 162 | 157 |
| 163 DISALLOW_COPY_AND_ASSIGN(LoginPerformer); | 158 DISALLOW_COPY_AND_ASSIGN(LoginPerformer); |
| 164 }; | 159 }; |
| 165 | 160 |
| 166 } // namespace chromeos | 161 } // namespace chromeos |
| 167 | 162 |
| 168 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_AUTH_LOGIN_PERFORMER_H_ | 163 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_AUTH_LOGIN_PERFORMER_H_ |
| OLD | NEW |