Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(243)

Side by Side Diff: chromeos/login/auth/cryptohome_authenticator.h

Issue 2498613003: Add ARC++ kiosk menu items and ability to start kiosk session. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chromeos/login/auth/authenticator.h ('k') | chromeos/login/auth/cryptohome_authenticator.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 139
140 // Initiates login into the ARC kiosk mode account identified by
141 // |app_account_id|.
142 // Mounts a public cryptohome, which will be ephemeral if the
143 // |DeviceEphemeralUsersEnabled| policy is enabled and non-ephemeral
144 // otherwise.
145 void LoginAsArcKioskAccount(const AccountId& app_account_id) override;
146
140 // These methods must be called on the UI thread, as they make DBus calls 147 // These methods must be called on the UI thread, as they make DBus calls
141 // and also call back to the login UI. 148 // and also call back to the login UI.
142 void OnAuthSuccess() override; 149 void OnAuthSuccess() override;
143 void OnAuthFailure(const AuthFailure& error) override; 150 void OnAuthFailure(const AuthFailure& error) override;
144 void RecoverEncryptedData(const std::string& old_password) override; 151 void RecoverEncryptedData(const std::string& old_password) override;
145 void ResyncEncryptedData() override; 152 void ResyncEncryptedData() override;
146 153
147 // AuthAttemptStateResolver overrides. 154 // AuthAttemptStateResolver overrides.
148 // Attempts to make a decision and call back |consumer_| based on 155 // Attempts to make a decision and call back |consumer_| based on
149 // the state we have gathered at the time of call. If a decision 156 // the state we have gathered at the time of call. If a decision
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
257 // When |remove_user_data_on_failure_| is set, we delay calling 264 // When |remove_user_data_on_failure_| is set, we delay calling
258 // consumer_->OnAuthFailure() until we removed the user cryptohome. 265 // consumer_->OnAuthFailure() until we removed the user cryptohome.
259 const AuthFailure* delayed_login_failure_; 266 const AuthFailure* delayed_login_failure_;
260 267
261 DISALLOW_COPY_AND_ASSIGN(CryptohomeAuthenticator); 268 DISALLOW_COPY_AND_ASSIGN(CryptohomeAuthenticator);
262 }; 269 };
263 270
264 } // namespace chromeos 271 } // namespace chromeos
265 272
266 #endif // CHROMEOS_LOGIN_AUTH_CRYPTOHOME_AUTHENTICATOR_H_ 273 #endif // CHROMEOS_LOGIN_AUTH_CRYPTOHOME_AUTHENTICATOR_H_
OLDNEW
« no previous file with comments | « chromeos/login/auth/authenticator.h ('k') | chromeos/login/auth/cryptohome_authenticator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698