| 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/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 133 // not (may be relevant for extension-based sign-in). | 133 // not (may be relevant for extension-based sign-in). |
| 134 virtual bool IsUserWhitelisted(const std::string& user_id, | 134 virtual bool IsUserWhitelisted(const std::string& user_id, |
| 135 bool* wildcard_match) = 0; | 135 bool* wildcard_match) = 0; |
| 136 | 136 |
| 137 // This method should run addional online check if user can sign in on device. | 137 // This method should run addional online check if user can sign in on device. |
| 138 // Either |success_callback| or |failure_callback| should be called upon this | 138 // Either |success_callback| or |failure_callback| should be called upon this |
| 139 // check. | 139 // check. |
| 140 virtual void RunOnlineWhitelistCheck( | 140 virtual void RunOnlineWhitelistCheck( |
| 141 const std::string& user_id, | 141 const std::string& user_id, |
| 142 bool wildcard_match, | 142 bool wildcard_match, |
| 143 const std::string& refresh_token, |
| 143 const base::Closure& success_callback, | 144 const base::Closure& success_callback, |
| 144 const base::Closure& failure_callback) = 0; | 145 const base::Closure& failure_callback) = 0; |
| 145 | 146 |
| 146 // Supervised users-related methods. | 147 // Supervised users-related methods. |
| 147 | 148 |
| 148 // Check if supervised users are allowed on this device. | 149 // Check if supervised users are allowed on this device. |
| 149 virtual bool AreSupervisedUsersAllowed() = 0; | 150 virtual bool AreSupervisedUsersAllowed() = 0; |
| 150 | 151 |
| 151 // Check which authenticator should be used for supervised user. | 152 // Check which authenticator should be used for supervised user. |
| 152 virtual bool UseExtendedAuthenticatorForSupervisedUser( | 153 virtual bool UseExtendedAuthenticatorForSupervisedUser( |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 229 // TODO(antrim): remove once we got rid of /ClientLogin. | 230 // TODO(antrim): remove once we got rid of /ClientLogin. |
| 230 bool disable_client_login_; | 231 bool disable_client_login_; |
| 231 | 232 |
| 232 base::WeakPtrFactory<LoginPerformer> weak_factory_; | 233 base::WeakPtrFactory<LoginPerformer> weak_factory_; |
| 233 DISALLOW_COPY_AND_ASSIGN(LoginPerformer); | 234 DISALLOW_COPY_AND_ASSIGN(LoginPerformer); |
| 234 }; | 235 }; |
| 235 | 236 |
| 236 } // namespace chromeos | 237 } // namespace chromeos |
| 237 | 238 |
| 238 #endif // CHROMEOS_LOGIN_AUTH_LOGIN_PERFORMER_H_ | 239 #endif // CHROMEOS_LOGIN_AUTH_LOGIN_PERFORMER_H_ |
| OLD | NEW |