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

Unified Diff: chrome/browser/configuration_policy_provider.h

Issue 2027010: Preference provider implementation backed by JSON files in a directory. (Closed)
Patch Set: A few more fixes. 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/configuration_policy_provider.h
diff --git a/chrome/browser/configuration_policy_provider.h b/chrome/browser/configuration_policy_provider.h
index cae73f6f5b5e2c49fee021f5e5f7dd056afc7fe6..daf5cb494ab7bd21ff78790aae5dad6c3f091ab8 100644
--- a/chrome/browser/configuration_policy_provider.h
+++ b/chrome/browser/configuration_policy_provider.h
@@ -5,21 +5,24 @@
#ifndef CHROME_BROWSER_CONFIGURATION_POLICY_PROVIDER_H_
#define CHROME_BROWSER_CONFIGURATION_POLICY_PROVIDER_H_
+#include "base/basictypes.h"
+
class ConfigurationPolicyStore;
+class DictionaryValue;
// 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();
+ 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
+ // 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;
@@ -28,5 +31,10 @@ class ConfigurationPolicyProvider {
DISALLOW_COPY_AND_ASSIGN(ConfigurationPolicyProvider);
};
-#endif // CHROME_BROWSER_CONFIGURATION_POLICY_PROVIDER_H_
+// Base functionality for all policy providers that use a DictionaryValue tree
+// structure holding key-value pairs for storing policy settings. Decodes the
+// value tree and writes the configuration to the given |store|.
+void DecodePolicyValueTree(DictionaryValue* policies,
+ ConfigurationPolicyStore* store);
+#endif // CHROME_BROWSER_CONFIGURATION_POLICY_PROVIDER_H_
« no previous file with comments | « chrome/browser/config_dir_policy_provider_unittest.cc ('k') | chrome/browser/configuration_policy_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698