| 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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 |
| 86 // Performs a login into the kiosk mode account with |app_user_id|. | 86 // Performs a login into the kiosk mode account with |app_user_id|. |
| 87 void LoginAsKioskAccount(const std::string& app_user_id, | 87 void LoginAsKioskAccount(const std::string& app_user_id, |
| 88 bool force_ephemeral); | 88 bool force_guest); |
| 89 | 89 |
| 90 // Migrates cryptohome using |old_password| specified. | 90 // Migrates cryptohome using |old_password| specified. |
| 91 void RecoverEncryptedData(const std::string& old_password); | 91 void RecoverEncryptedData(const std::string& old_password); |
| 92 | 92 |
| 93 // Reinitializes cryptohome with the new password. | 93 // Reinitializes cryptohome with the new password. |
| 94 void ResyncEncryptedData(); | 94 void ResyncEncryptedData(); |
| 95 | 95 |
| 96 // Returns latest auth error. | 96 // Returns latest auth error. |
| 97 const GoogleServiceAuthError& error() const { | 97 const GoogleServiceAuthError& error() const { |
| 98 return last_login_failure_.error(); | 98 return last_login_failure_.error(); |
| (...skipping 61 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_LOGIN_PERFORMER_H_ | 169 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_PERFORMER_H_ |
| OLD | NEW |