| OLD | NEW | 
|---|
| (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 | 
| OLD | NEW | 
|---|