| 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_AUTH_STATUS_CONSUMER_H_ | 5 #ifndef CHROMEOS_LOGIN_AUTH_AUTH_STATUS_CONSUMER_H_ |
| 6 #define CHROMEOS_LOGIN_AUTH_AUTH_STATUS_CONSUMER_H_ | 6 #define CHROMEOS_LOGIN_AUTH_AUTH_STATUS_CONSUMER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 // The current login attempt has ended in failure, with error |error|. | 114 // The current login attempt has ended in failure, with error |error|. |
| 115 virtual void OnAuthFailure(const AuthFailure& error) = 0; | 115 virtual void OnAuthFailure(const AuthFailure& error) = 0; |
| 116 | 116 |
| 117 // The current login attempt has succeeded for |user_context|. | 117 // The current login attempt has succeeded for |user_context|. |
| 118 virtual void OnAuthSuccess(const UserContext& user_context) = 0; | 118 virtual void OnAuthSuccess(const UserContext& user_context) = 0; |
| 119 // The current guest login attempt has succeeded. | 119 // The current guest login attempt has succeeded. |
| 120 virtual void OnOffTheRecordAuthSuccess() {} | 120 virtual void OnOffTheRecordAuthSuccess() {} |
| 121 // The same password didn't work both online and offline. | 121 // The same password didn't work both online and offline. |
| 122 virtual void OnPasswordChangeDetected(); | 122 virtual void OnPasswordChangeDetected(); |
| 123 // The cryptohome is encrypted in old format and needs migration. | 123 // The cryptohome is encrypted in old format and needs migration. |
| 124 virtual void OnOldEncryptionDetected(); | 124 virtual void OnOldEncryptionDetected(const UserContext& user_context); |
| 125 }; | 125 }; |
| 126 | 126 |
| 127 } // namespace chromeos | 127 } // namespace chromeos |
| 128 | 128 |
| 129 #endif // CHROMEOS_LOGIN_AUTH_AUTH_STATUS_CONSUMER_H_ | 129 #endif // CHROMEOS_LOGIN_AUTH_AUTH_STATUS_CONSUMER_H_ |
| OLD | NEW |