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 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
182 // Whether user sign in has completed. | 182 // Whether user sign in has completed. |
183 virtual bool IsUserSigninCompleted() const = 0; | 183 virtual bool IsUserSigninCompleted() const = 0; |
184 | 184 |
185 // Request to (re)load user list. | 185 // Request to (re)load user list. |
186 virtual void HandleGetUsers() = 0; | 186 virtual void HandleGetUsers() = 0; |
187 | 187 |
188 // Runs an OAuth token validation check for user. | 188 // Runs an OAuth token validation check for user. |
189 virtual void CheckUserStatus(const AccountId& account_id) = 0; | 189 virtual void CheckUserStatus(const AccountId& account_id) = 0; |
190 | 190 |
191 // Returns true if user is allowed to log in by domain policy. | 191 // Returns true if user is allowed to log in by domain policy. |
192 virtual bool IsUserWhitelisted(const std::string& user_id) = 0; | 192 virtual bool IsUserWhitelisted(const AccountId& account_id) = 0; |
193 | 193 |
194 protected: | 194 protected: |
195 virtual ~SigninScreenHandlerDelegate() {} | 195 virtual ~SigninScreenHandlerDelegate() {} |
196 }; | 196 }; |
197 | 197 |
198 // A class that handles the WebUI hooks in sign-in screen in OobeDisplay | 198 // A class that handles the WebUI hooks in sign-in screen in OobeDisplay |
199 // and LoginDisplay. | 199 // and LoginDisplay. |
200 class SigninScreenHandler | 200 class SigninScreenHandler |
201 : public BaseScreenHandler, | 201 : public BaseScreenHandler, |
202 public LoginDisplayWebUIHandler, | 202 public LoginDisplayWebUIHandler, |
(...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
485 scoped_ptr<ErrorScreensHistogramHelper> histogram_helper_; | 485 scoped_ptr<ErrorScreensHistogramHelper> histogram_helper_; |
486 | 486 |
487 base::WeakPtrFactory<SigninScreenHandler> weak_factory_; | 487 base::WeakPtrFactory<SigninScreenHandler> weak_factory_; |
488 | 488 |
489 DISALLOW_COPY_AND_ASSIGN(SigninScreenHandler); | 489 DISALLOW_COPY_AND_ASSIGN(SigninScreenHandler); |
490 }; | 490 }; |
491 | 491 |
492 } // namespace chromeos | 492 } // namespace chromeos |
493 | 493 |
494 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_SIGNIN_SCREEN_HANDLER_H_ | 494 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_SIGNIN_SCREEN_HANDLER_H_ |
OLD | NEW |