OLD | NEW |
---|---|
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 CHROMEOS_LOGIN_AUTH_CRYPTOHOME_AUTHENTICATOR_H_ | 5 #ifndef CHROMEOS_LOGIN_AUTH_CRYPTOHOME_AUTHENTICATOR_H_ |
6 #define CHROMEOS_LOGIN_AUTH_CRYPTOHOME_AUTHENTICATOR_H_ | 6 #define CHROMEOS_LOGIN_AUTH_CRYPTOHOME_AUTHENTICATOR_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
129 // success/failure. | 129 // success/failure. |
130 void LoginAsPublicSession(const UserContext& user_context) override; | 130 void LoginAsPublicSession(const UserContext& user_context) override; |
131 | 131 |
132 // Initiates login into the kiosk mode account identified by |app_account_id|. | 132 // Initiates login into the kiosk mode account identified by |app_account_id|. |
133 // Mounts an ephemeral guest cryptohome if |use_guest_mount| is |true|. | 133 // Mounts an ephemeral guest cryptohome if |use_guest_mount| is |true|. |
134 // Otherwise, mounts a public cryptohome, which will be ephemeral if the | 134 // Otherwise, mounts a public cryptohome, which will be ephemeral if the |
135 // |DeviceEphemeralUsersEnabled| policy is enabled and non-ephemeral | 135 // |DeviceEphemeralUsersEnabled| policy is enabled and non-ephemeral |
136 // otherwise. | 136 // otherwise. |
137 void LoginAsKioskAccount(const AccountId& app_account_id, | 137 void LoginAsKioskAccount(const AccountId& app_account_id, |
138 bool use_guest_mount) override; | 138 bool use_guest_mount) override; |
139 // Initiates login into the ARC kiosk mode account identified by | |
hidehiko
2016/11/14 05:29:24
nit: insert an empty line for consistency?
Sergey Poromov
2016/11/14 17:23:23
Done.
| |
140 // |app_account_id|. | |
141 // Mounts a public cryptohome, which will be ephemeral if the | |
142 // |DeviceEphemeralUsersEnabled| policy is enabled and non-ephemeral | |
143 // otherwise. | |
144 void LoginAsArcKioskAccount(const AccountId& app_account_id) override; | |
139 | 145 |
140 // These methods must be called on the UI thread, as they make DBus calls | 146 // These methods must be called on the UI thread, as they make DBus calls |
141 // and also call back to the login UI. | 147 // and also call back to the login UI. |
142 void OnAuthSuccess() override; | 148 void OnAuthSuccess() override; |
143 void OnAuthFailure(const AuthFailure& error) override; | 149 void OnAuthFailure(const AuthFailure& error) override; |
144 void RecoverEncryptedData(const std::string& old_password) override; | 150 void RecoverEncryptedData(const std::string& old_password) override; |
145 void ResyncEncryptedData() override; | 151 void ResyncEncryptedData() override; |
146 | 152 |
147 // AuthAttemptStateResolver overrides. | 153 // AuthAttemptStateResolver overrides. |
148 // Attempts to make a decision and call back |consumer_| based on | 154 // Attempts to make a decision and call back |consumer_| based on |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
257 // When |remove_user_data_on_failure_| is set, we delay calling | 263 // When |remove_user_data_on_failure_| is set, we delay calling |
258 // consumer_->OnAuthFailure() until we removed the user cryptohome. | 264 // consumer_->OnAuthFailure() until we removed the user cryptohome. |
259 const AuthFailure* delayed_login_failure_; | 265 const AuthFailure* delayed_login_failure_; |
260 | 266 |
261 DISALLOW_COPY_AND_ASSIGN(CryptohomeAuthenticator); | 267 DISALLOW_COPY_AND_ASSIGN(CryptohomeAuthenticator); |
262 }; | 268 }; |
263 | 269 |
264 } // namespace chromeos | 270 } // namespace chromeos |
265 | 271 |
266 #endif // CHROMEOS_LOGIN_AUTH_CRYPTOHOME_AUTHENTICATOR_H_ | 272 #endif // CHROMEOS_LOGIN_AUTH_CRYPTOHOME_AUTHENTICATOR_H_ |
OLD | NEW |