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 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
125 // Initiates incognito ("browse without signing in") login. | 125 // Initiates incognito ("browse without signing in") login. |
126 // Mounts tmpfs and notifies consumer on the success/failure. | 126 // Mounts tmpfs and notifies consumer on the success/failure. |
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 and notifies consumer on the success/failure. If |
bartfab (slow)
2014/03/20 13:22:29
"Mounts an public" is missing a few words :).
rkc
2014/03/20 21:45:01
Done.
| |
136 // success/failure. | 136 // |force_guest| is true, instead we mount a guest mount (which is |
bartfab (slow)
2014/03/20 13:22:29
"If [...], instead we [...], otherwise the mount [
rkc
2014/03/20 21:45:01
Changed the comment around to make it clearer.
| |
137 virtual void LoginAsKioskAccount( | 137 // ephemeral), otherwise the mount is non-ephemeral (unless specified |
138 const std::string& app_user_id, bool force_ephemeral) OVERRIDE; | 138 // by enterprise policy that it should be ephemeral). |
139 virtual void LoginAsKioskAccount(const std::string& app_user_id, | |
140 bool force_guest) OVERRIDE; | |
139 | 141 |
140 // These methods must be called on the UI thread, as they make DBus calls | 142 // These methods must be called on the UI thread, as they make DBus calls |
141 // and also call back to the login UI. | 143 // and also call back to the login UI. |
142 virtual void OnRetailModeLoginSuccess() OVERRIDE; | 144 virtual void OnRetailModeLoginSuccess() OVERRIDE; |
143 virtual void OnLoginSuccess() OVERRIDE; | 145 virtual void OnLoginSuccess() OVERRIDE; |
144 virtual void OnLoginFailure(const LoginFailure& error) OVERRIDE; | 146 virtual void OnLoginFailure(const LoginFailure& error) OVERRIDE; |
145 virtual void RecoverEncryptedData( | 147 virtual void RecoverEncryptedData( |
146 const std::string& old_password) OVERRIDE; | 148 const std::string& old_password) OVERRIDE; |
147 virtual void ResyncEncryptedData() OVERRIDE; | 149 virtual void ResyncEncryptedData() OVERRIDE; |
148 | 150 |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
244 // When |remove_user_data_on_failure_| is set, we delay calling | 246 // When |remove_user_data_on_failure_| is set, we delay calling |
245 // consumer_->OnLoginFailure() until we removed the user cryptohome. | 247 // consumer_->OnLoginFailure() until we removed the user cryptohome. |
246 const LoginFailure* delayed_login_failure_; | 248 const LoginFailure* delayed_login_failure_; |
247 | 249 |
248 DISALLOW_COPY_AND_ASSIGN(ParallelAuthenticator); | 250 DISALLOW_COPY_AND_ASSIGN(ParallelAuthenticator); |
249 }; | 251 }; |
250 | 252 |
251 } // namespace chromeos | 253 } // namespace chromeos |
252 | 254 |
253 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_PARALLEL_AUTHENTICATOR_H_ | 255 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_PARALLEL_AUTHENTICATOR_H_ |
OLD | NEW |