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_LOGIN_PERFORMER_H_ | 5 #ifndef CHROMEOS_LOGIN_AUTH_LOGIN_PERFORMER_H_ |
6 #define CHROMEOS_LOGIN_AUTH_LOGIN_PERFORMER_H_ | 6 #define CHROMEOS_LOGIN_AUTH_LOGIN_PERFORMER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 | 72 |
73 // Performs supervised user login with a given |user_context|. | 73 // Performs supervised user login with a given |user_context|. |
74 void LoginAsSupervisedUser(const UserContext& user_context); | 74 void LoginAsSupervisedUser(const UserContext& user_context); |
75 | 75 |
76 // Performs actions to prepare guest mode login. | 76 // Performs actions to prepare guest mode login. |
77 void LoginOffTheRecord(); | 77 void LoginOffTheRecord(); |
78 | 78 |
79 // Performs public session login with a given |user_context|. | 79 // Performs public session login with a given |user_context|. |
80 void LoginAsPublicSession(const UserContext& user_context); | 80 void LoginAsPublicSession(const UserContext& user_context); |
81 | 81 |
82 // Performs a login into the kiosk mode account with |app_user_id|. | 82 // Performs a login into the kiosk mode account with |app_account_id|. |
83 void LoginAsKioskAccount(const std::string& app_user_id, | 83 void LoginAsKioskAccount(const AccountId& app_account_id, |
84 bool use_guest_mount); | 84 bool use_guest_mount); |
85 | 85 |
86 // AuthStatusConsumer implementation: | 86 // AuthStatusConsumer implementation: |
87 void OnAuthFailure(const AuthFailure& error) override; | 87 void OnAuthFailure(const AuthFailure& error) override; |
88 void OnAuthSuccess(const UserContext& user_context) override; | 88 void OnAuthSuccess(const UserContext& user_context) override; |
89 void OnOffTheRecordAuthSuccess() override; | 89 void OnOffTheRecordAuthSuccess() override; |
90 void OnPasswordChangeDetected() override; | 90 void OnPasswordChangeDetected() override; |
91 | 91 |
92 // Migrates cryptohome using |old_password| specified. | 92 // Migrates cryptohome using |old_password| specified. |
93 void RecoverEncryptedData(const std::string& old_password); | 93 void RecoverEncryptedData(const std::string& old_password); |
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
220 // Authorization mode type. | 220 // Authorization mode type. |
221 AuthorizationMode auth_mode_; | 221 AuthorizationMode auth_mode_; |
222 | 222 |
223 base::WeakPtrFactory<LoginPerformer> weak_factory_; | 223 base::WeakPtrFactory<LoginPerformer> weak_factory_; |
224 DISALLOW_COPY_AND_ASSIGN(LoginPerformer); | 224 DISALLOW_COPY_AND_ASSIGN(LoginPerformer); |
225 }; | 225 }; |
226 | 226 |
227 } // namespace chromeos | 227 } // namespace chromeos |
228 | 228 |
229 #endif // CHROMEOS_LOGIN_AUTH_LOGIN_PERFORMER_H_ | 229 #endif // CHROMEOS_LOGIN_AUTH_LOGIN_PERFORMER_H_ |
OLD | NEW |