| OLD | NEW |
| 1 // Copyright (c) 2014 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2014 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_SERVER_BACKED_DEVICE_STATE_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_POLICY_SERVER_BACKED_DEVICE_STATE_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_POLICY_SERVER_BACKED_DEVICE_STATE_H_ | 6 #define CHROME_BROWSER_CHROMEOS_POLICY_SERVER_BACKED_DEVICE_STATE_H_ |
| 7 | 7 |
| 8 namespace policy { | 8 namespace policy { |
| 9 | 9 |
| 10 // Dictionary key constants for prefs::kServerBackedDeviceState. | 10 // Dictionary key constants for prefs::kServerBackedDeviceState. |
| 11 extern const char kDeviceStateManagementDomain[]; | 11 extern const char kDeviceStateManagementDomain[]; |
| 12 extern const char kDeviceStateRestoreMode[]; | 12 extern const char kDeviceStateRestoreMode[]; |
| 13 extern const char kDeviceStateDisabled[]; | |
| 14 extern const char kDeviceStateDisabledMessage[]; | 13 extern const char kDeviceStateDisabledMessage[]; |
| 15 | 14 |
| 16 // Values for kDeviceStateRestoreMode. | 15 // String constants used to persist the restorative action in the |
| 16 // kDeviceStateRestoreMode dictionary entry. |
| 17 extern const char kDeviceStateRestoreModeReEnrollmentRequested[]; |
| 17 extern const char kDeviceStateRestoreModeReEnrollmentEnforced[]; | 18 extern const char kDeviceStateRestoreModeReEnrollmentEnforced[]; |
| 18 extern const char kDeviceStateRestoreModeReEnrollmentRequested[]; | 19 extern const char kDeviceStateRestoreModeDisabled[]; |
| 20 |
| 21 // Restorative action to take after device reset. |
| 22 enum RestoreMode { |
| 23 // No state restoration. |
| 24 RESTORE_MODE_NONE = 0, |
| 25 // Enterprise enrollment requested, but user may skip. |
| 26 RESTORE_MODE_REENROLLMENT_REQUESTED = 1, |
| 27 // Enterprise enrollment is enforced and cannot be skipped. |
| 28 RESTORE_MODE_REENROLLMENT_ENFORCED = 2, |
| 29 // The device has been disabled by its owner. The device will show a warning |
| 30 // screen and prevent the user from proceeding further. |
| 31 RESTORE_MODE_DISABLED = 3, |
| 32 }; |
| 33 |
| 34 // Parses the contents of the kDeviceStateRestoreMode dictionary entry and |
| 35 // returns it as a RestoreMode. |
| 36 RestoreMode GetRestoreMode(); |
| 19 | 37 |
| 20 } // namespace policy | 38 } // namespace policy |
| 21 | 39 |
| 22 #endif // CHROME_BROWSER_CHROMEOS_POLICY_SERVER_BACKED_DEVICE_STATE_H_ | 40 #endif // CHROME_BROWSER_CHROMEOS_POLICY_SERVER_BACKED_DEVICE_STATE_H_ |
| OLD | NEW |