| 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_NAMESPACE_H_ | 5 #ifndef COMPONENTS_POLICY_CORE_COMMON_POLICY_NAMESPACE_H_ |
| 6 #define COMPONENTS_POLICY_CORE_COMMON_POLICY_NAMESPACE_H_ | 6 #define COMPONENTS_POLICY_CORE_COMMON_POLICY_NAMESPACE_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> |
| 9 | 10 |
| 10 #include "components/policy/policy_export.h" | 11 #include "components/policy/policy_export.h" |
| 11 | 12 |
| 12 namespace policy { | 13 namespace policy { |
| 13 | 14 |
| 14 // Policies are namespaced by a (PolicyDomain, ID) pair. The meaning of the ID | 15 // Policies are namespaced by a (PolicyDomain, ID) pair. The meaning of the ID |
| 15 // string depends on the domain; for example, if the PolicyDomain is | 16 // string depends on the domain; for example, if the PolicyDomain is |
| 16 // "extensions" then the ID identifies the extension that the policies control. | 17 // "extensions" then the ID identifies the extension that the policies control. |
| 17 enum POLICY_EXPORT PolicyDomain { | 18 enum POLICY_EXPORT PolicyDomain { |
| 18 // The component ID for chrome policies is always the empty string. | 19 // The component ID for chrome policies is always the empty string. |
| (...skipping 18 matching lines...) Expand all Loading... |
| 37 | 38 |
| 38 PolicyNamespace& operator=(const PolicyNamespace& other); | 39 PolicyNamespace& operator=(const PolicyNamespace& other); |
| 39 bool operator<(const PolicyNamespace& other) const; | 40 bool operator<(const PolicyNamespace& other) const; |
| 40 bool operator==(const PolicyNamespace& other) const; | 41 bool operator==(const PolicyNamespace& other) const; |
| 41 bool operator!=(const PolicyNamespace& other) const; | 42 bool operator!=(const PolicyNamespace& other) const; |
| 42 | 43 |
| 43 PolicyDomain domain; | 44 PolicyDomain domain; |
| 44 std::string component_id; | 45 std::string component_id; |
| 45 }; | 46 }; |
| 46 | 47 |
| 48 typedef std::vector<PolicyNamespace> PolicyNamespaceList; |
| 49 |
| 47 } // namespace policy | 50 } // namespace policy |
| 48 | 51 |
| 49 #endif // COMPONENTS_POLICY_CORE_COMMON_POLICY_NAMESPACE_H_ | 52 #endif // COMPONENTS_POLICY_CORE_COMMON_POLICY_NAMESPACE_H_ |
| OLD | NEW |