| 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 <memory> | 9 #include <memory> |
| 10 #include <set> | 10 #include <set> |
| 11 #include <string> | 11 #include <string> |
| 12 | 12 |
| 13 #include "ash/public/interfaces/touch_view.mojom.h" | 13 #include "ash/public/interfaces/touch_view.mojom.h" |
| 14 #include "base/callback.h" | 14 #include "base/callback.h" |
| 15 #include "base/compiler_specific.h" | 15 #include "base/compiler_specific.h" |
| 16 #include "base/containers/hash_tables.h" | 16 #include "base/containers/hash_tables.h" |
| 17 #include "base/macros.h" | 17 #include "base/macros.h" |
| 18 #include "base/memory/ref_counted.h" | 18 #include "base/memory/ref_counted.h" |
| 19 #include "base/memory/weak_ptr.h" | 19 #include "base/memory/weak_ptr.h" |
| 20 #include "chrome/browser/chromeos/login/screens/error_screen.h" | 20 #include "chrome/browser/chromeos/login/screens/error_screen.h" |
| 21 #include "chrome/browser/chromeos/login/signin_specifics.h" | 21 #include "chrome/browser/chromeos/login/signin_specifics.h" |
| 22 #include "chrome/browser/chromeos/login/ui/login_display.h" | 22 #include "chrome/browser/chromeos/login/ui/login_display.h" |
| 23 #include "chrome/browser/chromeos/settings/cros_settings.h" | 23 #include "chrome/browser/chromeos/settings/cros_settings.h" |
| 24 #include "chrome/browser/ui/webui/chromeos/login/base_screen_handler.h" | 24 #include "chrome/browser/ui/webui/chromeos/login/base_webui_handler.h" |
| 25 #include "chrome/browser/ui/webui/chromeos/login/network_state_informer.h" | 25 #include "chrome/browser/ui/webui/chromeos/login/network_state_informer.h" |
| 26 #include "chrome/browser/ui/webui/chromeos/login/oobe_ui.h" | 26 #include "chrome/browser/ui/webui/chromeos/login/oobe_ui.h" |
| 27 #include "chromeos/dbus/power_manager_client.h" | 27 #include "chromeos/dbus/power_manager_client.h" |
| 28 #include "chromeos/network/portal_detector/network_portal_detector.h" | 28 #include "chromeos/network/portal_detector/network_portal_detector.h" |
| 29 #include "components/proximity_auth/screenlock_bridge.h" | 29 #include "components/proximity_auth/screenlock_bridge.h" |
| 30 #include "components/user_manager/user_manager.h" | 30 #include "components/user_manager/user_manager.h" |
| 31 #include "content/public/browser/notification_observer.h" | 31 #include "content/public/browser/notification_observer.h" |
| 32 #include "content/public/browser/notification_registrar.h" | 32 #include "content/public/browser/notification_registrar.h" |
| 33 #include "content/public/browser/web_ui.h" | 33 #include "content/public/browser/web_ui.h" |
| 34 #include "mojo/public/cpp/bindings/binding.h" | 34 #include "mojo/public/cpp/bindings/binding.h" |
| (...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 211 // Returns true if user is allowed to log in by domain policy. | 211 // Returns true if user is allowed to log in by domain policy. |
| 212 virtual bool IsUserWhitelisted(const AccountId& account_id) = 0; | 212 virtual bool IsUserWhitelisted(const AccountId& account_id) = 0; |
| 213 | 213 |
| 214 protected: | 214 protected: |
| 215 virtual ~SigninScreenHandlerDelegate() {} | 215 virtual ~SigninScreenHandlerDelegate() {} |
| 216 }; | 216 }; |
| 217 | 217 |
| 218 // A class that handles the WebUI hooks in sign-in screen in OobeUI and | 218 // A class that handles the WebUI hooks in sign-in screen in OobeUI and |
| 219 // LoginDisplay. | 219 // LoginDisplay. |
| 220 class SigninScreenHandler | 220 class SigninScreenHandler |
| 221 : public BaseScreenHandler, | 221 : public BaseWebUIHandler, |
| 222 public LoginDisplayWebUIHandler, | 222 public LoginDisplayWebUIHandler, |
| 223 public content::NotificationObserver, | 223 public content::NotificationObserver, |
| 224 public NetworkStateInformer::NetworkStateInformerObserver, | 224 public NetworkStateInformer::NetworkStateInformerObserver, |
| 225 public PowerManagerClient::Observer, | 225 public PowerManagerClient::Observer, |
| 226 public input_method::ImeKeyboard::Observer, | 226 public input_method::ImeKeyboard::Observer, |
| 227 public ash::mojom::TouchViewObserver, | 227 public ash::mojom::TouchViewObserver, |
| 228 public OobeUI::Observer { | 228 public OobeUI::Observer { |
| 229 public: | 229 public: |
| 230 SigninScreenHandler( | 230 SigninScreenHandler( |
| 231 const scoped_refptr<NetworkStateInformer>& network_state_informer, | 231 const scoped_refptr<NetworkStateInformer>& network_state_informer, |
| (...skipping 303 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 535 std::unique_ptr<AccountId> focused_pod_account_id_; | 535 std::unique_ptr<AccountId> focused_pod_account_id_; |
| 536 | 536 |
| 537 base::WeakPtrFactory<SigninScreenHandler> weak_factory_; | 537 base::WeakPtrFactory<SigninScreenHandler> weak_factory_; |
| 538 | 538 |
| 539 DISALLOW_COPY_AND_ASSIGN(SigninScreenHandler); | 539 DISALLOW_COPY_AND_ASSIGN(SigninScreenHandler); |
| 540 }; | 540 }; |
| 541 | 541 |
| 542 } // namespace chromeos | 542 } // namespace chromeos |
| 543 | 543 |
| 544 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_SIGNIN_SCREEN_HANDLER_H_ | 544 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_SIGNIN_SCREEN_HANDLER_H_ |
| OLD | NEW |