Chromium Code Reviews| Index: chrome/browser/policy/config_dir_policy_provider.h |
| diff --git a/chrome/browser/policy/config_dir_policy_provider.h b/chrome/browser/policy/config_dir_policy_provider.h |
| index 60965135099cef13c6db1a68a8f19ea21a1b6be8..07f90c2cd1e327cdd808999b563490d9ab996af4 100644 |
| --- a/chrome/browser/policy/config_dir_policy_provider.h |
| +++ b/chrome/browser/policy/config_dir_policy_provider.h |
| @@ -10,23 +10,6 @@ |
| namespace policy { |
| -// A policy loader implementation backed by a set of files in a given directory. |
| -// The files should contain JSON-formatted policy settings. They are merged |
| -// together and the result is returned via the PolicyLoader interface. The files |
| -// are consulted in lexicographic file name order, so the last value read takes |
| -// precedence in case of preference key collisions. |
| -class ConfigDirPolicyLoader : public FileBasedPolicyProvider::Delegate { |
| - public: |
| - explicit ConfigDirPolicyLoader(const FilePath& config_dir); |
| - |
| - // FileBasedPolicyLoader::Delegate implementation. |
| - virtual DictionaryValue* Load(); |
| - virtual base::Time GetLastModification(); |
| - |
| - private: |
| - DISALLOW_COPY_AND_ASSIGN(ConfigDirPolicyLoader); |
| -}; |
| - |
| // Policy provider backed by JSON files in a configuration directory. |
| class ConfigDirPolicyProvider : public FileBasedPolicyProvider { |
| public: |
| @@ -38,6 +21,24 @@ class ConfigDirPolicyProvider : public FileBasedPolicyProvider { |
| DISALLOW_COPY_AND_ASSIGN(ConfigDirPolicyProvider); |
| }; |
| +// A provider delegate implementation backed by a set of files in a given |
| +// directory. The files should contain JSON-formatted policy settings. They are |
|
Mattias Nissler (ping if slow)
2010/12/06 10:26:20
nit: Decide on whether you want one or two spaces
danno
2010/12/06 14:05:12
Done.
|
| +// merged together and the result is returned via the PolicyLoader |
|
Mattias Nissler (ping if slow)
2010/12/06 10:26:20
s/PolicyLoader/ProviderDelegate/
danno
2010/12/06 14:05:12
Done.
|
| +// interface. The files are consulted in lexicographic file name order, so the |
| +// last value read takes precedence in case of preference key collisions. |
| +class ConfigDirPolicyProviderDelegate |
| + : public FileBasedPolicyProvider::ProviderDelegate { |
| + public: |
| + explicit ConfigDirPolicyProviderDelegate(const FilePath& config_dir); |
| + |
| + // FileBasedPolicyProvider::ProviderDelegate implementation. |
| + virtual DictionaryValue* Load(); |
| + virtual base::Time GetLastModification(); |
| + |
| + private: |
| + DISALLOW_COPY_AND_ASSIGN(ConfigDirPolicyProviderDelegate); |
| +}; |
| + |
| } // namespace policy |
| #endif // CHROME_BROWSER_POLICY_CONFIG_DIR_POLICY_PROVIDER_H_ |