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 COMPONENTS_POLICY_CORE_COMMON_POLICY_SERVICE_H_ | 5 #ifndef COMPONENTS_POLICY_CORE_COMMON_POLICY_SERVICE_H_ |
6 #define COMPONENTS_POLICY_CORE_COMMON_POLICY_SERVICE_H_ | 6 #define COMPONENTS_POLICY_CORE_COMMON_POLICY_SERVICE_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "base/basictypes.h" | |
12 #include "base/callback.h" | 11 #include "base/callback.h" |
| 12 #include "base/macros.h" |
13 #include "components/policy/core/common/policy_map.h" | 13 #include "components/policy/core/common/policy_map.h" |
14 #include "components/policy/core/common/policy_namespace.h" | 14 #include "components/policy/core/common/policy_namespace.h" |
15 #include "components/policy/policy_export.h" | 15 #include "components/policy/policy_export.h" |
16 | 16 |
17 namespace policy { | 17 namespace policy { |
18 | 18 |
19 // The PolicyService merges policies from all available sources, taking into | 19 // The PolicyService merges policies from all available sources, taking into |
20 // account their priorities. Policy clients can retrieve policy for their domain | 20 // account their priorities. Policy clients can retrieve policy for their domain |
21 // and register for notifications on policy updates. | 21 // and register for notifications on policy updates. |
22 // | 22 // |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 PolicyService* policy_service_; | 107 PolicyService* policy_service_; |
108 PolicyNamespace ns_; | 108 PolicyNamespace ns_; |
109 CallbackMap callback_map_; | 109 CallbackMap callback_map_; |
110 | 110 |
111 DISALLOW_COPY_AND_ASSIGN(PolicyChangeRegistrar); | 111 DISALLOW_COPY_AND_ASSIGN(PolicyChangeRegistrar); |
112 }; | 112 }; |
113 | 113 |
114 } // namespace policy | 114 } // namespace policy |
115 | 115 |
116 #endif // COMPONENTS_POLICY_CORE_COMMON_POLICY_SERVICE_H_ | 116 #endif // COMPONENTS_POLICY_CORE_COMMON_POLICY_SERVICE_H_ |
OLD | NEW |