| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 // Implements OnlineAttemptHost::Delegate. | 110 // Implements OnlineAttemptHost::Delegate. |
| 111 virtual void OnChecked(const std::string& username, bool success) OVERRIDE; | 111 virtual void OnChecked(const std::string& username, bool success) OVERRIDE; |
| 112 | 112 |
| 113 private: | 113 private: |
| 114 // Starts login completion of externally authenticated user. | 114 // Starts login completion of externally authenticated user. |
| 115 void StartLoginCompletion(); | 115 void StartLoginCompletion(); |
| 116 | 116 |
| 117 // Starts authentication. | 117 // Starts authentication. |
| 118 void StartAuthentication(); | 118 void StartAuthentication(); |
| 119 | 119 |
| 120 // Completion callback for the online wildcard login check for enterprise |
| 121 // devices. Continues the login process or signals whitelist check failure |
| 122 // depending on the value of |result|. |
| 123 void OnlineWildcardLoginCheckCompleted(bool result); |
| 124 |
| 120 // Used for logging in. | 125 // Used for logging in. |
| 121 scoped_refptr<Authenticator> authenticator_; | 126 scoped_refptr<Authenticator> authenticator_; |
| 122 | 127 |
| 123 // Used to make auxiliary online check. | 128 // Used to make auxiliary online check. |
| 124 OnlineAttemptHost online_attempt_host_; | 129 OnlineAttemptHost online_attempt_host_; |
| 125 | 130 |
| 126 // Represents last login failure that was encountered when communicating to | 131 // Represents last login failure that was encountered when communicating to |
| 127 // sign-in server. LoginFailure.LoginFailureNone() by default. | 132 // sign-in server. LoginFailure.LoginFailureNone() by default. |
| 128 LoginFailure last_login_failure_; | 133 LoginFailure last_login_failure_; |
| 129 | 134 |
| (...skipping 12 matching lines...) Expand all Loading... |
| 142 AuthorizationMode auth_mode_; | 147 AuthorizationMode auth_mode_; |
| 143 | 148 |
| 144 base::WeakPtrFactory<LoginPerformer> weak_factory_; | 149 base::WeakPtrFactory<LoginPerformer> weak_factory_; |
| 145 | 150 |
| 146 DISALLOW_COPY_AND_ASSIGN(LoginPerformer); | 151 DISALLOW_COPY_AND_ASSIGN(LoginPerformer); |
| 147 }; | 152 }; |
| 148 | 153 |
| 149 } // namespace chromeos | 154 } // namespace chromeos |
| 150 | 155 |
| 151 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_PERFORMER_H_ | 156 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_PERFORMER_H_ |
| OLD | NEW |