| 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> | |
| 10 | 9 |
| 11 #include "components/policy/policy_export.h" | 10 #include "components/policy/policy_export.h" |
| 12 | 11 |
| 13 namespace policy { | 12 namespace policy { |
| 14 | 13 |
| 15 // Constants related to the device management protocol. | 14 // Constants related to the device management protocol. |
| 16 namespace dm_protocol { | 15 namespace dm_protocol { |
| 17 | 16 |
| 18 // Name extern constants for URL query parameters. | 17 // Name extern constants for URL query parameters. |
| 19 POLICY_EXPORT extern const char kParamAgent[]; | 18 POLICY_EXPORT extern const char kParamAgent[]; |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 115 DEVICE_MODE_CONSUMER, // The device is locally owned as consumer | 114 DEVICE_MODE_CONSUMER, // The device is locally owned as consumer |
| 116 // device. | 115 // device. |
| 117 DEVICE_MODE_ENTERPRISE, // The device is enrolled as an enterprise | 116 DEVICE_MODE_ENTERPRISE, // The device is enrolled as an enterprise |
| 118 // device. | 117 // device. |
| 119 DEVICE_MODE_RETAIL_KIOSK, // The device is enrolled as retail kiosk device. | 118 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. | |
| 126 typedef std::pair<std::string, std::string> PolicyNamespaceKey; | |
| 127 | |
| 128 // Returns the Chrome user policy type to use. This allows overridding the | 124 // Returns the Chrome user policy type to use. This allows overridding the |
| 129 // default user policy type on Android and iOS for testing purposes. | 125 // default user policy type on Android and iOS for testing purposes. |
| 130 // TODO(joaodasilva): remove this once the server is ready. | 126 // TODO(joaodasilva): remove this once the server is ready. |
| 131 // http://crbug.com/248527 | 127 // http://crbug.com/248527 |
| 132 POLICY_EXPORT const char* GetChromeUserPolicyType(); | 128 POLICY_EXPORT const char* GetChromeUserPolicyType(); |
| 133 | 129 |
| 134 } // namespace policy | 130 } // namespace policy |
| 135 | 131 |
| 136 #endif // COMPONENTS_POLICY_CORE_COMMON_CLOUD_CLOUD_POLICY_CONSTANTS_H_ | 132 #endif // COMPONENTS_POLICY_CORE_COMMON_CLOUD_CLOUD_POLICY_CONSTANTS_H_ |
| OLD | NEW |