| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 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_GAIA_SCREEN_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_GAIA_SCREEN_HANDLER_H_ |
| 6 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_GAIA_SCREEN_HANDLER_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_GAIA_SCREEN_HANDLER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 virtual ~GaiaScreenHandler(); | 68 virtual ~GaiaScreenHandler(); |
| 69 | 69 |
| 70 void LoadGaia(const GaiaContext& context); | 70 void LoadGaia(const GaiaContext& context); |
| 71 void UpdateGaia(const GaiaContext& context); | 71 void UpdateGaia(const GaiaContext& context); |
| 72 | 72 |
| 73 // Sends request to reload Gaia. If |force_reload| is true, request | 73 // Sends request to reload Gaia. If |force_reload| is true, request |
| 74 // will be sent in any case, otherwise it will be sent only when Gaia is | 74 // will be sent in any case, otherwise it will be sent only when Gaia is |
| 75 // not loading right now. | 75 // not loading right now. |
| 76 void ReloadGaia(bool force_reload); | 76 void ReloadGaia(bool force_reload); |
| 77 | 77 |
| 78 // Reload gaia with embedded signin frame. |
| 79 void SwitchToEmbeddedSignin(); |
| 80 |
| 78 FrameState frame_state() const { return frame_state_; } | 81 FrameState frame_state() const { return frame_state_; } |
| 79 net::Error frame_error() const { return frame_error_; } | 82 net::Error frame_error() const { return frame_error_; } |
| 80 | 83 |
| 81 private: | 84 private: |
| 82 // TODO (ygorshenin@): remove this dependency. | 85 // TODO (ygorshenin@): remove this dependency. |
| 83 friend class SigninScreenHandler; | 86 friend class SigninScreenHandler; |
| 84 | 87 |
| 85 // BaseScreenHandler implementation: | 88 // BaseScreenHandler implementation: |
| 86 virtual void DeclareLocalizedValues(LocalizedValuesBuilder* builder) override; | 89 virtual void DeclareLocalizedValues(LocalizedValuesBuilder* builder) override; |
| 87 virtual void Initialize() override; | 90 virtual void Initialize() override; |
| (...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 207 bool using_saml_api_; | 210 bool using_saml_api_; |
| 208 | 211 |
| 209 // Whether consumer management enrollment is in progress. | 212 // Whether consumer management enrollment is in progress. |
| 210 bool is_enrolling_consumer_management_; | 213 bool is_enrolling_consumer_management_; |
| 211 | 214 |
| 212 // Test credentials. | 215 // Test credentials. |
| 213 std::string test_user_; | 216 std::string test_user_; |
| 214 std::string test_pass_; | 217 std::string test_pass_; |
| 215 bool test_expects_complete_login_; | 218 bool test_expects_complete_login_; |
| 216 | 219 |
| 220 // True if user pressed shortcut to enable embedded signin. |
| 221 bool embedded_signin_enabled_by_shortcut_; |
| 222 |
| 217 // Non-owning ptr to SigninScreenHandler instance. Should not be used | 223 // Non-owning ptr to SigninScreenHandler instance. Should not be used |
| 218 // in dtor. | 224 // in dtor. |
| 219 // TODO (ygorshenin@): GaiaScreenHandler shouldn't communicate with | 225 // TODO (ygorshenin@): GaiaScreenHandler shouldn't communicate with |
| 220 // signin_screen_handler directly. | 226 // signin_screen_handler directly. |
| 221 SigninScreenHandler* signin_screen_handler_; | 227 SigninScreenHandler* signin_screen_handler_; |
| 222 | 228 |
| 223 base::WeakPtrFactory<GaiaScreenHandler> weak_factory_; | 229 base::WeakPtrFactory<GaiaScreenHandler> weak_factory_; |
| 224 | 230 |
| 225 DISALLOW_COPY_AND_ASSIGN(GaiaScreenHandler); | 231 DISALLOW_COPY_AND_ASSIGN(GaiaScreenHandler); |
| 226 }; | 232 }; |
| 227 | 233 |
| 228 } // namespace chromeos | 234 } // namespace chromeos |
| 229 | 235 |
| 230 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_GAIA_SCREEN_HANDLER_H_ | 236 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_GAIA_SCREEN_HANDLER_H_ |
| OLD | NEW |