| 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 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 197 void UpdateState(NetworkError::ErrorReason reason); | 197 void UpdateState(NetworkError::ErrorReason reason); |
| 198 | 198 |
| 199 // TODO (antrim@): remove this dependency. | 199 // TODO (antrim@): remove this dependency. |
| 200 void SetSigninScreenHandler(SigninScreenHandler* handler); | 200 void SetSigninScreenHandler(SigninScreenHandler* handler); |
| 201 | 201 |
| 202 SigninScreenHandlerDelegate* Delegate(); | 202 SigninScreenHandlerDelegate* Delegate(); |
| 203 | 203 |
| 204 // Returns temporary unused device Id. | 204 // Returns temporary unused device Id. |
| 205 std::string GetTemporaryDeviceId(); | 205 std::string GetTemporaryDeviceId(); |
| 206 | 206 |
| 207 // Returns user canonical e-mail. Finds already used account alias, if |
| 208 // user has already signed in. |
| 209 std::string GetCanonicalEmail(const std::string& authenticated_email, |
| 210 const std::string& gaia_id) const; |
| 211 |
| 207 // Current state of Gaia frame. | 212 // Current state of Gaia frame. |
| 208 FrameState frame_state_; | 213 FrameState frame_state_; |
| 209 | 214 |
| 210 // Latest Gaia frame error. | 215 // Latest Gaia frame error. |
| 211 net::Error frame_error_; | 216 net::Error frame_error_; |
| 212 | 217 |
| 213 // Network state informer used to keep signin screen up. | 218 // Network state informer used to keep signin screen up. |
| 214 scoped_refptr<NetworkStateInformer> network_state_informer_; | 219 scoped_refptr<NetworkStateInformer> network_state_informer_; |
| 215 | 220 |
| 216 // Consumer management service for checking if enrollment is in progress. | 221 // Consumer management service for checking if enrollment is in progress. |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 265 scoped_ptr<ScopedGaiaAuthExtension> auth_extension_; | 270 scoped_ptr<ScopedGaiaAuthExtension> auth_extension_; |
| 266 | 271 |
| 267 base::WeakPtrFactory<GaiaScreenHandler> weak_factory_; | 272 base::WeakPtrFactory<GaiaScreenHandler> weak_factory_; |
| 268 | 273 |
| 269 DISALLOW_COPY_AND_ASSIGN(GaiaScreenHandler); | 274 DISALLOW_COPY_AND_ASSIGN(GaiaScreenHandler); |
| 270 }; | 275 }; |
| 271 | 276 |
| 272 } // namespace chromeos | 277 } // namespace chromeos |
| 273 | 278 |
| 274 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_GAIA_SCREEN_HANDLER_H_ | 279 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_GAIA_SCREEN_HANDLER_H_ |
| OLD | NEW |