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 | 9 |
10 #include "components/policy/policy_export.h" | 10 #include "components/policy/policy_export.h" |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 // Service error: The serial number is not valid or not known to the server. | 96 // Service error: The serial number is not valid or not known to the server. |
97 DM_STATUS_SERVICE_INVALID_SERIAL_NUMBER = 10, | 97 DM_STATUS_SERVICE_INVALID_SERIAL_NUMBER = 10, |
98 // Service error: The device id used for registration is already taken. | 98 // Service error: The device id used for registration is already taken. |
99 DM_STATUS_SERVICE_DEVICE_ID_CONFLICT = 11, | 99 DM_STATUS_SERVICE_DEVICE_ID_CONFLICT = 11, |
100 // Service error: The licenses have expired or have been exhausted. | 100 // Service error: The licenses have expired or have been exhausted. |
101 DM_STATUS_SERVICE_MISSING_LICENSES = 12, | 101 DM_STATUS_SERVICE_MISSING_LICENSES = 12, |
102 // Service error: The administrator has deprovisioned this client. | 102 // Service error: The administrator has deprovisioned this client. |
103 DM_STATUS_SERVICE_DEPROVISIONED = 13, | 103 DM_STATUS_SERVICE_DEPROVISIONED = 13, |
104 // Service error: Device registration for the wrong domain. | 104 // Service error: Device registration for the wrong domain. |
105 DM_STATUS_SERVICE_DOMAIN_MISMATCH = 14, | 105 DM_STATUS_SERVICE_DOMAIN_MISMATCH = 14, |
106 // Client error: Reuest could not be signed. | 106 // Client error: Request could not be signed. |
107 DM_STATUS_CANNOT_SIGN_REQUEST = 15, | 107 DM_STATUS_CANNOT_SIGN_REQUEST = 15, |
108 // Service error: Policy not found. Error code defined by the DM folks. | 108 // Service error: Policy not found. Error code defined by the DM folks. |
109 DM_STATUS_SERVICE_POLICY_NOT_FOUND = 902, | 109 DM_STATUS_SERVICE_POLICY_NOT_FOUND = 902, |
110 }; | 110 }; |
111 | 111 |
112 // List of modes that the device can be locked into. | 112 // List of modes that the device can be locked into. |
113 enum DeviceMode { | 113 enum DeviceMode { |
114 DEVICE_MODE_PENDING, // The device mode is not yet available. | 114 DEVICE_MODE_PENDING, // The device mode is not yet available. |
115 DEVICE_MODE_NOT_SET, // The device is not yet enrolled or owned. | 115 DEVICE_MODE_NOT_SET, // The device is not yet enrolled or owned. |
116 DEVICE_MODE_CONSUMER, // The device is locally owned as consumer | 116 DEVICE_MODE_CONSUMER, // The device is locally owned as consumer |
117 // device. | 117 // device. |
118 DEVICE_MODE_ENTERPRISE, // The device is enrolled as an enterprise | 118 DEVICE_MODE_ENTERPRISE, // The device is enrolled as an enterprise |
119 // device. | 119 // device. |
120 DEVICE_MODE_LEGACY_RETAIL_MODE, // The device is enrolled as a retail kiosk | 120 DEVICE_MODE_LEGACY_RETAIL_MODE, // The device is enrolled as a retail kiosk |
121 // device. Even though retail mode is | 121 // device. Even though retail mode is |
122 // deprecated, we still check for this device | 122 // deprecated, we still check for this device |
123 // mode so that if an existing device is | 123 // mode so that if an existing device is |
124 // still enrolled in retail mode, we take the | 124 // still enrolled in retail mode, we take the |
125 // appropriate action (currently, launching | 125 // appropriate action (currently, launching |
126 // offline demo mode). | 126 // offline demo mode). |
127 DEVICE_MODE_CONSUMER_KIOSK_AUTOLAUNCH, // The device is locally owned as | 127 DEVICE_MODE_CONSUMER_KIOSK_AUTOLAUNCH, // The device is locally owned as |
128 // consumer kiosk with ability to auto | 128 // consumer kiosk with ability to auto |
129 // launch a kiosk webapp. | 129 // launch a kiosk webapp. |
130 }; | 130 }; |
131 | 131 |
132 } // namespace policy | 132 } // namespace policy |
133 | 133 |
134 #endif // COMPONENTS_POLICY_CORE_COMMON_CLOUD_CLOUD_POLICY_CONSTANTS_H_ | 134 #endif // COMPONENTS_POLICY_CORE_COMMON_CLOUD_CLOUD_POLICY_CONSTANTS_H_ |
OLD | NEW |