OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_POLICY_TYPES_H_ | 5 #ifndef COMPONENTS_POLICY_CORE_COMMON_POLICY_TYPES_H_ |
6 #define COMPONENTS_POLICY_CORE_COMMON_POLICY_TYPES_H_ | 6 #define COMPONENTS_POLICY_CORE_COMMON_POLICY_TYPES_H_ |
7 | 7 |
8 namespace policy { | 8 namespace policy { |
9 | 9 |
10 // The scope of a policy flags whether it is meant to be applied to the current | 10 // The scope of a policy flags whether it is meant to be applied to the current |
(...skipping 10 matching lines...) Expand all Loading... |
21 // override it or not. The values are listed in increasing order of priority. | 21 // override it or not. The values are listed in increasing order of priority. |
22 enum PolicyLevel { | 22 enum PolicyLevel { |
23 // RECOMMENDED policies can be overridden by users. They are meant as a | 23 // RECOMMENDED policies can be overridden by users. They are meant as a |
24 // default value configured by admins, that users can customize. | 24 // default value configured by admins, that users can customize. |
25 POLICY_LEVEL_RECOMMENDED, | 25 POLICY_LEVEL_RECOMMENDED, |
26 | 26 |
27 // MANDATORY policies must be enforced and users can't circumvent them. | 27 // MANDATORY policies must be enforced and users can't circumvent them. |
28 POLICY_LEVEL_MANDATORY, | 28 POLICY_LEVEL_MANDATORY, |
29 }; | 29 }; |
30 | 30 |
31 // The source of a policy indicates where its value is originating from. The | |
32 // sources are ordered by priority (with weakest policy first). | |
33 enum PolicySource { | |
34 // The policy was set because we are running in an enterprise environment. | |
35 POLICY_SOURCE_ENTERPRISE_DEFAULT, | |
36 | |
37 // The policy was set by a cloud source. | |
38 POLICY_SOURCE_CLOUD, | |
39 | |
40 // Any non-platform policy was overridden because we are running in an | |
41 // enterprise environment. | |
42 POLICY_SOURCE_ENTERPRISE_OVERRIDE, | |
43 | |
44 // The policy was set by a platform source. | |
45 POLICY_SOURCE_PLATFORM, | |
46 | |
47 // Number of source types. Has to be the last element. | |
48 POLICY_SOURCE_COUNT | |
49 }; | |
50 | |
51 } // namespace policy | 31 } // namespace policy |
52 | 32 |
53 #endif // COMPONENTS_POLICY_CORE_COMMON_POLICY_TYPES_H_ | 33 #endif // COMPONENTS_POLICY_CORE_COMMON_POLICY_TYPES_H_ |
OLD | NEW |