OLD | NEW |
---|---|
(Empty) | |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CHROME_BROWSER_CHROMEOS_PROXY_CROS_SETTINGS_PARSER_H_ | |
6 #define CHROME_BROWSER_CHROMEOS_PROXY_CROS_SETTINGS_PARSER_H_ | |
7 #pragma once | |
8 | |
9 #include <string> | |
10 | |
11 class Profile; | |
12 | |
13 namespace base { | |
14 class Value; | |
15 } | |
16 | |
17 namespace chromeos { | |
18 | |
19 extern const char kProxyPacUrl[]; | |
20 extern const char kProxySingleHttp[]; | |
21 extern const char kProxySingleHttpPort[]; | |
22 extern const char kProxyHttpUrl[]; | |
23 extern const char kProxyHttpPort[]; | |
24 extern const char kProxyHttpsUrl[]; | |
25 extern const char kProxyHttpsPort[]; | |
26 extern const char kProxyType[]; | |
27 extern const char kProxySingle[]; | |
28 extern const char kProxyFtpUrl[]; | |
29 extern const char kProxyFtpPort[]; | |
30 extern const char kProxySocks[]; | |
31 extern const char kProxySocksPort[]; | |
32 extern const char kProxyIgnoreList[]; | |
33 | |
34 extern const char* const kProxySettings[]; | |
35 extern const size_t kProxySettingsCount; | |
36 | |
37 // This namespace defines two helper functions for parsing Proxy configuration | |
38 // to and from the ProxyConfigServiceImpl and the UI that exposes them to the | |
39 // user. | |
40 namespace proxy_cros_settings_parser { | |
41 bool IsProxyPref(const std::string& path); | |
kuan
2011/11/10 14:27:25
describe IsProxyPref, insert a line after.
pastarmovj
2011/11/10 16:08:26
Done.
| |
42 // Sets a value in the current proxy configuration on the specified profile. | |
43 void SetProxyPrefValue(Profile* profile, | |
44 const std::string& path, | |
45 const base::Value* in_value); | |
46 | |
47 // Gets a value from the current proxy configuration on the specified profile. | |
48 bool GetProxyPrefValue(Profile* profile, | |
49 const std::string& path, | |
50 base::Value** out_value); | |
51 } // namespace proxy_cros_settings_parser | |
52 | |
53 } // namespace chromeos | |
54 | |
55 #endif // CHROME_BROWSER_CHROMEOS_PROXY_CROS_SETTINGS_PARSER_H_ | |
OLD | NEW |