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

Side by Side Diff: chrome/browser/configuration_policy_provider.h

Issue 1692011: Implementation of managed policy: Policy Abstraction (Closed)
Patch Set: check no changes Created 10 years, 7 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
OLDNEW
(Empty)
1 // Copyright (c) 2010 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_CONFIGURATION_POLICY_PROVIDER_H_
6 #define CHROME_BROWSER_CONFIGURATION_POLICY_PROVIDER_H_
7
8 class ConfigurationPolicyStore;
9
10 // An abstract super class for platform-specific policy providers.
11 // Platform-specific policy providers (Windows Group Policy, gconf,
12 // etc.) should implement a subclass of this class.
13 class ConfigurationPolicyProvider {
14 public:
15 ConfigurationPolicyProvider();
16 virtual ~ConfigurationPolicyProvider() {}
17
18 // Must be implemented by provider subclasses to specify the
19 // provider-specific policy decisions. The preference service
20 // invokes this |Provide| method when it needs a policy
21 // provider to specify its policy choices. In |Provide|,
22 // the |ConfigurationPolicyProvider| must make calls to the
23 // |Apply| method of |store| to apply specific policies.
24 // Returns true if the policy could be provided, otherwise false.
25 virtual bool Provide(ConfigurationPolicyStore* store) = 0;
26
27 private:
28 DISALLOW_COPY_AND_ASSIGN(ConfigurationPolicyProvider);
29 };
30
31 #endif // CHROME_BROWSER_CONFIGURATION_POLICY_PROVIDER_H_
32
OLDNEW
« no previous file with comments | « chrome/browser/configuration_policy_pref_store_unittest.cc ('k') | chrome/browser/configuration_policy_store.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698