Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(232)

Side by Side Diff: components/policy/core/common/policy_types.h

Issue 1304843004: Add source column to chrome://policy showing the origins of policies. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed another test. Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
31 } // namespace policy 51 } // namespace policy
32 52
33 #endif // COMPONENTS_POLICY_CORE_COMMON_POLICY_TYPES_H_ 53 #endif // COMPONENTS_POLICY_CORE_COMMON_POLICY_TYPES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698