Chromium Code Reviews| Index: chrome/browser/policy/configuration_policy_pref_store.h |
| diff --git a/chrome/browser/policy/configuration_policy_pref_store.h b/chrome/browser/policy/configuration_policy_pref_store.h |
| index 820306aa74fdf0c4374d4e420639faf85557be28..38264b8d27e5217942bde8776ce70443dbbe7910 100644 |
| --- a/chrome/browser/policy/configuration_policy_pref_store.h |
| +++ b/chrome/browser/policy/configuration_policy_pref_store.h |
| @@ -56,10 +56,6 @@ class ConfigurationPolicyPrefStore : public PrefStore, |
| static const ConfigurationPolicyProvider::PolicyDefinitionList* |
| GetChromePolicyDefinitionList(); |
| - // Returns the set of preference paths that can be affected by a proxy |
| - // policy. |
| - static void GetProxyPreferenceSet(ProxyPreferenceSet* proxy_pref_set); |
| - |
| private: |
| // Policies that map to a single preference are handled |
| // by an automated converter. Each one of these policies |
| @@ -79,23 +75,11 @@ class ConfigurationPolicyPrefStore : public PrefStore, |
| ConfigurationPolicyProvider* provider_; |
| scoped_ptr<DictionaryValue> prefs_; |
| - // Set to false until the first proxy-relevant policy is applied. At that |
| - // time, default values are provided for all proxy-relevant prefs |
| - // to override any values set from stores with a lower priority. |
| - bool lower_priority_proxy_settings_overridden_; |
| - |
| - // The following are used to track what proxy-relevant policy has been applied |
| - // accross calls to Apply to provide a warning if a policy specifies a |
| - // contradictory proxy configuration. |proxy_disabled_| is set to true if and |
| - // only if the kPolicyNoProxyServer has been applied, |
| - // |proxy_configuration_specified_| is set to true if and only if any other |
| - // proxy policy other than kPolicyNoProxyServer has been applied. |
| - bool proxy_disabled_; |
| - bool proxy_configuration_specified_; |
| + // Temporary cache that store values until FinalizeProxyPolicySettings() |
|
eroman
2010/12/23 01:06:15
nit: store --> "stores".
battre
2010/12/23 09:41:42
Done.
|
| + // is called. |
| + std::map<ConfigurationPolicyType, Value*> proxy_policies_; |
| - // Set to true if a the proxy mode policy has been set to force Chrome |
| - // to use the system proxy. |
| - bool use_system_proxy_; |
| + bool HasProxyPolicy(ConfigurationPolicyType policy) const; |
| // Returns the map entry that corresponds to |policy| in the map. |
| const PolicyToPreferenceMapEntry* FindPolicyInMap( |
| @@ -136,6 +120,19 @@ class ConfigurationPolicyPrefStore : public PrefStore, |
| // map entries from |prefs_|. |
| void FinalizeDefaultSearchPolicySettings(); |
| + // If the required entries for the proxy settings are specified and valid, |
| + // finalizes the policy-specified configuration by initializing the |
| + // respective values in |prefs_|. |
| + void FinalizeProxyPolicySettings(); |
| + |
| + // Returns true if the policy values stored in proxy_* represent a valid |
| + // proxy configuration. |
| + bool CheckProxySettings(); |
| + |
| + // Assumes CheckProxySettings returns true and applies the values stored |
| + // in proxy_*. |
| + void ApplyProxySettings(); |
| + |
| DISALLOW_COPY_AND_ASSIGN(ConfigurationPolicyPrefStore); |
| }; |