| 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_SIGNIN_SCREEN_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_SIGNIN_SCREEN_CONTROLLER_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SIGNIN_SCREEN_CONTROLLER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SIGNIN_SCREEN_CONTROLLER_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "chrome/browser/chromeos/login/screens/gaia_screen.h" | 9 #include "chrome/browser/chromeos/login/screens/gaia_screen.h" |
| 10 #include "chrome/browser/chromeos/login/screens/user_selection_screen.h" | 10 #include "chrome/browser/chromeos/login/screens/user_selection_screen.h" |
| 11 #include "chrome/browser/chromeos/login/ui/login_display_host.h" | 11 #include "chrome/browser/chromeos/login/ui/login_display_host.h" |
| 12 #include "components/user_manager/remove_user_delegate.h" | 12 #include "components/user_manager/remove_user_delegate.h" |
| 13 #include "components/user_manager/user.h" | 13 #include "components/user_manager/user.h" |
| 14 #include "content/public/browser/notification_observer.h" | 14 #include "content/public/browser/notification_observer.h" |
| 15 #include "content/public/browser/notification_registrar.h" | 15 #include "content/public/browser/notification_registrar.h" |
| 16 | 16 |
| 17 class AccountId; | 17 class AccountId; |
| 18 | 18 |
| 19 namespace chromeos { | 19 namespace chromeos { |
| 20 | 20 |
| 21 class LoginDisplayWebUIHandler; | 21 class LoginDisplayWebUIHandler; |
| 22 class OobeUI; | 22 class OobeUI; |
| 23 | 23 |
| 24 // Class that manages control flow between wizard screens. Wizard controller | 24 // Class that manages control flow between wizard screens. Wizard controller |
| 25 // interacts with screen controllers to move the user between screens. | 25 // interacts with screen controllers to move the user between screens. |
| 26 // |
| 27 // This class is allocated when the signin or lock screen is actually visible to |
| 28 // the user. It is a 'per-session' class; SignInScreenHandler, in comparsion, is |
| 29 // tied to the WebContents lifetime and therefore may live beyond this class. |
| 26 class SignInScreenController : public user_manager::RemoveUserDelegate, | 30 class SignInScreenController : public user_manager::RemoveUserDelegate, |
| 27 public content::NotificationObserver { | 31 public content::NotificationObserver { |
| 28 public: | 32 public: |
| 29 SignInScreenController(OobeUI* oobe_ui, | 33 SignInScreenController(OobeUI* oobe_ui, |
| 30 LoginDisplay::Delegate* login_display_delegate); | 34 LoginDisplay::Delegate* login_display_delegate); |
| 31 ~SignInScreenController() override; | 35 ~SignInScreenController() override; |
| 32 | 36 |
| 33 // Returns the default wizard controller if it has been created. | 37 // Returns the default wizard controller if it has been created. |
| 34 static SignInScreenController* Get() { return instance_; } | 38 static SignInScreenController* Get() { return instance_; } |
| 35 | 39 |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 | 78 |
| 75 // Used for notifications during the login process. | 79 // Used for notifications during the login process. |
| 76 content::NotificationRegistrar registrar_; | 80 content::NotificationRegistrar registrar_; |
| 77 | 81 |
| 78 DISALLOW_COPY_AND_ASSIGN(SignInScreenController); | 82 DISALLOW_COPY_AND_ASSIGN(SignInScreenController); |
| 79 }; | 83 }; |
| 80 | 84 |
| 81 } // namespace chromeos | 85 } // namespace chromeos |
| 82 | 86 |
| 83 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SIGNIN_SCREEN_CONTROLLER_H_ | 87 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SIGNIN_SCREEN_CONTROLLER_H_ |
| OLD | NEW |