| 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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 enum PolicyFetchStatus { | 55 enum PolicyFetchStatus { |
| 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 // Information about the verification key used to verify that policy signing | 65 // Public half of the verification key that is used to verify that policy |
| 66 // keys are valid. | 66 // signing keys are originating from DM server. Returns empty string in case |
| 67 // policy key verification is disabled on the command line. |
| 67 POLICY_EXPORT std::string GetPolicyVerificationKey(); | 68 POLICY_EXPORT std::string GetPolicyVerificationKey(); |
| 69 |
| 70 // Corresponding hash. |
| 68 POLICY_EXPORT extern const char kPolicyVerificationKeyHash[]; | 71 POLICY_EXPORT extern const char kPolicyVerificationKeyHash[]; |
| 69 | 72 |
| 70 // Status codes for communication errors with the device management service. | 73 // Status codes for communication errors with the device management service. |
| 71 // This enum is used to define the buckets for an enumerated UMA histogram. | 74 // This enum is used to define the buckets for an enumerated UMA histogram. |
| 72 // Hence, | 75 // Hence, |
| 73 // (a) existing enumerated constants should never be deleted or reordered, and | 76 // (a) existing enumerated constants should never be deleted or reordered, and |
| 74 // (b) new constants should only be appended at the end of the enumeration. | 77 // (b) new constants should only be appended at the end of the enumeration. |
| 75 enum DeviceManagementStatus { | 78 enum DeviceManagementStatus { |
| 76 // All is good. | 79 // All is good. |
| 77 DM_STATUS_SUCCESS = 0, | 80 DM_STATUS_SUCCESS = 0, |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 // appropriate action (currently, launching | 129 // appropriate action (currently, launching |
| 127 // offline demo mode). | 130 // offline demo mode). |
| 128 DEVICE_MODE_CONSUMER_KIOSK_AUTOLAUNCH, // The device is locally owned as | 131 DEVICE_MODE_CONSUMER_KIOSK_AUTOLAUNCH, // The device is locally owned as |
| 129 // consumer kiosk with ability to auto | 132 // consumer kiosk with ability to auto |
| 130 // launch a kiosk webapp. | 133 // launch a kiosk webapp. |
| 131 }; | 134 }; |
| 132 | 135 |
| 133 } // namespace policy | 136 } // namespace policy |
| 134 | 137 |
| 135 #endif // COMPONENTS_POLICY_CORE_COMMON_CLOUD_CLOUD_POLICY_CONSTANTS_H_ | 138 #endif // COMPONENTS_POLICY_CORE_COMMON_CLOUD_CLOUD_POLICY_CONSTANTS_H_ |
| OLD | NEW |