| 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 CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_GAIA_SCREEN_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_GAIA_SCREEN_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_GAIA_SCREEN_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_GAIA_SCREEN_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| 11 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
| 12 #include "base/macros.h" | 12 #include "base/macros.h" |
| 13 | 13 |
| 14 namespace chromeos { | 14 namespace chromeos { |
| 15 | 15 |
| 16 class LoginDisplayWebUIHandler; | 16 class GaiaView; |
| 17 class GaiaScreenHandler; | |
| 18 | 17 |
| 19 // This class represents GAIA screen: login screen that is responsible for | 18 // This class represents GAIA screen: login screen that is responsible for |
| 20 // GAIA-based sign-in. | 19 // GAIA-based sign-in. |
| 21 class GaiaScreen { | 20 class GaiaScreen { |
| 22 public: | 21 public: |
| 23 GaiaScreen(); | 22 GaiaScreen() = default; |
| 24 virtual ~GaiaScreen(); | 23 virtual ~GaiaScreen() = default; |
| 25 void SetLegacyHandler(LoginDisplayWebUIHandler* handler); | 24 |
| 26 void SetScreenHandler(GaiaScreenHandler* handler); | 25 void set_view(GaiaView* view) { view_ = view; } |
| 26 |
| 27 void MaybePreloadAuthExtension(); | 27 void MaybePreloadAuthExtension(); |
| 28 | 28 |
| 29 private: | 29 private: |
| 30 LoginDisplayWebUIHandler* legacy_handler_; | 30 GaiaView* view_ = nullptr; |
| 31 GaiaScreenHandler* screen_handler_; | |
| 32 | 31 |
| 33 DISALLOW_COPY_AND_ASSIGN(GaiaScreen); | 32 DISALLOW_COPY_AND_ASSIGN(GaiaScreen); |
| 34 }; | 33 }; |
| 35 | 34 |
| 36 } // namespace chromeos | 35 } // namespace chromeos |
| 37 | 36 |
| 38 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_GAIA_SCREEN_H_ | 37 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_GAIA_SCREEN_H_ |
| OLD | NEW |