| 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_PARALLEL_AUTHENTICATOR_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_PARALLEL_AUTHENTICATOR_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_PARALLEL_AUTHENTICATOR_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_PARALLEL_AUTHENTICATOR_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 127 virtual void LoginOffTheRecord() OVERRIDE; | 127 virtual void LoginOffTheRecord() OVERRIDE; |
| 128 | 128 |
| 129 // Initiates login into the public account identified by |username|. | 129 // Initiates login into the public account identified by |username|. |
| 130 // Mounts an ephemeral cryptohome and notifies consumer on the | 130 // Mounts an ephemeral cryptohome and notifies consumer on the |
| 131 // success/failure. | 131 // success/failure. |
| 132 virtual void LoginAsPublicAccount(const std::string& username) OVERRIDE; | 132 virtual void LoginAsPublicAccount(const std::string& username) OVERRIDE; |
| 133 | 133 |
| 134 // Initiates login into the kiosk mode account identified by |app_user_id|. | 134 // Initiates login into the kiosk mode account identified by |app_user_id|. |
| 135 // Mounts an public but non-ephemeral cryptohome and notifies consumer on the | 135 // Mounts an public but non-ephemeral cryptohome and notifies consumer on the |
| 136 // success/failure. | 136 // success/failure. |
| 137 virtual void LoginAsKioskAccount(const std::string& app_user_id) OVERRIDE; | 137 virtual void LoginAsKioskAccount( |
| 138 const std::string& app_user_id, bool force_ephemeral) OVERRIDE; |
| 138 | 139 |
| 139 // These methods must be called on the UI thread, as they make DBus calls | 140 // These methods must be called on the UI thread, as they make DBus calls |
| 140 // and also call back to the login UI. | 141 // and also call back to the login UI. |
| 141 virtual void OnRetailModeLoginSuccess() OVERRIDE; | 142 virtual void OnRetailModeLoginSuccess() OVERRIDE; |
| 142 virtual void OnLoginSuccess() OVERRIDE; | 143 virtual void OnLoginSuccess() OVERRIDE; |
| 143 virtual void OnLoginFailure(const LoginFailure& error) OVERRIDE; | 144 virtual void OnLoginFailure(const LoginFailure& error) OVERRIDE; |
| 144 virtual void RecoverEncryptedData( | 145 virtual void RecoverEncryptedData( |
| 145 const std::string& old_password) OVERRIDE; | 146 const std::string& old_password) OVERRIDE; |
| 146 virtual void ResyncEncryptedData() OVERRIDE; | 147 virtual void ResyncEncryptedData() OVERRIDE; |
| 147 | 148 |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 243 // When |remove_user_data_on_failure_| is set, we delay calling | 244 // When |remove_user_data_on_failure_| is set, we delay calling |
| 244 // consumer_->OnLoginFailure() until we removed the user cryptohome. | 245 // consumer_->OnLoginFailure() until we removed the user cryptohome. |
| 245 const LoginFailure* delayed_login_failure_; | 246 const LoginFailure* delayed_login_failure_; |
| 246 | 247 |
| 247 DISALLOW_COPY_AND_ASSIGN(ParallelAuthenticator); | 248 DISALLOW_COPY_AND_ASSIGN(ParallelAuthenticator); |
| 248 }; | 249 }; |
| 249 | 250 |
| 250 } // namespace chromeos | 251 } // namespace chromeos |
| 251 | 252 |
| 252 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_PARALLEL_AUTHENTICATOR_H_ | 253 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_PARALLEL_AUTHENTICATOR_H_ |
| OLD | NEW |