| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_LOGIN_PERFORMER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_PERFORMER_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_PERFORMER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_PERFORMER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 // Performs retail mode login. | 75 // Performs retail mode login. |
| 76 void LoginRetailMode(); | 76 void LoginRetailMode(); |
| 77 | 77 |
| 78 // Performs actions to prepare guest mode login. | 78 // Performs actions to prepare guest mode login. |
| 79 void LoginOffTheRecord(); | 79 void LoginOffTheRecord(); |
| 80 | 80 |
| 81 // Performs a login into the public account identified by |username|. | 81 // Performs a login into the public account identified by |username|. |
| 82 void LoginAsPublicAccount(const std::string& username); | 82 void LoginAsPublicAccount(const std::string& username); |
| 83 | 83 |
| 84 // Performs a login into the kiosk mode account with |app_user_id|. | 84 // Performs a login into the kiosk mode account with |app_user_id|. |
| 85 void LoginAsKioskAccount(const std::string& app_user_id); | 85 void LoginAsKioskAccount(const std::string& app_user_id, |
| 86 bool force_ephemeral); |
| 86 | 87 |
| 87 // Migrates cryptohome using |old_password| specified. | 88 // Migrates cryptohome using |old_password| specified. |
| 88 void RecoverEncryptedData(const std::string& old_password); | 89 void RecoverEncryptedData(const std::string& old_password); |
| 89 | 90 |
| 90 // Reinitializes cryptohome with the new password. | 91 // Reinitializes cryptohome with the new password. |
| 91 void ResyncEncryptedData(); | 92 void ResyncEncryptedData(); |
| 92 | 93 |
| 93 // Returns latest auth error. | 94 // Returns latest auth error. |
| 94 const GoogleServiceAuthError& error() const { | 95 const GoogleServiceAuthError& error() const { |
| 95 return last_login_failure_.error(); | 96 return last_login_failure_.error(); |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 155 scoped_ptr<policy::WildcardLoginChecker> wildcard_login_checker_; | 156 scoped_ptr<policy::WildcardLoginChecker> wildcard_login_checker_; |
| 156 | 157 |
| 157 base::WeakPtrFactory<LoginPerformer> weak_factory_; | 158 base::WeakPtrFactory<LoginPerformer> weak_factory_; |
| 158 | 159 |
| 159 DISALLOW_COPY_AND_ASSIGN(LoginPerformer); | 160 DISALLOW_COPY_AND_ASSIGN(LoginPerformer); |
| 160 }; | 161 }; |
| 161 | 162 |
| 162 } // namespace chromeos | 163 } // namespace chromeos |
| 163 | 164 |
| 164 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_PERFORMER_H_ | 165 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_PERFORMER_H_ |
| OLD | NEW |