Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(974)

Side by Side Diff: components/policy/core/common/proxy_policy_provider.h

Issue 137203005: Moved the ProxyPolicyProvider to the policy component. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@BPC-3-dm-url-at-base
Patch Set: Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « components/components_tests.gyp ('k') | components/policy/core/common/proxy_policy_provider.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 CHROME_BROWSER_CHROMEOS_POLICY_PROXY_POLICY_PROVIDER_H_ 5 #ifndef COMPONENTS_POLICY_CORE_COMMON_PROXY_POLICY_PROVIDER_H_
6 #define CHROME_BROWSER_CHROMEOS_POLICY_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 "base/memory/scoped_ptr.h"
10 #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"
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 class ProxyPolicyProvider : public ConfigurationPolicyProvider, 16 class POLICY_EXPORT ProxyPolicyProvider
17 public ConfigurationPolicyProvider::Observer { 17 : public ConfigurationPolicyProvider,
18 public ConfigurationPolicyProvider::Observer {
18 public: 19 public:
19 ProxyPolicyProvider(); 20 ProxyPolicyProvider();
20 virtual ~ProxyPolicyProvider(); 21 virtual ~ProxyPolicyProvider();
21 22
22 // Updates the provider this proxy delegates to. 23 // Updates the provider this proxy delegates to.
23 void SetDelegate(ConfigurationPolicyProvider* delegate); 24 void SetDelegate(ConfigurationPolicyProvider* delegate);
24 25
25 // ConfigurationPolicyProvider: 26 // ConfigurationPolicyProvider:
26 virtual void Shutdown() OVERRIDE; 27 virtual void Shutdown() OVERRIDE;
27 virtual void RefreshPolicies() OVERRIDE; 28 virtual void RefreshPolicies() OVERRIDE;
28 29
29 // ConfigurationPolicyProvider::Observer: 30 // ConfigurationPolicyProvider::Observer:
30 virtual void OnUpdatePolicy(ConfigurationPolicyProvider* provider) OVERRIDE; 31 virtual void OnUpdatePolicy(ConfigurationPolicyProvider* provider) OVERRIDE;
31 32
32 private: 33 private:
33 ConfigurationPolicyProvider* delegate_; 34 ConfigurationPolicyProvider* delegate_;
34 35
35 DISALLOW_COPY_AND_ASSIGN(ProxyPolicyProvider); 36 DISALLOW_COPY_AND_ASSIGN(ProxyPolicyProvider);
36 }; 37 };
37 38
38 } // namespace policy 39 } // namespace policy
39 40
40 #endif // CHROME_BROWSER_CHROMEOS_POLICY_PROXY_POLICY_PROVIDER_H_ 41 #endif // COMPONENTS_POLICY_CORE_COMMON_PROXY_POLICY_PROVIDER_H_
OLDNEW
« no previous file with comments | « components/components_tests.gyp ('k') | components/policy/core/common/proxy_policy_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698