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 CHROME_BROWSER_POLICY_POLICY_MAP_H_ | 5 #ifndef CHROME_BROWSER_POLICY_POLICY_MAP_H_ |
6 #define CHROME_BROWSER_POLICY_POLICY_MAP_H_ | 6 #define CHROME_BROWSER_POLICY_POLICY_MAP_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
11 | 11 |
12 #include "base/values.h" | 12 #include "base/values.h" |
13 #include "chrome/browser/policy/policy_constants.h" | 13 #include "chrome/browser/policy/policy_types.h" |
14 | 14 |
15 namespace policy { | 15 namespace policy { |
16 | 16 |
17 // A mapping of policy names to policy values for a given policy namespace. | 17 // A mapping of policy names to policy values for a given policy namespace. |
18 class PolicyMap { | 18 class PolicyMap { |
19 public: | 19 public: |
20 // Each policy maps to an Entry which keeps the policy value as well as other | 20 // Each policy maps to an Entry which keeps the policy value as well as other |
21 // relevant data about the policy. | 21 // relevant data about the policy. |
22 struct Entry { | 22 struct Entry { |
23 PolicyLevel level; | 23 PolicyLevel level; |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 const PolicyMapType::value_type& b); | 107 const PolicyMapType::value_type& b); |
108 | 108 |
109 PolicyMapType map_; | 109 PolicyMapType map_; |
110 | 110 |
111 DISALLOW_COPY_AND_ASSIGN(PolicyMap); | 111 DISALLOW_COPY_AND_ASSIGN(PolicyMap); |
112 }; | 112 }; |
113 | 113 |
114 } // namespace policy | 114 } // namespace policy |
115 | 115 |
116 #endif // CHROME_BROWSER_POLICY_POLICY_MAP_H_ | 116 #endif // CHROME_BROWSER_POLICY_POLICY_MAP_H_ |
OLD | NEW |