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_CHROMEOS_PROXY_CROS_SETTINGS_PARSER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_PROXY_CROS_SETTINGS_PARSER_H_ |
6 #define CHROME_BROWSER_CHROMEOS_PROXY_CROS_SETTINGS_PARSER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_PROXY_CROS_SETTINGS_PARSER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 class Profile; | 10 class Profile; |
(...skipping 11 matching lines...) Expand all Loading... |
22 extern const char kProxyHttpPort[]; | 22 extern const char kProxyHttpPort[]; |
23 extern const char kProxyHttpsUrl[]; | 23 extern const char kProxyHttpsUrl[]; |
24 extern const char kProxyHttpsPort[]; | 24 extern const char kProxyHttpsPort[]; |
25 extern const char kProxyType[]; | 25 extern const char kProxyType[]; |
26 extern const char kProxySingle[]; | 26 extern const char kProxySingle[]; |
27 extern const char kProxyFtpUrl[]; | 27 extern const char kProxyFtpUrl[]; |
28 extern const char kProxyFtpPort[]; | 28 extern const char kProxyFtpPort[]; |
29 extern const char kProxySocks[]; | 29 extern const char kProxySocks[]; |
30 extern const char kProxySocksPort[]; | 30 extern const char kProxySocksPort[]; |
31 extern const char kProxyIgnoreList[]; | 31 extern const char kProxyIgnoreList[]; |
| 32 extern const char kProxyUsePacUrl[]; |
32 | 33 |
33 extern const char* const kProxySettings[]; | 34 extern const char* const kProxySettings[]; |
34 extern const size_t kProxySettingsCount; | 35 extern const size_t kProxySettingsCount; |
35 | 36 |
36 // This namespace defines two helper functions for parsing Proxy configuration | 37 // This namespace defines two helper functions for parsing Proxy configuration |
37 // to and from the ProxyConfigServiceImpl and the UI that exposes them to the | 38 // to and from the ProxyConfigServiceImpl and the UI that exposes them to the |
38 // user. | 39 // user. |
39 namespace proxy_cros_settings_parser { | 40 namespace proxy_cros_settings_parser { |
40 // Returns true if the supplied |path| is a proxy preference name. | 41 // Returns true if the supplied |path| is a proxy preference name. |
41 bool IsProxyPref(const std::string& path); | 42 bool IsProxyPref(const std::string& path); |
42 | 43 |
43 // Sets a value in the current proxy configuration on the specified profile. | 44 // Sets a value in the current proxy configuration on the specified profile. |
44 void SetProxyPrefValue(Profile* profile, | 45 void SetProxyPrefValue(Profile* profile, |
45 const std::string& path, | 46 const std::string& path, |
46 const base::Value* in_value); | 47 const base::Value* in_value); |
47 | 48 |
48 // Gets a value from the current proxy configuration on the specified profile. | 49 // Gets a value from the current proxy configuration on the specified profile. |
49 bool GetProxyPrefValue(Profile* profile, | 50 bool GetProxyPrefValue(Profile* profile, |
50 const std::string& path, | 51 const std::string& path, |
51 base::Value** out_value); | 52 base::Value** out_value); |
52 } // namespace proxy_cros_settings_parser | 53 } // namespace proxy_cros_settings_parser |
53 | 54 |
54 } // namespace chromeos | 55 } // namespace chromeos |
55 | 56 |
56 #endif // CHROME_BROWSER_CHROMEOS_PROXY_CROS_SETTINGS_PARSER_H_ | 57 #endif // CHROME_BROWSER_CHROMEOS_PROXY_CROS_SETTINGS_PARSER_H_ |
OLD | NEW |