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

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

Issue 2186623002: Minimal attestation-based enrollment flow. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed achuithb's feedback. Created 4 years, 3 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 <map> 8 #include <map>
9 #include <memory> 9 #include <memory>
10 #include <string> 10 #include <string>
(...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after
326 // Called when a connection to controller has been established. Wizard 326 // Called when a connection to controller has been established. Wizard
327 // controller takes the ownership of |pairing_controller| after that call. 327 // controller takes the ownership of |pairing_controller| after that call.
328 void OnSharkConnected(std::unique_ptr<pairing_chromeos::HostPairingController> 328 void OnSharkConnected(std::unique_ptr<pairing_chromeos::HostPairingController>
329 pairing_controller); 329 pairing_controller);
330 330
331 // Callback functions for AddNetworkRequested(). 331 // Callback functions for AddNetworkRequested().
332 void OnSetHostNetworkSuccessful(); 332 void OnSetHostNetworkSuccessful();
333 void OnSetHostNetworkFailed(); 333 void OnSetHostNetworkFailed();
334 334
335 // Start the enrollment screen using the config from 335 // Start the enrollment screen using the config from
336 // |prescribed_enrollment_config_|. 336 // |prescribed_enrollment_config_|. If |force_interactive| is true,
337 void StartEnrollmentScreen(); 337 // the user will be presented with a manual enrollment screen requiring
338 // Gaia credentials. If it is false, the screen may return after trying
339 // attestation-based enrollment if appropriate.
340 void StartEnrollmentScreen(bool force_interactive);
338 341
339 // Whether to skip any screens that may normally be shown after login 342 // Whether to skip any screens that may normally be shown after login
340 // (registration, Terms of Service, user image selection). 343 // (registration, Terms of Service, user image selection).
341 static bool skip_post_login_screens_; 344 static bool skip_post_login_screens_;
342 345
343 static bool zero_delay_enabled_; 346 static bool zero_delay_enabled_;
344 347
345 // Screen that's currently active. 348 // Screen that's currently active.
346 BaseScreen* current_screen_ = nullptr; 349 BaseScreen* current_screen_ = nullptr;
347 350
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
443 BaseScreen* hid_screen_ = nullptr; 446 BaseScreen* hid_screen_ = nullptr;
444 447
445 base::WeakPtrFactory<WizardController> weak_factory_; 448 base::WeakPtrFactory<WizardController> weak_factory_;
446 449
447 DISALLOW_COPY_AND_ASSIGN(WizardController); 450 DISALLOW_COPY_AND_ASSIGN(WizardController);
448 }; 451 };
449 452
450 } // namespace chromeos 453 } // namespace chromeos
451 454
452 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_WIZARD_CONTROLLER_H_ 455 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_WIZARD_CONTROLLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/screens/base_screen.h ('k') | chrome/browser/chromeos/login/wizard_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698