| 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 <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 bool use_guest_mount); | 84 bool use_guest_mount); |
| 85 | 85 |
| 86 // Performs a login into the ARC kiosk mode account with |arc_app_account_id|. | 86 // Performs a login into the ARC kiosk mode account with |arc_app_account_id|. |
| 87 void LoginAsArcKioskAccount(const AccountId& arc_app_account_id); | 87 void LoginAsArcKioskAccount(const AccountId& arc_app_account_id); |
| 88 | 88 |
| 89 // AuthStatusConsumer implementation: | 89 // AuthStatusConsumer implementation: |
| 90 void OnAuthFailure(const AuthFailure& error) override; | 90 void OnAuthFailure(const AuthFailure& error) override; |
| 91 void OnAuthSuccess(const UserContext& user_context) override; | 91 void OnAuthSuccess(const UserContext& user_context) override; |
| 92 void OnOffTheRecordAuthSuccess() override; | 92 void OnOffTheRecordAuthSuccess() override; |
| 93 void OnPasswordChangeDetected() override; | 93 void OnPasswordChangeDetected() override; |
| 94 void OnOldEncryptionDetected() override; | 94 void OnOldEncryptionDetected(const UserContext& user_context) override; |
| 95 | 95 |
| 96 // Migrates cryptohome using |old_password| specified. | 96 // Migrates cryptohome using |old_password| specified. |
| 97 void RecoverEncryptedData(const std::string& old_password); | 97 void RecoverEncryptedData(const std::string& old_password); |
| 98 | 98 |
| 99 // Reinitializes cryptohome with the new password. | 99 // Reinitializes cryptohome with the new password. |
| 100 void ResyncEncryptedData(); | 100 void ResyncEncryptedData(); |
| 101 | 101 |
| 102 // Returns latest auth error. | 102 // Returns latest auth error. |
| 103 const GoogleServiceAuthError& error() const { | 103 const GoogleServiceAuthError& error() const { |
| 104 return last_login_failure_.error(); | 104 return last_login_failure_.error(); |
| (...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 224 // Authorization mode type. | 224 // Authorization mode type. |
| 225 AuthorizationMode auth_mode_; | 225 AuthorizationMode auth_mode_; |
| 226 | 226 |
| 227 base::WeakPtrFactory<LoginPerformer> weak_factory_; | 227 base::WeakPtrFactory<LoginPerformer> weak_factory_; |
| 228 DISALLOW_COPY_AND_ASSIGN(LoginPerformer); | 228 DISALLOW_COPY_AND_ASSIGN(LoginPerformer); |
| 229 }; | 229 }; |
| 230 | 230 |
| 231 } // namespace chromeos | 231 } // namespace chromeos |
| 232 | 232 |
| 233 #endif // CHROMEOS_LOGIN_AUTH_LOGIN_PERFORMER_H_ | 233 #endif // CHROMEOS_LOGIN_AUTH_LOGIN_PERFORMER_H_ |
| OLD | NEW |