| 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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 POLICY_FETCH_SUCCESS = 200, | 56 POLICY_FETCH_SUCCESS = 200, |
| 57 POLICY_FETCH_ERROR_NOT_FOUND = 902, | 57 POLICY_FETCH_ERROR_NOT_FOUND = 902, |
| 58 }; | 58 }; |
| 59 | 59 |
| 60 } // namespace dm_protocol | 60 } // namespace dm_protocol |
| 61 | 61 |
| 62 // The header used to transmit the policy ID for this client. | 62 // The header used to transmit the policy ID for this client. |
| 63 POLICY_EXPORT extern const char kChromePolicyHeader[]; | 63 POLICY_EXPORT extern const char kChromePolicyHeader[]; |
| 64 | 64 |
| 65 // Public half of the verification key that is used to verify that policy | 65 // Public half of the verification key that is used to verify that policy |
| 66 // signing keys are originating from DM server. Returns empty string in case | 66 // signing keys are originating from DM server. |
| 67 // policy key verification is disabled on the command line. | |
| 68 POLICY_EXPORT std::string GetPolicyVerificationKey(); | 67 POLICY_EXPORT std::string GetPolicyVerificationKey(); |
| 69 | 68 |
| 70 // Corresponding hash. | 69 // Corresponding hash. |
| 71 POLICY_EXPORT extern const char kPolicyVerificationKeyHash[]; | 70 POLICY_EXPORT extern const char kPolicyVerificationKeyHash[]; |
| 72 | 71 |
| 73 // Status codes for communication errors with the device management service. | 72 // Status codes for communication errors with the device management service. |
| 74 // This enum is used to define the buckets for an enumerated UMA histogram. | 73 // This enum is used to define the buckets for an enumerated UMA histogram. |
| 75 // Hence, | 74 // Hence, |
| 76 // (a) existing enumerated constants should never be deleted or reordered, and | 75 // (a) existing enumerated constants should never be deleted or reordered, and |
| 77 // (b) new constants should only be appended at the end of the enumeration. | 76 // (b) new constants should only be appended at the end of the enumeration. |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 // appropriate action (currently, launching | 128 // appropriate action (currently, launching |
| 130 // offline demo mode). | 129 // offline demo mode). |
| 131 DEVICE_MODE_CONSUMER_KIOSK_AUTOLAUNCH, // The device is locally owned as | 130 DEVICE_MODE_CONSUMER_KIOSK_AUTOLAUNCH, // The device is locally owned as |
| 132 // consumer kiosk with ability to auto | 131 // consumer kiosk with ability to auto |
| 133 // launch a kiosk webapp. | 132 // launch a kiosk webapp. |
| 134 }; | 133 }; |
| 135 | 134 |
| 136 } // namespace policy | 135 } // namespace policy |
| 137 | 136 |
| 138 #endif // COMPONENTS_POLICY_CORE_COMMON_CLOUD_CLOUD_POLICY_CONSTANTS_H_ | 137 #endif // COMPONENTS_POLICY_CORE_COMMON_CLOUD_CLOUD_POLICY_CONSTANTS_H_ |
| OLD | NEW |