| 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 COMPONENTS_POLICY_CORE_COMMON_CLOUD_CLOUD_POLICY_CONSTANTS_H_ | 5 #ifndef COMPONENTS_POLICY_CORE_COMMON_CLOUD_CLOUD_POLICY_CONSTANTS_H_ |
| 6 #define COMPONENTS_POLICY_CORE_COMMON_CLOUD_CLOUD_POLICY_CONSTANTS_H_ | 6 #define COMPONENTS_POLICY_CORE_COMMON_CLOUD_CLOUD_POLICY_CONSTANTS_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <utility> | 9 #include <utility> |
| 10 | 10 |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 // Service error: Activation pending. | 88 // Service error: Activation pending. |
| 89 DM_STATUS_SERVICE_ACTIVATION_PENDING, | 89 DM_STATUS_SERVICE_ACTIVATION_PENDING, |
| 90 // Service error: The serial number is not valid or not known to the server. | 90 // Service error: The serial number is not valid or not known to the server. |
| 91 DM_STATUS_SERVICE_INVALID_SERIAL_NUMBER, | 91 DM_STATUS_SERVICE_INVALID_SERIAL_NUMBER, |
| 92 // Service error: The device id used for registration is already taken. | 92 // Service error: The device id used for registration is already taken. |
| 93 DM_STATUS_SERVICE_DEVICE_ID_CONFLICT, | 93 DM_STATUS_SERVICE_DEVICE_ID_CONFLICT, |
| 94 // Service error: The licenses have expired or have been exhausted. | 94 // Service error: The licenses have expired or have been exhausted. |
| 95 DM_STATUS_SERVICE_MISSING_LICENSES, | 95 DM_STATUS_SERVICE_MISSING_LICENSES, |
| 96 // Service error: The administrator has deprovisioned this client. | 96 // Service error: The administrator has deprovisioned this client. |
| 97 DM_STATUS_SERVICE_DEPROVISIONED, | 97 DM_STATUS_SERVICE_DEPROVISIONED, |
| 98 // Service error: Device registration for the wrong domain. |
| 99 DM_STATUS_SERVICE_DOMAIN_MISMATCH, |
| 98 // Service error: Policy not found. Error code defined by the DM folks. | 100 // Service error: Policy not found. Error code defined by the DM folks. |
| 99 DM_STATUS_SERVICE_POLICY_NOT_FOUND = 902, | 101 DM_STATUS_SERVICE_POLICY_NOT_FOUND = 902, |
| 100 }; | 102 }; |
| 101 | 103 |
| 102 // List of modes that the device can be locked into. | 104 // List of modes that the device can be locked into. |
| 103 enum DeviceMode { | 105 enum DeviceMode { |
| 104 DEVICE_MODE_PENDING, // The device mode is not yet available. | 106 DEVICE_MODE_PENDING, // The device mode is not yet available. |
| 105 DEVICE_MODE_NOT_SET, // The device is not yet enrolled or owned. | 107 DEVICE_MODE_NOT_SET, // The device is not yet enrolled or owned. |
| 106 DEVICE_MODE_CONSUMER, // The device is locally owned as consumer | 108 DEVICE_MODE_CONSUMER, // The device is locally owned as consumer |
| 107 // device. | 109 // device. |
| (...skipping 10 matching lines...) Expand all Loading... |
| 118 | 120 |
| 119 // Returns the Chrome user policy type to use. This allows overridding the | 121 // Returns the Chrome user policy type to use. This allows overridding the |
| 120 // default user policy type on Android and iOS for testing purposes. | 122 // default user policy type on Android and iOS for testing purposes. |
| 121 // TODO(joaodasilva): remove this once the server is ready. | 123 // TODO(joaodasilva): remove this once the server is ready. |
| 122 // http://crbug.com/248527 | 124 // http://crbug.com/248527 |
| 123 POLICY_EXPORT const char* GetChromeUserPolicyType(); | 125 POLICY_EXPORT const char* GetChromeUserPolicyType(); |
| 124 | 126 |
| 125 } // namespace policy | 127 } // namespace policy |
| 126 | 128 |
| 127 #endif // COMPONENTS_POLICY_CORE_COMMON_CLOUD_CLOUD_POLICY_CONSTANTS_H_ | 129 #endif // COMPONENTS_POLICY_CORE_COMMON_CLOUD_CLOUD_POLICY_CONSTANTS_H_ |
| OLD | NEW |