OLD | NEW |
---|---|
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef COMPONENTS_PROXY_CONFIG_PROXY_PREFS_H_ | 5 #ifndef COMPONENTS_PROXY_CONFIG_PROXY_PREFS_H_ |
6 #define COMPONENTS_PROXY_CONFIG_PROXY_PREFS_H_ | 6 #define COMPONENTS_PROXY_CONFIG_PROXY_PREFS_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "components/proxy_config/proxy_config_export.h" | 10 #include "components/proxy_config/proxy_config_export.h" |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
53 CONFIG_UNSET, | 53 CONFIG_UNSET, |
54 }; | 54 }; |
55 | 55 |
56 // Constants for string values used to specify the proxy mode through externally | 56 // Constants for string values used to specify the proxy mode through externally |
57 // visible APIs, e.g. through policy or the proxy extension API. | 57 // visible APIs, e.g. through policy or the proxy extension API. |
58 PROXY_CONFIG_EXPORT extern const char kDirectProxyModeName[]; | 58 PROXY_CONFIG_EXPORT extern const char kDirectProxyModeName[]; |
59 PROXY_CONFIG_EXPORT extern const char kAutoDetectProxyModeName[]; | 59 PROXY_CONFIG_EXPORT extern const char kAutoDetectProxyModeName[]; |
60 PROXY_CONFIG_EXPORT extern const char kPacScriptProxyModeName[]; | 60 PROXY_CONFIG_EXPORT extern const char kPacScriptProxyModeName[]; |
61 PROXY_CONFIG_EXPORT extern const char kFixedServersProxyModeName[]; | 61 PROXY_CONFIG_EXPORT extern const char kFixedServersProxyModeName[]; |
62 PROXY_CONFIG_EXPORT extern const char kSystemProxyModeName[]; | 62 PROXY_CONFIG_EXPORT extern const char kSystemProxyModeName[]; |
63 PROXY_CONFIG_EXPORT extern const char kProxy[]; | |
droger
2015/08/17 13:51:36
For consistency this should be in the ProxyPrefs::
Abhishek
2015/08/19 08:30:49
I think it would be good if we can move it to "pro
| |
63 | 64 |
64 PROXY_CONFIG_EXPORT bool IntToProxyMode(int in_value, ProxyMode* out_value); | 65 PROXY_CONFIG_EXPORT bool IntToProxyMode(int in_value, ProxyMode* out_value); |
65 PROXY_CONFIG_EXPORT bool StringToProxyMode(const std::string& in_value, | 66 PROXY_CONFIG_EXPORT bool StringToProxyMode(const std::string& in_value, |
66 ProxyMode* out_value); | 67 ProxyMode* out_value); |
67 // Ownership of the return value is NOT passed to the caller. | 68 // Ownership of the return value is NOT passed to the caller. |
68 PROXY_CONFIG_EXPORT const char* ProxyModeToString(ProxyMode mode); | 69 PROXY_CONFIG_EXPORT const char* ProxyModeToString(ProxyMode mode); |
69 PROXY_CONFIG_EXPORT std::string ConfigStateToDebugString(ConfigState state); | 70 PROXY_CONFIG_EXPORT std::string ConfigStateToDebugString(ConfigState state); |
70 | 71 |
71 } // namespace ProxyPrefs | 72 } // namespace ProxyPrefs |
72 | 73 |
73 #endif // COMPONENTS_PROXY_CONFIG_PROXY_PREFS_H_ | 74 #endif // COMPONENTS_PROXY_CONFIG_PROXY_PREFS_H_ |
OLD | NEW |