OLD | NEW |
---|---|
(Empty) | |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CHROME_BROWSER_PREFS_PROXY_PREFS_H_ | |
6 #define CHROME_BROWSER_PREFS_PROXY_PREFS_H_ | |
7 #pragma once | |
8 | |
9 #include <string> | |
10 | |
11 namespace ProxyPrefs { | |
12 | |
13 // Possible types of specifying proxy settings. Do not change the order of | |
14 // the constants, because numeric values are exposed to users. | |
15 // If you add an enum constant, you should also add a string to | |
16 // kProxyModeNames in the .cc file. | |
17 enum ProxyMode { | |
18 // Direct connection to the network, other proxy preferences are ignored. | |
19 kModeDirect = 0, | |
eroman
2010/12/23 01:06:15
Note that Chrome's style is to use UPPER_CASE for
battre
2010/12/23 09:41:42
Done.
| |
20 | |
21 // Try to retrieve a PAC script from http://wpad/wpad.dat or fall back to | |
22 // direct connection. | |
23 kModeAutoDetect = 1, | |
24 | |
25 // Try to retrieve a PAC script from kProxyPacURL or fall back to direct | |
26 // connection. | |
27 kModePacScript = 2, | |
28 | |
29 // Use the settings specified in kProxyServer and kProxyBypassList. | |
30 kModeFixedServers = 3, | |
31 | |
32 // The system's proxy settings are used, other proxy preferences are | |
33 // ignored. | |
34 kModeSystem = 4, | |
35 | |
36 kModeCount | |
37 }; | |
38 | |
39 bool IntToProxyMode(int in_value, ProxyMode* out_value); | |
40 bool StringToProxyMode(const std::string& in_value, | |
41 ProxyMode* out_value); | |
42 | |
43 } // namespace | |
eroman
2010/12/23 01:06:15
nit: "// namespace ProxyPrefs"
battre
2010/12/23 09:41:42
Done.
| |
44 | |
45 #endif // CHROME_BROWSER_PREFS_PROXY_PREFS_H_ | |
OLD | NEW |