Ignore title parameter for navigator.registerProtocolHandler
[chromium-blink-merge.git] / components / policy / core / common / proxy_policy_provider.h
blobee5f22394bab15553a8ce0c0d2d9590ffc93ab86
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
3 // found in the LICENSE file.
5 #ifndef COMPONENTS_POLICY_CORE_COMMON_PROXY_POLICY_PROVIDER_H_
6 #define COMPONENTS_POLICY_CORE_COMMON_PROXY_POLICY_PROVIDER_H_
8 #include "base/basictypes.h"
9 #include "components/policy/core/common/configuration_policy_provider.h"
10 #include "components/policy/policy_export.h"
12 namespace policy {
14 // A policy provider implementation that acts as a proxy for another policy
15 // provider, swappable at any point.
16 class POLICY_EXPORT ProxyPolicyProvider
17 : public ConfigurationPolicyProvider,
18 public ConfigurationPolicyProvider::Observer {
19 public:
20 ProxyPolicyProvider();
21 virtual ~ProxyPolicyProvider();
23 // Updates the provider this proxy delegates to.
24 void SetDelegate(ConfigurationPolicyProvider* delegate);
26 // ConfigurationPolicyProvider:
27 virtual void Shutdown() OVERRIDE;
28 virtual void RefreshPolicies() OVERRIDE;
30 // ConfigurationPolicyProvider::Observer:
31 virtual void OnUpdatePolicy(ConfigurationPolicyProvider* provider) OVERRIDE;
33 private:
34 ConfigurationPolicyProvider* delegate_;
36 DISALLOW_COPY_AND_ASSIGN(ProxyPolicyProvider);
39 } // namespace policy
41 #endif // COMPONENTS_POLICY_CORE_COMMON_PROXY_POLICY_PROVIDER_H_