OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 CHROME_BROWSER_PREFS_PROXY_PREFS_H_ | 5 #ifndef CHROME_BROWSER_PREFS_PROXY_PREFS_H_ |
6 #define CHROME_BROWSER_PREFS_PROXY_PREFS_H_ | 6 #define CHROME_BROWSER_PREFS_PROXY_PREFS_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 29 matching lines...) Expand all Loading... |
40 // visible APIs, e.g. through policy or the proxy extension API. | 40 // visible APIs, e.g. through policy or the proxy extension API. |
41 extern const char kDirectProxyModeName[]; | 41 extern const char kDirectProxyModeName[]; |
42 extern const char kAutoDetectProxyModeName[]; | 42 extern const char kAutoDetectProxyModeName[]; |
43 extern const char kPacScriptProxyModeName[]; | 43 extern const char kPacScriptProxyModeName[]; |
44 extern const char kFixedServersProxyModeName[]; | 44 extern const char kFixedServersProxyModeName[]; |
45 extern const char kSystemProxyModeName[]; | 45 extern const char kSystemProxyModeName[]; |
46 | 46 |
47 bool IntToProxyMode(int in_value, ProxyMode* out_value); | 47 bool IntToProxyMode(int in_value, ProxyMode* out_value); |
48 bool StringToProxyMode(const std::string& in_value, | 48 bool StringToProxyMode(const std::string& in_value, |
49 ProxyMode* out_value); | 49 ProxyMode* out_value); |
50 const char* GetProxyModeName(ProxyMode mode); | 50 // Ownership of the return value is NOT passed to the caller. |
| 51 const char* ProxyModeToString(ProxyMode mode); |
51 | 52 |
52 } // namespace ProxyPrefs | 53 } // namespace ProxyPrefs |
53 | 54 |
54 #endif // CHROME_BROWSER_PREFS_PROXY_PREFS_H_ | 55 #endif // CHROME_BROWSER_PREFS_PROXY_PREFS_H_ |
OLD | NEW |