| 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_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 <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 | 129 |
| 130 // Handles the policy validation result, proceeding with device lock if | 130 // Handles the policy validation result, proceeding with device lock if |
| 131 // successful. | 131 // successful. |
| 132 void HandlePolicyValidationResult(DeviceCloudPolicyValidator* validator); | 132 void HandlePolicyValidationResult(DeviceCloudPolicyValidator* validator); |
| 133 | 133 |
| 134 // Calls InstallAttributes::LockDevice() for enterprise enrollment and | 134 // Calls InstallAttributes::LockDevice() for enterprise enrollment and |
| 135 // DeviceSettingsService::SetManagementSettings() for consumer | 135 // DeviceSettingsService::SetManagementSettings() for consumer |
| 136 // enrollment. | 136 // enrollment. |
| 137 void StartLockDevice(); | 137 void StartLockDevice(); |
| 138 | 138 |
| 139 // Checks the status after SetManagementSettings() is done. Proceeds to | 139 // Called after SetManagementSettings() is done. Proceeds to robot |
| 140 // robot auth code storing if successful. | 140 // auth code storing if successful. |
| 141 void HandleSetManagementSettingsDone(); | 141 void HandleSetManagementSettingsDone(bool success); |
| 142 | 142 |
| 143 // Handle callback from InstallAttributes::LockDevice() and retry on failure. | 143 // Handle callback from InstallAttributes::LockDevice() and retry on failure. |
| 144 void HandleLockDeviceResult( | 144 void HandleLockDeviceResult( |
| 145 EnterpriseInstallAttributes::LockResult lock_result); | 145 EnterpriseInstallAttributes::LockResult lock_result); |
| 146 | 146 |
| 147 // Initiates storing of robot auth token. | 147 // Initiates storing of robot auth token. |
| 148 void StartStoreRobotAuth(); | 148 void StartStoreRobotAuth(); |
| 149 | 149 |
| 150 // Handles completion of the robot token store operation. | 150 // Handles completion of the robot token store operation. |
| 151 void HandleStoreRobotAuthTokenResult(bool result); | 151 void HandleStoreRobotAuthTokenResult(bool result); |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 191 int lockbox_init_duration_; | 191 int lockbox_init_duration_; |
| 192 | 192 |
| 193 base::WeakPtrFactory<EnrollmentHandlerChromeOS> weak_ptr_factory_; | 193 base::WeakPtrFactory<EnrollmentHandlerChromeOS> weak_ptr_factory_; |
| 194 | 194 |
| 195 DISALLOW_COPY_AND_ASSIGN(EnrollmentHandlerChromeOS); | 195 DISALLOW_COPY_AND_ASSIGN(EnrollmentHandlerChromeOS); |
| 196 }; | 196 }; |
| 197 | 197 |
| 198 } // namespace policy | 198 } // namespace policy |
| 199 | 199 |
| 200 #endif // CHROME_BROWSER_CHROMEOS_POLICY_ENROLLMENT_HANDLER_CHROMEOS_H_ | 200 #endif // CHROME_BROWSER_CHROMEOS_POLICY_ENROLLMENT_HANDLER_CHROMEOS_H_ |
| OLD | NEW |