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 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 | |
8 | 7 |
9 #include <string> | 8 #include <string> |
10 | 9 |
11 namespace ProxyPrefs { | 10 namespace ProxyPrefs { |
12 | 11 |
13 // Possible types of specifying proxy settings. Do not change the order of | 12 // Possible types of specifying proxy settings. Do not change the order of |
14 // the constants, because numeric values are exposed to users. | 13 // the constants, because numeric values are exposed to users. |
15 // If you add an enum constant, you should also add a string to | 14 // If you add an enum constant, you should also add a string to |
16 // kProxyModeNames in the .cc file. | 15 // kProxyModeNames in the .cc file. |
17 enum ProxyMode { | 16 enum ProxyMode { |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 bool StringToProxyMode(const std::string& in_value, | 63 bool StringToProxyMode(const std::string& in_value, |
65 ProxyMode* out_value); | 64 ProxyMode* out_value); |
66 // Ownership of the return value is NOT passed to the caller. | 65 // Ownership of the return value is NOT passed to the caller. |
67 const char* ProxyModeToString(ProxyMode mode); | 66 const char* ProxyModeToString(ProxyMode mode); |
68 | 67 |
69 bool DoesPrefPrecede(ConfigState config_state); | 68 bool DoesPrefPrecede(ConfigState config_state); |
70 | 69 |
71 } // namespace ProxyPrefs | 70 } // namespace ProxyPrefs |
72 | 71 |
73 #endif // CHROME_BROWSER_PREFS_PROXY_PREFS_H_ | 72 #endif // CHROME_BROWSER_PREFS_PROXY_PREFS_H_ |
OLD | NEW |