| Index: chrome/browser/configuration_policy_provider.h
|
| diff --git a/chrome/browser/configuration_policy_provider.h b/chrome/browser/configuration_policy_provider.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..cae73f6f5b5e2c49fee021f5e5f7dd056afc7fe6
|
| --- /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_
|
| +
|
|
|