diff options
author | danno@chromium.org <danno@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-05-12 15:03:32 +0000 |
---|---|---|
committer | danno@chromium.org <danno@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-05-12 15:03:32 +0000 |
commit | c0858b00d9c2009c489ee8d90eb46460a8acc82d (patch) | |
tree | 4816a658e5200edc5c2d8b5fb465b8a8474a3b58 /chrome/browser/configuration_policy_provider.h | |
parent | d661e6ed98b7139f898f7edd33f7d1e2b946c9c6 (diff) | |
download | chromium_src-c0858b00d9c2009c489ee8d90eb46460a8acc82d.zip chromium_src-c0858b00d9c2009c489ee8d90eb46460a8acc82d.tar.gz chromium_src-c0858b00d9c2009c489ee8d90eb46460a8acc82d.tar.bz2 |
Implementation of managed policy abstraction on top of a preference store. This is preparation work for implementing platform-specific policy.
BUG=none
TEST=--gtest_filter=ConfigurationPolicyPrefStoreTest*
Review URL: http://codereview.chromium.org/1692011
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47030 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/configuration_policy_provider.h')
-rw-r--r-- | chrome/browser/configuration_policy_provider.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/chrome/browser/configuration_policy_provider.h b/chrome/browser/configuration_policy_provider.h new file mode 100644 index 0000000..cae73f6 --- /dev/null +++ b/chrome/browser/configuration_policy_provider.h @@ -0,0 +1,32 @@ +// Copyright (c) 2010 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#ifndef CHROME_BROWSER_CONFIGURATION_POLICY_PROVIDER_H_ +#define CHROME_BROWSER_CONFIGURATION_POLICY_PROVIDER_H_ + +class ConfigurationPolicyStore; + +// An abstract super class for platform-specific policy providers. +// Platform-specific policy providers (Windows Group Policy, gconf, +// etc.) should implement a subclass of this class. +class ConfigurationPolicyProvider { + public: + ConfigurationPolicyProvider(); + virtual ~ConfigurationPolicyProvider() {} + + // Must be implemented by provider subclasses to specify the + // provider-specific policy decisions. The preference service + // invokes this |Provide| method when it needs a policy + // provider to specify its policy choices. In |Provide|, + // the |ConfigurationPolicyProvider| must make calls to the + // |Apply| method of |store| to apply specific policies. + // Returns true if the policy could be provided, otherwise false. + virtual bool Provide(ConfigurationPolicyStore* store) = 0; + + private: + DISALLOW_COPY_AND_ASSIGN(ConfigurationPolicyProvider); +}; + +#endif // CHROME_BROWSER_CONFIGURATION_POLICY_PROVIDER_H_ + |