Chromium Code Reviews| Index: chrome/browser/policy/configuration_policy_store_interface.h |
| diff --git a/chrome/browser/policy/configuration_policy_store_interface.h b/chrome/browser/policy/configuration_policy_store_interface.h |
| index 00ebf30adb8894a8a20d68656f045eebdbbc0bf9..ec6811e05759d943d3cc0a4ab19beb09ed7ac1ef 100644 |
| --- a/chrome/browser/policy/configuration_policy_store_interface.h |
| +++ b/chrome/browser/policy/configuration_policy_store_interface.h |
| @@ -25,7 +25,7 @@ enum ConfigurationPolicyType { |
| kPolicyDefaultSearchProviderIconURL, |
| kPolicyDefaultSearchProviderEncodings, |
| kPolicyDisableSpdy, |
| - kPolicyProxyServerMode, |
| + kPolicyProxyMode, |
| kPolicyProxyServer, |
| kPolicyProxyPacUrl, |
| kPolicyProxyBypassList, |
| @@ -69,10 +69,24 @@ enum ConfigurationPolicyType { |
| kPolicyDisable3DAPIs |
| }; |
| -static const int kPolicyNoProxyServerMode = 0; |
| -static const int kPolicyAutoDetectProxyMode = 1; |
| -static const int kPolicyManuallyConfiguredProxyMode = 2; |
| -static const int kPolicyUseSystemProxyMode = 3; |
| + |
| +// Constants for the "Proxy Server Mode" defined in the policies. |
| +// Note that these diverge from internal presentation defined in |
| +// ProxyPrefs::ProxyMode for legacy reasons. The following four |
| +// PolicyProxyModeType types were not very precise and had overlapping use |
| +// cases. |
| +enum PolicyProxyModeType { |
| + // Disable Proxy, connect directly. |
| + kPolicyNoProxyServerMode = 0, |
| + // Auto detect proxy or use specific PAC script if given. |
| + kPolicyAutoDetectProxyMode = 1, |
| + // Use manually configured proxy servers (fixed servers). |
| + kPolicyManuallyConfiguredProxyMode = 2, |
| + // Use system proxy server. |
| + kPolicyUseSystemProxyMode = 3, |
| + |
| + NUM_PROXY_MODES |
|
Mattias Nissler (ping if slow)
2010/12/22 10:22:12
why use a CAPS_CONSTANT if all others use kCameCas
battre
2010/12/22 14:41:16
Done.
|
| +}; |
| // An abstract super class for policy stores that provides a method that can be |
| // called by a |ConfigurationPolicyProvider| to specify a policy. |