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

Side by Side Diff: chrome/browser/policy/proxy_policy_provider.h

Issue 10449071: Enable user policy handling through the new cloud policy stack. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments. Created 8 years, 6 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 | Annotate | Revision Log
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_POLICY_PROXY_POLICY_PROVIDER_H_
6 #define CHROME_BROWSER_POLICY_PROXY_POLICY_PROVIDER_H_
7 #pragma once
8
9 #include "base/basictypes.h"
10 #include "base/memory/scoped_ptr.h"
11 #include "chrome/browser/policy/configuration_policy_provider.h"
12
13 namespace policy {
14
15 // A policy provider implementation that acts as a proxy for another policy
16 // provider, swappable at any point.
17 class ProxyPolicyProvider : public ConfigurationPolicyProvider,
18 public ConfigurationPolicyProvider::Observer {
19 public:
20 ProxyPolicyProvider();
21 virtual ~ProxyPolicyProvider();
22
23 // Updates the provider this proxy delegates to.
24 void SetDelegate(ConfigurationPolicyProvider* delegate);
25
26 // ConfigurationPolicyProvider:
27 virtual void RefreshPolicies() OVERRIDE;
28
29 // ConfigurationPolicyProvider::Observer:
30 virtual void OnUpdatePolicy(ConfigurationPolicyProvider* provider) OVERRIDE;
31 virtual void OnProviderGoingAway(
32 ConfigurationPolicyProvider* provider) OVERRIDE;
33
34 private:
35 scoped_ptr<ConfigurationPolicyObserverRegistrar> registrar_;
36
37 DISALLOW_COPY_AND_ASSIGN(ProxyPolicyProvider);
38 };
39
40 } // namespace policy
41
42 #endif // CHROME_BROWSER_POLICY_PROXY_POLICY_PROVIDER_H_
OLDNEW
« no previous file with comments | « chrome/browser/policy/mock_device_management_service.cc ('k') | chrome/browser/policy/proxy_policy_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698