| 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 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 bool using_saml); | 126 bool using_saml); |
| 127 | 127 |
| 128 void HandleUsingSAMLAPI(); | 128 void HandleUsingSAMLAPI(); |
| 129 void HandleScrapedPasswordCount(int password_count); | 129 void HandleScrapedPasswordCount(int password_count); |
| 130 void HandleScrapedPasswordVerificationFailed(); | 130 void HandleScrapedPasswordVerificationFailed(); |
| 131 | 131 |
| 132 void HandleGaiaUIReady(); | 132 void HandleGaiaUIReady(); |
| 133 | 133 |
| 134 void HandleToggleEasyBootstrap(); | 134 void HandleToggleEasyBootstrap(); |
| 135 | 135 |
| 136 void HandleAttemptLogin(const std::string& email); |
| 137 |
| 136 void HandleToggleWebviewSignin(); | 138 void HandleToggleWebviewSignin(); |
| 137 | 139 |
| 138 // This is called when ConsumerManagementService::SetOwner() returns. | 140 // This is called when ConsumerManagementService::SetOwner() returns. |
| 139 void OnSetOwnerDone(const std::string& gaia_id, | 141 void OnSetOwnerDone(const std::string& gaia_id, |
| 140 const std::string& typed_email, | 142 const std::string& typed_email, |
| 141 const std::string& password, | 143 const std::string& password, |
| 142 bool using_saml, | 144 bool using_saml, |
| 143 bool success); | 145 bool success); |
| 144 | 146 |
| 145 // Really handles the complete login message. | 147 // Really handles the complete login message. |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 261 | 263 |
| 262 // Non-owning ptr to SigninScreenHandler instance. Should not be used | 264 // Non-owning ptr to SigninScreenHandler instance. Should not be used |
| 263 // in dtor. | 265 // in dtor. |
| 264 // TODO (antrim@): GaiaScreenHandler shouldn't communicate with | 266 // TODO (antrim@): GaiaScreenHandler shouldn't communicate with |
| 265 // signin_screen_handler directly. | 267 // signin_screen_handler directly. |
| 266 SigninScreenHandler* signin_screen_handler_; | 268 SigninScreenHandler* signin_screen_handler_; |
| 267 | 269 |
| 268 // GAIA extension loader. | 270 // GAIA extension loader. |
| 269 scoped_ptr<ScopedGaiaAuthExtension> auth_extension_; | 271 scoped_ptr<ScopedGaiaAuthExtension> auth_extension_; |
| 270 | 272 |
| 273 // Temporary DeviceId to be used for new users. |
| 274 // (constant as Gaia screen is destroyed on successful login). |
| 275 const std::string temporary_device_id_; |
| 276 |
| 271 base::WeakPtrFactory<GaiaScreenHandler> weak_factory_; | 277 base::WeakPtrFactory<GaiaScreenHandler> weak_factory_; |
| 272 | 278 |
| 273 DISALLOW_COPY_AND_ASSIGN(GaiaScreenHandler); | 279 DISALLOW_COPY_AND_ASSIGN(GaiaScreenHandler); |
| 274 }; | 280 }; |
| 275 | 281 |
| 276 } // namespace chromeos | 282 } // namespace chromeos |
| 277 | 283 |
| 278 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_GAIA_SCREEN_HANDLER_H_ | 284 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_GAIA_SCREEN_HANDLER_H_ |
| OLD | NEW |