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 <string> | 8 #include <string> |
9 | 9 |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
127 // Initiates login into a public session. | 127 // Initiates login into a public session. |
128 // Mounts an ephemeral cryptohome and notifies consumer on the | 128 // Mounts an ephemeral cryptohome and notifies consumer on the |
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_user_id|. | 132 // Initiates login into the kiosk mode account identified by |app_user_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 std::string& app_user_id, | 137 void LoginAsKioskAccount(const user_manager::UserID& app_user_id, |
138 bool use_guest_mount) override; | 138 bool use_guest_mount) override; |
139 | 139 |
140 // 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 |
141 // and also call back to the login UI. | 141 // and also call back to the login UI. |
142 void OnAuthSuccess() override; | 142 void OnAuthSuccess() override; |
143 void OnAuthFailure(const AuthFailure& error) override; | 143 void OnAuthFailure(const AuthFailure& error) override; |
144 void RecoverEncryptedData(const std::string& old_password) override; | 144 void RecoverEncryptedData(const std::string& old_password) override; |
145 void ResyncEncryptedData() override; | 145 void ResyncEncryptedData() override; |
146 | 146 |
147 // AuthAttemptStateResolver overrides. | 147 // AuthAttemptStateResolver overrides. |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
257 // When |remove_user_data_on_failure_| is set, we delay calling | 257 // When |remove_user_data_on_failure_| is set, we delay calling |
258 // consumer_->OnAuthFailure() until we removed the user cryptohome. | 258 // consumer_->OnAuthFailure() until we removed the user cryptohome. |
259 const AuthFailure* delayed_login_failure_; | 259 const AuthFailure* delayed_login_failure_; |
260 | 260 |
261 DISALLOW_COPY_AND_ASSIGN(CryptohomeAuthenticator); | 261 DISALLOW_COPY_AND_ASSIGN(CryptohomeAuthenticator); |
262 }; | 262 }; |
263 | 263 |
264 } // namespace chromeos | 264 } // namespace chromeos |
265 | 265 |
266 #endif // CHROMEOS_LOGIN_AUTH_CRYPTOHOME_AUTHENTICATOR_H_ | 266 #endif // CHROMEOS_LOGIN_AUTH_CRYPTOHOME_AUTHENTICATOR_H_ |
OLD | NEW |