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 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
210 bool IsRestrictiveProxy() const; | 210 bool IsRestrictiveProxy() const; |
211 | 211 |
212 SigninScreenHandlerDelegate* Delegate(); | 212 SigninScreenHandlerDelegate* Delegate(); |
213 | 213 |
214 // Returns temporary unused device Id. | 214 // Returns temporary unused device Id. |
215 std::string GetTemporaryDeviceId(); | 215 std::string GetTemporaryDeviceId(); |
216 | 216 |
217 FrameState frame_state() const { return frame_state_; } | 217 FrameState frame_state() const { return frame_state_; } |
218 net::Error frame_error() const { return frame_error_; } | 218 net::Error frame_error() const { return frame_error_; } |
219 | 219 |
| 220 // Returns user canonical e-mail. Finds already used account alias, if |
| 221 // user has already signed in. |
| 222 std::string GetCanonicalEmail(const std::string& authenticated_email, |
| 223 const std::string& gaia_id) const; |
| 224 |
220 // Current state of Gaia frame. | 225 // Current state of Gaia frame. |
221 FrameState frame_state_ = FRAME_STATE_UNKNOWN; | 226 FrameState frame_state_ = FRAME_STATE_UNKNOWN; |
222 | 227 |
223 // Latest Gaia frame error. | 228 // Latest Gaia frame error. |
224 net::Error frame_error_ = net::OK; | 229 net::Error frame_error_ = net::OK; |
225 | 230 |
226 // Network state informer used to keep signin screen up. | 231 // Network state informer used to keep signin screen up. |
227 scoped_refptr<NetworkStateInformer> network_state_informer_; | 232 scoped_refptr<NetworkStateInformer> network_state_informer_; |
228 | 233 |
229 // Consumer management service for checking if enrollment is in progress. | 234 // Consumer management service for checking if enrollment is in progress. |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
284 scoped_ptr<ScopedGaiaAuthExtension> auth_extension_; | 289 scoped_ptr<ScopedGaiaAuthExtension> auth_extension_; |
285 | 290 |
286 base::WeakPtrFactory<GaiaScreenHandler> weak_factory_; | 291 base::WeakPtrFactory<GaiaScreenHandler> weak_factory_; |
287 | 292 |
288 DISALLOW_COPY_AND_ASSIGN(GaiaScreenHandler); | 293 DISALLOW_COPY_AND_ASSIGN(GaiaScreenHandler); |
289 }; | 294 }; |
290 | 295 |
291 } // namespace chromeos | 296 } // namespace chromeos |
292 | 297 |
293 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_GAIA_SCREEN_HANDLER_H_ | 298 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_GAIA_SCREEN_HANDLER_H_ |
OLD | NEW |