OLD | NEW |
---|---|
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_WIZARD_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_WIZARD_CONTROLLER_H_ |
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_WIZARD_CONTROLLER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_WIZARD_CONTROLLER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
302 | 302 |
303 // Called from SimpleGeolocationProvider when location is resolved. | 303 // Called from SimpleGeolocationProvider when location is resolved. |
304 void OnLocationResolved(const Geoposition& position, | 304 void OnLocationResolved(const Geoposition& position, |
305 bool server_error, | 305 bool server_error, |
306 const base::TimeDelta elapsed); | 306 const base::TimeDelta elapsed); |
307 | 307 |
308 // Returns true if callback has been installed. | 308 // Returns true if callback has been installed. |
309 // Returns false if timezone has already been resolved. | 309 // Returns false if timezone has already been resolved. |
310 bool SetOnTimeZoneResolvedForTesting(const base::Closure& callback); | 310 bool SetOnTimeZoneResolvedForTesting(const base::Closure& callback); |
311 | 311 |
312 // Callback for enrollment auth token. | |
313 void OnEnrollmentAuthTokenReceived(const std::string& auth_token); | |
314 | |
312 // Whether to skip any screens that may normally be shown after login | 315 // Whether to skip any screens that may normally be shown after login |
313 // (registration, Terms of Service, user image selection). | 316 // (registration, Terms of Service, user image selection). |
314 static bool skip_post_login_screens_; | 317 static bool skip_post_login_screens_; |
315 | 318 |
316 static bool zero_delay_enabled_; | 319 static bool zero_delay_enabled_; |
317 | 320 |
318 // Screens. | 321 // Screens. |
319 scoped_ptr<NetworkScreen> network_screen_; | 322 scoped_ptr<NetworkScreen> network_screen_; |
320 scoped_ptr<UpdateScreen> update_screen_; | 323 scoped_ptr<UpdateScreen> update_screen_; |
321 scoped_ptr<UserImageScreen> user_image_screen_; | 324 scoped_ptr<UserImageScreen> user_image_screen_; |
(...skipping 13 matching lines...) Expand all Loading... | |
335 scoped_ptr<HostPairingScreen> host_pairing_screen_; | 338 scoped_ptr<HostPairingScreen> host_pairing_screen_; |
336 | 339 |
337 // Screen that's currently active. | 340 // Screen that's currently active. |
338 WizardScreen* current_screen_; | 341 WizardScreen* current_screen_; |
339 | 342 |
340 // Screen that was active before, or NULL for login screen. | 343 // Screen that was active before, or NULL for login screen. |
341 WizardScreen* previous_screen_; | 344 WizardScreen* previous_screen_; |
342 | 345 |
343 std::string username_; | 346 std::string username_; |
344 std::string password_; | 347 std::string password_; |
348 std::string auth_token_; | |
bartfab (slow)
2014/07/16 10:09:15
Nit: There are no users of this memeber yet. Docum
achuithb
2014/08/13 01:57:43
That's not true? It's set by OnEnrollmentAuthToken
| |
345 | 349 |
346 // True if running official BUILD. | 350 // True if running official BUILD. |
347 bool is_official_build_; | 351 bool is_official_build_; |
348 | 352 |
349 // True if full OOBE flow should be shown. | 353 // True if full OOBE flow should be shown. |
350 bool is_out_of_box_; | 354 bool is_out_of_box_; |
351 | 355 |
352 // Value of the screen name that WizardController was started with. | 356 // Value of the screen name that WizardController was started with. |
353 std::string first_screen_name_; | 357 std::string first_screen_name_; |
354 | 358 |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
412 base::Closure on_timezone_resolved_for_testing_; | 416 base::Closure on_timezone_resolved_for_testing_; |
413 | 417 |
414 base::WeakPtrFactory<WizardController> weak_factory_; | 418 base::WeakPtrFactory<WizardController> weak_factory_; |
415 | 419 |
416 DISALLOW_COPY_AND_ASSIGN(WizardController); | 420 DISALLOW_COPY_AND_ASSIGN(WizardController); |
417 }; | 421 }; |
418 | 422 |
419 } // namespace chromeos | 423 } // namespace chromeos |
420 | 424 |
421 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_WIZARD_CONTROLLER_H_ | 425 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_WIZARD_CONTROLLER_H_ |
OLD | NEW |