Chromium Code Reviews| Index: chrome/browser/prefs/proxy_prefs.h |
| =================================================================== |
| --- chrome/browser/prefs/proxy_prefs.h (revision 106059) |
| +++ chrome/browser/prefs/proxy_prefs.h (working copy) |
| @@ -36,6 +36,22 @@ |
| kModeCount |
| }; |
| +// State of proxy configuration. |
| +enum ConfigState { |
| + // Configuration is from policy. |
| + CONFIG_POLICY, |
| + // Configuration is from extension. |
| + CONFIG_EXTENSION, |
| + // Configuration is not from policy or extension but still precedes others. |
| + CONFIG_OTHER_PRECEDE, |
| + // Configuration is from sytem. |
|
Mattias Nissler (ping if slow)
2011/10/24 10:18:28
s/sytem/system/
kuan
2011/10/25 02:01:54
Done.
|
| + CONFIG_SYSTEM, |
| + // Configuration is recommended i.e there's a fallback configuration. |
| + CONFIG_FALLBACK, |
| + // Configuration is known to be not set. |
| + CONFIG_UNSET, |
| +}; |
| + |
| // Constants for string values used to specify the proxy mode through externally |
| // visible APIs, e.g. through policy or the proxy extension API. |
| extern const char kDirectProxyModeName[]; |
| @@ -50,6 +66,8 @@ |
| // Ownership of the return value is NOT passed to the caller. |
| const char* ProxyModeToString(ProxyMode mode); |
| +bool DoesPrefPrecede(ConfigState config_state); |
| + |
| } // namespace ProxyPrefs |
| #endif // CHROME_BROWSER_PREFS_PROXY_PREFS_H_ |