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

Side by Side Diff: chrome/browser/chromeos/policy/enrollment_handler_chromeos.h

Issue 2544773002: Fetch policy from Active Directory at the end of enrollment (Closed)
Patch Set: Convert CHECK_EQ(true, ...) to CHECK(...) Created 4 years 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_POLICY_ENROLLMENT_HANDLER_CHROMEOS_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_POLICY_ENROLLMENT_HANDLER_CHROMEOS_H_
6 #define CHROME_BROWSER_CHROMEOS_POLICY_ENROLLMENT_HANDLER_CHROMEOS_H_ 6 #define CHROME_BROWSER_CHROMEOS_POLICY_ENROLLMENT_HANDLER_CHROMEOS_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 STEP_STATE_KEYS = 1, // Waiting for state keys to become available. 106 STEP_STATE_KEYS = 1, // Waiting for state keys to become available.
107 STEP_LOADING_STORE = 2, // Waiting for |store_| to initialize. 107 STEP_LOADING_STORE = 2, // Waiting for |store_| to initialize.
108 STEP_REGISTRATION = 3, // Currently registering the client. 108 STEP_REGISTRATION = 3, // Currently registering the client.
109 STEP_POLICY_FETCH = 4, // Fetching policy. 109 STEP_POLICY_FETCH = 4, // Fetching policy.
110 STEP_VALIDATION = 5, // Policy validation. 110 STEP_VALIDATION = 5, // Policy validation.
111 STEP_ROBOT_AUTH_FETCH = 6, // Fetching device API auth code. 111 STEP_ROBOT_AUTH_FETCH = 6, // Fetching device API auth code.
112 STEP_ROBOT_AUTH_REFRESH = 7, // Fetching device API refresh token. 112 STEP_ROBOT_AUTH_REFRESH = 7, // Fetching device API refresh token.
113 STEP_LOCK_DEVICE = 8, // Writing installation-time attributes. 113 STEP_LOCK_DEVICE = 8, // Writing installation-time attributes.
114 STEP_STORE_TOKEN_AND_ID = 9, // Storing DM token and virtual device ID. 114 STEP_STORE_TOKEN_AND_ID = 9, // Storing DM token and virtual device ID.
115 STEP_STORE_ROBOT_AUTH = 10, // Encrypting & writing robot refresh token. 115 STEP_STORE_ROBOT_AUTH = 10, // Encrypting & writing robot refresh token.
116 STEP_STORE_POLICY = 11, // Storing policy and API refresh token. 116 STEP_STORE_POLICY = 11, // Storing policy and API refresh token. For
117 // AD, includes policy fetch via authpolicyd.
117 STEP_FINISHED = 12, // Enrollment process done, no further action. 118 STEP_FINISHED = 12, // Enrollment process done, no further action.
118 }; 119 };
119 120
120 // Handles the response to a request for server-backed state keys. 121 // Handles the response to a request for server-backed state keys.
121 void HandleStateKeysResult(const std::vector<std::string>& state_keys); 122 void HandleStateKeysResult(const std::vector<std::string>& state_keys);
122 123
123 // Starts attestation based enrollment flow. 124 // Starts attestation based enrollment flow.
124 void StartAttestationBasedEnrollmentFlow(); 125 void StartAttestationBasedEnrollmentFlow();
125 126
126 // Handles the response to a request for a registration certificate. 127 // Handles the response to a request for a registration certificate.
(...skipping 20 matching lines...) Expand all
147 // Handle callback from InstallAttributes::LockDevice() and retry on failure. 148 // Handle callback from InstallAttributes::LockDevice() and retry on failure.
148 void HandleLockDeviceResult( 149 void HandleLockDeviceResult(
149 chromeos::InstallAttributes::LockResult lock_result); 150 chromeos::InstallAttributes::LockResult lock_result);
150 151
151 // Initiates storing of robot auth token. 152 // Initiates storing of robot auth token.
152 void StartStoreRobotAuth(); 153 void StartStoreRobotAuth();
153 154
154 // Handles completion of the robot token store operation. 155 // Handles completion of the robot token store operation.
155 void HandleStoreRobotAuthTokenResult(bool result); 156 void HandleStoreRobotAuthTokenResult(bool result);
156 157
158 // Handles result from device policy refresh via authpolicyd.
159 void HandleActiveDirectoryPolicyRefreshed(bool success);
160
157 // Drops any ongoing actions. 161 // Drops any ongoing actions.
158 void Stop(); 162 void Stop();
159 163
160 // Reports the result of the enrollment process to the initiator. 164 // Reports the result of the enrollment process to the initiator.
161 void ReportResult(EnrollmentStatus status); 165 void ReportResult(EnrollmentStatus status);
162 166
163 // Set |enrollment_step_| to |step|. 167 // Set |enrollment_step_| to |step|.
164 void SetStep(EnrollmentStep step); 168 void SetStep(EnrollmentStep step);
165 169
166 DeviceCloudPolicyStoreChromeOS* store_; 170 DeviceCloudPolicyStoreChromeOS* store_;
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 int lockbox_init_duration_; 206 int lockbox_init_duration_;
203 207
204 base::WeakPtrFactory<EnrollmentHandlerChromeOS> weak_ptr_factory_; 208 base::WeakPtrFactory<EnrollmentHandlerChromeOS> weak_ptr_factory_;
205 209
206 DISALLOW_COPY_AND_ASSIGN(EnrollmentHandlerChromeOS); 210 DISALLOW_COPY_AND_ASSIGN(EnrollmentHandlerChromeOS);
207 }; 211 };
208 212
209 } // namespace policy 213 } // namespace policy
210 214
211 #endif // CHROME_BROWSER_CHROMEOS_POLICY_ENROLLMENT_HANDLER_CHROMEOS_H_ 215 #endif // CHROME_BROWSER_CHROMEOS_POLICY_ENROLLMENT_HANDLER_CHROMEOS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698