| 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 <stddef.h> | 
| 8 #include <stdint.h> | 9 #include <stdint.h> | 
| 9 | 10 | 
| 10 #include <string> | 11 #include <string> | 
| 11 #include <vector> | 12 #include <vector> | 
| 12 | 13 | 
| 13 #include "base/containers/hash_tables.h" | 14 #include "base/containers/hash_tables.h" | 
| 14 #include "components/policy/policy_export.h" | 15 #include "components/policy/policy_export.h" | 
| 15 | 16 | 
| 16 namespace policy { | 17 namespace policy { | 
| 17 | 18 | 
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 60 template <> | 61 template <> | 
| 61 struct hash<policy::PolicyNamespace> { | 62 struct hash<policy::PolicyNamespace> { | 
| 62   std::size_t operator()(const policy::PolicyNamespace& ns) const { | 63   std::size_t operator()(const policy::PolicyNamespace& ns) const { | 
| 63     return hash<std::string>()(ns.component_id) ^ (UINT64_C(1) << ns.domain); | 64     return hash<std::string>()(ns.component_id) ^ (UINT64_C(1) << ns.domain); | 
| 64   } | 65   } | 
| 65 }; | 66 }; | 
| 66 | 67 | 
| 67 }  // namespace BASE_HASH_NAMESPACE | 68 }  // namespace BASE_HASH_NAMESPACE | 
| 68 | 69 | 
| 69 #endif  // COMPONENTS_POLICY_CORE_COMMON_POLICY_NAMESPACE_H_ | 70 #endif  // COMPONENTS_POLICY_CORE_COMMON_POLICY_NAMESPACE_H_ | 
| OLD | NEW | 
|---|