| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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_UI_WEBUI_CHROMEOS_LOGIN_SIGNIN_SCREEN_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_SIGNIN_SCREEN_HANDLER_H_ |
| 6 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_SIGNIN_SCREEN_HANDLER_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_SIGNIN_SCREEN_HANDLER_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 186 | 186 |
| 187 // Whether user sign in has completed. | 187 // Whether user sign in has completed. |
| 188 virtual bool IsUserSigninCompleted() const = 0; | 188 virtual bool IsUserSigninCompleted() const = 0; |
| 189 | 189 |
| 190 // Request to (re)load user list. | 190 // Request to (re)load user list. |
| 191 virtual void HandleGetUsers() = 0; | 191 virtual void HandleGetUsers() = 0; |
| 192 | 192 |
| 193 // Runs an OAuth token validation check for user. | 193 // Runs an OAuth token validation check for user. |
| 194 virtual void CheckUserStatus(const std::string& user_id) = 0; | 194 virtual void CheckUserStatus(const std::string& user_id) = 0; |
| 195 | 195 |
| 196 // Returns true if user is allowed to log in by domain policy. |
| 197 virtual bool IsUserWhitelisted(const std::string& user_id) = 0; |
| 198 |
| 196 protected: | 199 protected: |
| 197 virtual ~SigninScreenHandlerDelegate() {} | 200 virtual ~SigninScreenHandlerDelegate() {} |
| 198 }; | 201 }; |
| 199 | 202 |
| 200 // A class that handles the WebUI hooks in sign-in screen in OobeDisplay | 203 // A class that handles the WebUI hooks in sign-in screen in OobeDisplay |
| 201 // and LoginDisplay. | 204 // and LoginDisplay. |
| 202 class SigninScreenHandler | 205 class SigninScreenHandler |
| 203 : public BaseScreenHandler, | 206 : public BaseScreenHandler, |
| 204 public LoginDisplayWebUIHandler, | 207 public LoginDisplayWebUIHandler, |
| 205 public content::NotificationObserver, | 208 public content::NotificationObserver, |
| (...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 496 scoped_ptr<ErrorScreensHistogramHelper> histogram_helper_; | 499 scoped_ptr<ErrorScreensHistogramHelper> histogram_helper_; |
| 497 | 500 |
| 498 base::WeakPtrFactory<SigninScreenHandler> weak_factory_; | 501 base::WeakPtrFactory<SigninScreenHandler> weak_factory_; |
| 499 | 502 |
| 500 DISALLOW_COPY_AND_ASSIGN(SigninScreenHandler); | 503 DISALLOW_COPY_AND_ASSIGN(SigninScreenHandler); |
| 501 }; | 504 }; |
| 502 | 505 |
| 503 } // namespace chromeos | 506 } // namespace chromeos |
| 504 | 507 |
| 505 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_SIGNIN_SCREEN_HANDLER_H_ | 508 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_SIGNIN_SCREEN_HANDLER_H_ |
| OLD | NEW |