| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_PROXY_POLICY_PROVIDER_H_ | 5 #ifndef COMPONENTS_POLICY_CORE_COMMON_PROXY_POLICY_PROVIDER_H_ |
| 6 #define COMPONENTS_POLICY_CORE_COMMON_PROXY_POLICY_PROVIDER_H_ | 6 #define COMPONENTS_POLICY_CORE_COMMON_PROXY_POLICY_PROVIDER_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/macros.h" |
| 9 #include "components/policy/core/common/configuration_policy_provider.h" | 9 #include "components/policy/core/common/configuration_policy_provider.h" |
| 10 #include "components/policy/policy_export.h" | 10 #include "components/policy/policy_export.h" |
| 11 | 11 |
| 12 namespace policy { | 12 namespace policy { |
| 13 | 13 |
| 14 // A policy provider implementation that acts as a proxy for another policy | 14 // A policy provider implementation that acts as a proxy for another policy |
| 15 // provider, swappable at any point. | 15 // provider, swappable at any point. |
| 16 // | 16 // |
| 17 // Note that ProxyPolicyProvider correctly forwards RefreshPolicies() calls to | 17 // Note that ProxyPolicyProvider correctly forwards RefreshPolicies() calls to |
| 18 // the delegate if present. If there is no delegate, the refresh results in an | 18 // the delegate if present. If there is no delegate, the refresh results in an |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 | 55 |
| 56 private: | 56 private: |
| 57 ConfigurationPolicyProvider* delegate_; | 57 ConfigurationPolicyProvider* delegate_; |
| 58 | 58 |
| 59 DISALLOW_COPY_AND_ASSIGN(ProxyPolicyProvider); | 59 DISALLOW_COPY_AND_ASSIGN(ProxyPolicyProvider); |
| 60 }; | 60 }; |
| 61 | 61 |
| 62 } // namespace policy | 62 } // namespace policy |
| 63 | 63 |
| 64 #endif // COMPONENTS_POLICY_CORE_COMMON_PROXY_POLICY_PROVIDER_H_ | 64 #endif // COMPONENTS_POLICY_CORE_COMMON_PROXY_POLICY_PROVIDER_H_ |
| OLD | NEW |