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/basictypes.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" |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
42 public: | 42 public: |
43 ProxyPolicyProvider(); | 43 ProxyPolicyProvider(); |
44 ~ProxyPolicyProvider() override; | 44 ~ProxyPolicyProvider() override; |
45 | 45 |
46 // Updates the provider this proxy delegates to. | 46 // Updates the provider this proxy delegates to. |
47 void SetDelegate(ConfigurationPolicyProvider* delegate); | 47 void SetDelegate(ConfigurationPolicyProvider* delegate); |
48 | 48 |
49 // ConfigurationPolicyProvider: | 49 // ConfigurationPolicyProvider: |
50 void Shutdown() override; | 50 void Shutdown() override; |
51 void RefreshPolicies() override; | 51 void RefreshPolicies() override; |
52 // ConfigurationPolicyProvider::source() now provided by delegate. | |
Thiemo Nagel
2015/09/01 17:40:37
Remove.
fhorschig
2015/09/04 06:53:55
Done.
| |
53 PolicySource source() const override; | |
52 | 54 |
53 // ConfigurationPolicyProvider::Observer: | 55 // ConfigurationPolicyProvider::Observer: |
54 void OnUpdatePolicy(ConfigurationPolicyProvider* provider) override; | 56 void OnUpdatePolicy(ConfigurationPolicyProvider* provider) override; |
55 | 57 |
56 private: | 58 private: |
57 ConfigurationPolicyProvider* delegate_; | 59 ConfigurationPolicyProvider* delegate_; |
58 | 60 |
59 DISALLOW_COPY_AND_ASSIGN(ProxyPolicyProvider); | 61 DISALLOW_COPY_AND_ASSIGN(ProxyPolicyProvider); |
60 }; | 62 }; |
61 | 63 |
62 } // namespace policy | 64 } // namespace policy |
63 | 65 |
64 #endif // COMPONENTS_POLICY_CORE_COMMON_PROXY_POLICY_PROVIDER_H_ | 66 #endif // COMPONENTS_POLICY_CORE_COMMON_PROXY_POLICY_PROVIDER_H_ |
OLD | NEW |