| 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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 virtual void OnAuthSuccess(const UserContext& user_context) OVERRIDE; | 64 virtual void OnAuthSuccess(const UserContext& user_context) OVERRIDE; |
| 65 virtual void OnOffTheRecordAuthSuccess() OVERRIDE; | 65 virtual void OnOffTheRecordAuthSuccess() OVERRIDE; |
| 66 virtual void OnPasswordChangeDetected() OVERRIDE; | 66 virtual void OnPasswordChangeDetected() OVERRIDE; |
| 67 | 67 |
| 68 // Performs a login for |user_context|. | 68 // Performs a login for |user_context|. |
| 69 // If auth_mode is AUTH_MODE_EXTENSION, there are no further auth checks, | 69 // If auth_mode is AUTH_MODE_EXTENSION, there are no further auth checks, |
| 70 // AUTH_MODE_INTERNAL will perform auth checks. | 70 // AUTH_MODE_INTERNAL will perform auth checks. |
| 71 void PerformLogin(const UserContext& user_context, | 71 void PerformLogin(const UserContext& user_context, |
| 72 AuthorizationMode auth_mode); | 72 AuthorizationMode auth_mode); |
| 73 | 73 |
| 74 // Performs locally managed user login with a given |user_context|. | 74 // Performs supervised user login with a given |user_context|. |
| 75 void LoginAsLocallyManagedUser(const UserContext& user_context); | 75 void LoginAsSupervisedUser(const UserContext& user_context); |
| 76 | 76 |
| 77 // Performs retail mode login. | 77 // Performs retail mode login. |
| 78 void LoginRetailMode(); | 78 void LoginRetailMode(); |
| 79 | 79 |
| 80 // Performs actions to prepare guest mode login. | 80 // Performs actions to prepare guest mode login. |
| 81 void LoginOffTheRecord(); | 81 void LoginOffTheRecord(); |
| 82 | 82 |
| 83 // Performs a login into the public account identified by |username|. | 83 // Performs a login into the public account identified by |username|. |
| 84 void LoginAsPublicAccount(const std::string& username); | 84 void LoginAsPublicAccount(const std::string& username); |
| 85 | 85 |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 160 scoped_ptr<policy::WildcardLoginChecker> wildcard_login_checker_; | 160 scoped_ptr<policy::WildcardLoginChecker> wildcard_login_checker_; |
| 161 | 161 |
| 162 base::WeakPtrFactory<LoginPerformer> weak_factory_; | 162 base::WeakPtrFactory<LoginPerformer> weak_factory_; |
| 163 | 163 |
| 164 DISALLOW_COPY_AND_ASSIGN(LoginPerformer); | 164 DISALLOW_COPY_AND_ASSIGN(LoginPerformer); |
| 165 }; | 165 }; |
| 166 | 166 |
| 167 } // namespace chromeos | 167 } // namespace chromeos |
| 168 | 168 |
| 169 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_AUTH_LOGIN_PERFORMER_H_ | 169 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_AUTH_LOGIN_PERFORMER_H_ |
| OLD | NEW |