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

Side by Side Diff: chrome/browser/chromeos/login/enrollment/enrollment_screen.h

Issue 652743003: Fix update and enrollment flow (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: indent Created 6 years, 2 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
« no previous file with comments | « no previous file | chrome/browser/chromeos/login/enrollment/enrollment_screen.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_ENROLLMENT_ENROLLMENT_SCREEN_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_ENROLLMENT_ENROLLMENT_SCREEN_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_ENROLLMENT_ENROLLMENT_SCREEN_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_ENROLLMENT_ENROLLMENT_SCREEN_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 29 matching lines...) Expand all
40 public: 40 public:
41 typedef pairing_chromeos::HostPairingController::Stage Stage; 41 typedef pairing_chromeos::HostPairingController::Stage Stage;
42 42
43 EnrollmentScreen(ScreenObserver* observer, 43 EnrollmentScreen(ScreenObserver* observer,
44 EnrollmentScreenActor* actor); 44 EnrollmentScreenActor* actor);
45 virtual ~EnrollmentScreen(); 45 virtual ~EnrollmentScreen();
46 46
47 static EnrollmentScreen* Get(ScreenManager* manager); 47 static EnrollmentScreen* Get(ScreenManager* manager);
48 48
49 // Setup how this screen will handle enrollment. 49 // Setup how this screen will handle enrollment.
50 // |auth_token| is an optional OAuth token to attempt to enroll with.
51 // |shark_controller| is an interface that is used to communicate with a 50 // |shark_controller| is an interface that is used to communicate with a
52 // remora device for remote enrollment. 51 // remora device for remote enrollment.
53 // |remora_controller| is an interface that is used to communicate with a 52 // |remora_controller| is an interface that is used to communicate with a
54 // shark device for remote enrollment. 53 // shark device for remote enrollment.
55 void SetParameters( 54 void SetParameters(
56 EnrollmentScreenActor::EnrollmentMode enrollment_mode, 55 EnrollmentScreenActor::EnrollmentMode enrollment_mode,
57 const std::string& management_domain, 56 const std::string& management_domain,
58 const std::string& enrollment_user, 57 const std::string& enrollment_user,
59 const std::string& auth_token,
60 pairing_chromeos::ControllerPairingController* shark_controller, 58 pairing_chromeos::ControllerPairingController* shark_controller,
61 pairing_chromeos::HostPairingController* remora_controller); 59 pairing_chromeos::HostPairingController* remora_controller);
62 60
63 // WizardScreen implementation: 61 // WizardScreen implementation:
64 virtual void PrepareToShow() override; 62 virtual void PrepareToShow() override;
65 virtual void Show() override; 63 virtual void Show() override;
66 virtual void Hide() override; 64 virtual void Hide() override;
67 virtual std::string GetName() const override; 65 virtual std::string GetName() const override;
68 66
69 // pairing_chromeos::HostPairingController::Observer: 67 // pairing_chromeos::HostPairingController::Observer:
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 return enrollment_mode_ == EnrollmentScreenActor::ENROLLMENT_MODE_AUTO; 124 return enrollment_mode_ == EnrollmentScreenActor::ENROLLMENT_MODE_AUTO;
127 } 125 }
128 126
129 pairing_chromeos::ControllerPairingController* shark_controller_; 127 pairing_chromeos::ControllerPairingController* shark_controller_;
130 pairing_chromeos::HostPairingController* remora_controller_; 128 pairing_chromeos::HostPairingController* remora_controller_;
131 EnrollmentScreenActor* actor_; 129 EnrollmentScreenActor* actor_;
132 EnrollmentScreenActor::EnrollmentMode enrollment_mode_; 130 EnrollmentScreenActor::EnrollmentMode enrollment_mode_;
133 bool enrollment_failed_once_; 131 bool enrollment_failed_once_;
134 bool remora_token_sent_; 132 bool remora_token_sent_;
135 std::string user_; 133 std::string user_;
136 std::string auth_token_;
137 scoped_ptr<base::ElapsedTimer> elapsed_timer_; 134 scoped_ptr<base::ElapsedTimer> elapsed_timer_;
138 base::WeakPtrFactory<EnrollmentScreen> weak_ptr_factory_; 135 base::WeakPtrFactory<EnrollmentScreen> weak_ptr_factory_;
139 136
140 DISALLOW_COPY_AND_ASSIGN(EnrollmentScreen); 137 DISALLOW_COPY_AND_ASSIGN(EnrollmentScreen);
141 }; 138 };
142 139
143 } // namespace chromeos 140 } // namespace chromeos
144 141
145 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_ENROLLMENT_ENROLLMENT_SCREEN_H_ 142 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_ENROLLMENT_ENROLLMENT_SCREEN_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/login/enrollment/enrollment_screen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698