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 a public cryptohome and notifies the consumer on the |
136 // success/failure. | 136 // success/failure. If |force_guest| is true, instead we mount a guest |
137 virtual void LoginAsKioskAccount( | 137 // cryptohome (which is ephemeral), otherwise the mount is non-ephemeral. |
138 const std::string& app_user_id, bool force_ephemeral) OVERRIDE; | 138 // If the |DeviceEphemeralUsersEnabled| policy is enabled, even if |
139 // force_guest is false, a (non-guest) ephemeral cryptohome will be mounted. | |
bartfab (slow)
2014/03/25 12:52:54
This looks correct but a bit convoluted, in that i
rkc
2014/03/26 21:30:40
Done.
| |
140 virtual void LoginAsKioskAccount(const std::string& app_user_id, | |
141 bool force_guest) OVERRIDE; | |
139 | 142 |
140 // These methods must be called on the UI thread, as they make DBus calls | 143 // These methods must be called on the UI thread, as they make DBus calls |
141 // and also call back to the login UI. | 144 // and also call back to the login UI. |
142 virtual void OnRetailModeLoginSuccess() OVERRIDE; | 145 virtual void OnRetailModeLoginSuccess() OVERRIDE; |
143 virtual void OnLoginSuccess() OVERRIDE; | 146 virtual void OnLoginSuccess() OVERRIDE; |
144 virtual void OnLoginFailure(const LoginFailure& error) OVERRIDE; | 147 virtual void OnLoginFailure(const LoginFailure& error) OVERRIDE; |
145 virtual void RecoverEncryptedData( | 148 virtual void RecoverEncryptedData( |
146 const std::string& old_password) OVERRIDE; | 149 const std::string& old_password) OVERRIDE; |
147 virtual void ResyncEncryptedData() OVERRIDE; | 150 virtual void ResyncEncryptedData() OVERRIDE; |
148 | 151 |
(...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 | 247 // When |remove_user_data_on_failure_| is set, we delay calling |
245 // consumer_->OnLoginFailure() until we removed the user cryptohome. | 248 // consumer_->OnLoginFailure() until we removed the user cryptohome. |
246 const LoginFailure* delayed_login_failure_; | 249 const LoginFailure* delayed_login_failure_; |
247 | 250 |
248 DISALLOW_COPY_AND_ASSIGN(ParallelAuthenticator); | 251 DISALLOW_COPY_AND_ASSIGN(ParallelAuthenticator); |
249 }; | 252 }; |
250 | 253 |
251 } // namespace chromeos | 254 } // namespace chromeos |
252 | 255 |
253 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_PARALLEL_AUTHENTICATOR_H_ | 256 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_PARALLEL_AUTHENTICATOR_H_ |
OLD | NEW |