| 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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 }; | 109 }; |
| 110 | 110 |
| 111 // List of modes that the device can be locked into. | 111 // List of modes that the device can be locked into. |
| 112 enum DeviceMode { | 112 enum DeviceMode { |
| 113 DEVICE_MODE_PENDING, // The device mode is not yet available. | 113 DEVICE_MODE_PENDING, // The device mode is not yet available. |
| 114 DEVICE_MODE_NOT_SET, // The device is not yet enrolled or owned. | 114 DEVICE_MODE_NOT_SET, // The device is not yet enrolled or owned. |
| 115 DEVICE_MODE_CONSUMER, // The device is locally owned as consumer | 115 DEVICE_MODE_CONSUMER, // The device is locally owned as consumer |
| 116 // device. | 116 // device. |
| 117 DEVICE_MODE_ENTERPRISE, // The device is enrolled as an enterprise | 117 DEVICE_MODE_ENTERPRISE, // The device is enrolled as an enterprise |
| 118 // device. | 118 // device. |
| 119 DEVICE_MODE_RETAIL_KIOSK, // The device is enrolled as retail kiosk device. | |
| 120 DEVICE_MODE_CONSUMER_KIOSK_AUTOLAUNCH, // The device is locally owned as | 119 DEVICE_MODE_CONSUMER_KIOSK_AUTOLAUNCH, // The device is locally owned as |
| 121 // consumer kiosk with ability to auto | 120 // consumer kiosk with ability to auto |
| 122 // launch a kiosk webapp. | 121 // launch a kiosk webapp. |
| 123 }; | 122 }; |
| 124 | 123 |
| 125 // A pair that combines a policy fetch type and entity ID. | 124 // A pair that combines a policy fetch type and entity ID. |
| 126 typedef std::pair<std::string, std::string> PolicyNamespaceKey; | 125 typedef std::pair<std::string, std::string> PolicyNamespaceKey; |
| 127 | 126 |
| 128 // Returns the Chrome user policy type to use. This allows overridding the | 127 // Returns the Chrome user policy type to use. This allows overridding the |
| 129 // default user policy type on Android and iOS for testing purposes. | 128 // default user policy type on Android and iOS for testing purposes. |
| 130 // TODO(joaodasilva): remove this once the server is ready. | 129 // TODO(joaodasilva): remove this once the server is ready. |
| 131 // http://crbug.com/248527 | 130 // http://crbug.com/248527 |
| 132 POLICY_EXPORT const char* GetChromeUserPolicyType(); | 131 POLICY_EXPORT const char* GetChromeUserPolicyType(); |
| 133 | 132 |
| 134 } // namespace policy | 133 } // namespace policy |
| 135 | 134 |
| 136 #endif // COMPONENTS_POLICY_CORE_COMMON_CLOUD_CLOUD_POLICY_CONSTANTS_H_ | 135 #endif // COMPONENTS_POLICY_CORE_COMMON_CLOUD_CLOUD_POLICY_CONSTANTS_H_ |
| OLD | NEW |