| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_PERFORMER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_PERFORMER_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_PERFORMER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_PERFORMER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 // Delegate class to get notifications from the LoginPerformer. | 34 // Delegate class to get notifications from the LoginPerformer. |
| 35 class Delegate : public LoginStatusConsumer { | 35 class Delegate : public LoginStatusConsumer { |
| 36 public: | 36 public: |
| 37 virtual ~Delegate() {} | 37 virtual ~Delegate() {} |
| 38 virtual void WhiteListCheckFailed(const std::string& email) = 0; | 38 virtual void WhiteListCheckFailed(const std::string& email) = 0; |
| 39 }; | 39 }; |
| 40 | 40 |
| 41 explicit LoginPerformer(Delegate* delegate); | 41 explicit LoginPerformer(Delegate* delegate); |
| 42 | 42 |
| 43 // LoginStatusConsumer implementation: | 43 // LoginStatusConsumer implementation: |
| 44 virtual void SetLoginFailure(const LoginFailure& failure); |
| 44 virtual void OnLoginFailure(const LoginFailure& error); | 45 virtual void OnLoginFailure(const LoginFailure& error); |
| 45 virtual void OnLoginSuccess( | 46 virtual void OnLoginSuccess( |
| 46 const std::string& username, | 47 const std::string& username, |
| 47 const std::string& password, | 48 const std::string& password, |
| 48 const GaiaAuthConsumer::ClientLoginResult& credentials, | 49 const GaiaAuthConsumer::ClientLoginResult& credentials, |
| 49 bool pending_requests); | 50 bool pending_requests); |
| 50 virtual void OnOffTheRecordLoginSuccess(); | 51 virtual void OnOffTheRecordLoginSuccess(); |
| 51 virtual void OnPasswordChangeDetected( | 52 virtual void OnPasswordChangeDetected( |
| 52 const GaiaAuthConsumer::ClientLoginResult& credentials); | 53 const GaiaAuthConsumer::ClientLoginResult& credentials); |
| 53 | 54 |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 | 107 |
| 107 // Notifications receiver. | 108 // Notifications receiver. |
| 108 Delegate* delegate_; | 109 Delegate* delegate_; |
| 109 | 110 |
| 110 DISALLOW_COPY_AND_ASSIGN(LoginPerformer); | 111 DISALLOW_COPY_AND_ASSIGN(LoginPerformer); |
| 111 }; | 112 }; |
| 112 | 113 |
| 113 } // namespace chromeos | 114 } // namespace chromeos |
| 114 | 115 |
| 115 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_PERFORMER_H_ | 116 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_PERFORMER_H_ |
| OLD | NEW |