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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 POLICY_EXPORT extern const char kChromeExtensionPolicyType[]; | 45 POLICY_EXPORT extern const char kChromeExtensionPolicyType[]; |
46 | 46 |
47 // These codes are sent in the |error_code| field of PolicyFetchResponse. | 47 // These codes are sent in the |error_code| field of PolicyFetchResponse. |
48 enum PolicyFetchStatus { | 48 enum PolicyFetchStatus { |
49 POLICY_FETCH_SUCCESS = 200, | 49 POLICY_FETCH_SUCCESS = 200, |
50 POLICY_FETCH_ERROR_NOT_FOUND = 902, | 50 POLICY_FETCH_ERROR_NOT_FOUND = 902, |
51 }; | 51 }; |
52 | 52 |
53 } // namespace dm_protocol | 53 } // namespace dm_protocol |
54 | 54 |
| 55 // The header used to transmit the policy ID for this client. |
| 56 POLICY_EXPORT extern const char kChromePolicyHeader[]; |
| 57 |
55 // Information about the verification key used to verify that policy signing | 58 // Information about the verification key used to verify that policy signing |
56 // keys are valid. | 59 // keys are valid. |
57 POLICY_EXPORT std::string GetPolicyVerificationKey(); | 60 POLICY_EXPORT std::string GetPolicyVerificationKey(); |
58 POLICY_EXPORT extern const char kPolicyVerificationKeyHash[]; | 61 POLICY_EXPORT extern const char kPolicyVerificationKeyHash[]; |
59 | 62 |
60 // Describes the affiliation of a user w.r.t. the device owner. | 63 // Describes the affiliation of a user w.r.t. the device owner. |
61 enum UserAffiliation { | 64 enum UserAffiliation { |
62 // User is on the same domain the device was registered with. | 65 // User is on the same domain the device was registered with. |
63 USER_AFFILIATION_MANAGED, | 66 USER_AFFILIATION_MANAGED, |
64 // No affiliation between device and user. | 67 // No affiliation between device and user. |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 | 123 |
121 // 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 |
122 // default user policy type on Android and iOS for testing purposes. | 125 // default user policy type on Android and iOS for testing purposes. |
123 // TODO(joaodasilva): remove this once the server is ready. | 126 // TODO(joaodasilva): remove this once the server is ready. |
124 // http://crbug.com/248527 | 127 // http://crbug.com/248527 |
125 POLICY_EXPORT const char* GetChromeUserPolicyType(); | 128 POLICY_EXPORT const char* GetChromeUserPolicyType(); |
126 | 129 |
127 } // namespace policy | 130 } // namespace policy |
128 | 131 |
129 #endif // COMPONENTS_POLICY_CORE_COMMON_CLOUD_CLOUD_POLICY_CONSTANTS_H_ | 132 #endif // COMPONENTS_POLICY_CORE_COMMON_CLOUD_CLOUD_POLICY_CONSTANTS_H_ |
OLD | NEW |