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, | |
100 // Service error: Policy not found. Error code defined by the DM folks. | 98 // Service error: Policy not found. Error code defined by the DM folks. |
101 DM_STATUS_SERVICE_POLICY_NOT_FOUND = 902, | 99 DM_STATUS_SERVICE_POLICY_NOT_FOUND = 902, |
102 }; | 100 }; |
103 | 101 |
104 // List of modes that the device can be locked into. | 102 // List of modes that the device can be locked into. |
105 enum DeviceMode { | 103 enum DeviceMode { |
106 DEVICE_MODE_PENDING, // The device mode is not yet available. | 104 DEVICE_MODE_PENDING, // The device mode is not yet available. |
107 DEVICE_MODE_NOT_SET, // The device is not yet enrolled or owned. | 105 DEVICE_MODE_NOT_SET, // The device is not yet enrolled or owned. |
108 DEVICE_MODE_CONSUMER, // The device is locally owned as consumer | 106 DEVICE_MODE_CONSUMER, // The device is locally owned as consumer |
109 // device. | 107 // device. |
(...skipping 10 matching lines...) Expand all Loading... |
120 | 118 |
121 // Returns the Chrome user policy type to use. This allows overridding the | 119 // Returns the Chrome user policy type to use. This allows overridding the |
122 // default user policy type on Android and iOS for testing purposes. | 120 // default user policy type on Android and iOS for testing purposes. |
123 // TODO(joaodasilva): remove this once the server is ready. | 121 // TODO(joaodasilva): remove this once the server is ready. |
124 // http://crbug.com/248527 | 122 // http://crbug.com/248527 |
125 POLICY_EXPORT const char* GetChromeUserPolicyType(); | 123 POLICY_EXPORT const char* GetChromeUserPolicyType(); |
126 | 124 |
127 } // namespace policy | 125 } // namespace policy |
128 | 126 |
129 #endif // COMPONENTS_POLICY_CORE_COMMON_CLOUD_CLOUD_POLICY_CONSTANTS_H_ | 127 #endif // COMPONENTS_POLICY_CORE_COMMON_CLOUD_CLOUD_POLICY_CONSTANTS_H_ |
OLD | NEW |