Chromium Code Reviews| Index: chrome/browser/net/pref_proxy_config_service.h |
| diff --git a/chrome/browser/net/pref_proxy_config_service.h b/chrome/browser/net/pref_proxy_config_service.h |
| index a0f6cd0c2ed1effa0d2fc41b48dfc97be3355678..a8cd6b38ca54ac2739f4be4d96b2d06f03c9eed9 100644 |
| --- a/chrome/browser/net/pref_proxy_config_service.h |
| +++ b/chrome/browser/net/pref_proxy_config_service.h |
| @@ -92,6 +92,15 @@ class PrefProxyConfigService |
| public net::ProxyConfigService::Observer, |
| public PrefProxyConfigTracker::Observer { |
| public: |
| + // Possible types of specifying proxy settings. The numeric values must |
| + // correspond to the policy::kPolicy*Proxy*Mode constants. |
| + enum ProxyServerMode { |
| + DISABLED, |
| + AUTO_DETECT, |
| + MANUAL, |
| + SYSTEM |
| + }; |
| + |
| // Takes ownership of the passed |base_service|. |
| PrefProxyConfigService(PrefProxyConfigTracker* tracker, |
| net::ProxyConfigService* base_service); |
| @@ -105,6 +114,8 @@ class PrefProxyConfigService |
| static void RegisterUserPrefs(PrefService* user_prefs); |
| + static bool IntToMode(int in_value, ProxyServerMode* out_value); |
|
danno
2010/12/14 12:48:17
This could be ModeStringToEnum.
gfeher
2010/12/16 10:42:04
I still need this to convert from policy and prefe
|
| + |
| private: |
| // ProxyConfigService::Observer implementation: |
| virtual void OnProxyConfigChanged(const net::ProxyConfig& config); |