Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(40)

Side by Side Diff: chrome/browser/chromeos/login/wizard_controller.h

Issue 390443006: Support for remote enrollment. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: bartfab feedback Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 294 matching lines...) Expand 10 before | Expand all | Expand 10 after
305 305
306 // Called from SimpleGeolocationProvider when location is resolved. 306 // Called from SimpleGeolocationProvider when location is resolved.
307 void OnLocationResolved(const Geoposition& position, 307 void OnLocationResolved(const Geoposition& position,
308 bool server_error, 308 bool server_error,
309 const base::TimeDelta elapsed); 309 const base::TimeDelta elapsed);
310 310
311 // Returns true if callback has been installed. 311 // Returns true if callback has been installed.
312 // Returns false if timezone has already been resolved. 312 // Returns false if timezone has already been resolved.
313 bool SetOnTimeZoneResolvedForTesting(const base::Closure& callback); 313 bool SetOnTimeZoneResolvedForTesting(const base::Closure& callback);
314 314
315 // Callback for enrollment auth token.
316 void OnEnrollmentAuthTokenReceived(const std::string& auth_token);
317
315 // Whether to skip any screens that may normally be shown after login 318 // Whether to skip any screens that may normally be shown after login
316 // (registration, Terms of Service, user image selection). 319 // (registration, Terms of Service, user image selection).
317 static bool skip_post_login_screens_; 320 static bool skip_post_login_screens_;
318 321
319 static bool zero_delay_enabled_; 322 static bool zero_delay_enabled_;
320 323
321 // Screens. 324 // Screens.
322 scoped_ptr<NetworkScreen> network_screen_; 325 scoped_ptr<NetworkScreen> network_screen_;
323 scoped_ptr<UpdateScreen> update_screen_; 326 scoped_ptr<UpdateScreen> update_screen_;
324 scoped_ptr<UserImageScreen> user_image_screen_; 327 scoped_ptr<UserImageScreen> user_image_screen_;
(...skipping 12 matching lines...) Expand all
337 scoped_ptr<HostPairingScreen> host_pairing_screen_; 340 scoped_ptr<HostPairingScreen> host_pairing_screen_;
338 341
339 // Screen that's currently active. 342 // Screen that's currently active.
340 WizardScreen* current_screen_; 343 WizardScreen* current_screen_;
341 344
342 // Screen that was active before, or NULL for login screen. 345 // Screen that was active before, or NULL for login screen.
343 WizardScreen* previous_screen_; 346 WizardScreen* previous_screen_;
344 347
345 std::string username_; 348 std::string username_;
346 std::string password_; 349 std::string password_;
350 std::string auth_token_;
347 351
348 // True if running official BUILD. 352 // True if running official BUILD.
349 bool is_official_build_; 353 bool is_official_build_;
350 354
351 // True if full OOBE flow should be shown. 355 // True if full OOBE flow should be shown.
352 bool is_out_of_box_; 356 bool is_out_of_box_;
353 357
354 // Value of the screen name that WizardController was started with. 358 // Value of the screen name that WizardController was started with.
355 std::string first_screen_name_; 359 std::string first_screen_name_;
356 360
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
418 base::Closure on_timezone_resolved_for_testing_; 422 base::Closure on_timezone_resolved_for_testing_;
419 423
420 base::WeakPtrFactory<WizardController> weak_factory_; 424 base::WeakPtrFactory<WizardController> weak_factory_;
421 425
422 DISALLOW_COPY_AND_ASSIGN(WizardController); 426 DISALLOW_COPY_AND_ASSIGN(WizardController);
423 }; 427 };
424 428
425 } // namespace chromeos 429 } // namespace chromeos
426 430
427 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_WIZARD_CONTROLLER_H_ 431 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_WIZARD_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698