| 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 | 13 |
| 13 namespace chromeos { | 14 namespace chromeos { |
| 14 | 15 |
| 15 class LoginDisplayWebUIHandler; | 16 class LoginDisplayWebUIHandler; |
| 16 class GaiaScreenHandler; | 17 class GaiaScreenHandler; |
| 17 | 18 |
| 18 // This class represents GAIA screen: login screen that is responsible for | 19 // This class represents GAIA screen: login screen that is responsible for |
| 19 // GAIA-based sign-in. | 20 // GAIA-based sign-in. |
| 20 class GaiaScreen { | 21 class GaiaScreen { |
| 21 public: | 22 public: |
| 22 GaiaScreen(); | 23 GaiaScreen(); |
| 23 virtual ~GaiaScreen(); | 24 virtual ~GaiaScreen(); |
| 24 void SetLegacyHandler(LoginDisplayWebUIHandler* handler); | 25 void SetLegacyHandler(LoginDisplayWebUIHandler* handler); |
| 25 void SetScreenHandler(GaiaScreenHandler* handler); | 26 void SetScreenHandler(GaiaScreenHandler* handler); |
| 26 void MaybePreloadAuthExtension(); | 27 void MaybePreloadAuthExtension(); |
| 27 | 28 |
| 28 private: | 29 private: |
| 29 LoginDisplayWebUIHandler* legacy_handler_; | 30 LoginDisplayWebUIHandler* legacy_handler_; |
| 30 GaiaScreenHandler* screen_handler_; | 31 GaiaScreenHandler* screen_handler_; |
| 31 | 32 |
| 32 DISALLOW_COPY_AND_ASSIGN(GaiaScreen); | 33 DISALLOW_COPY_AND_ASSIGN(GaiaScreen); |
| 33 }; | 34 }; |
| 34 | 35 |
| 35 } // namespace chromeos | 36 } // namespace chromeos |
| 36 | 37 |
| 37 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_GAIA_SCREEN_H_ | 38 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_GAIA_SCREEN_H_ |
| OLD | NEW |