BookmarkManager: Fix 'new folder text field size changes on clicking it' issue.
[chromium-blink-merge.git] / chrome / browser / chromeos / proxy_cros_settings_parser.h
blob7c81fccc843853113bf6e083bd02fa69dd8426e5
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.
5 #ifndef CHROME_BROWSER_CHROMEOS_PROXY_CROS_SETTINGS_PARSER_H_
6 #define CHROME_BROWSER_CHROMEOS_PROXY_CROS_SETTINGS_PARSER_H_
8 #include <string>
10 namespace base {
11 class Value;
14 namespace chromeos {
16 class UIProxyConfigService;
18 extern const char kProxyPacUrl[];
19 extern const char kProxySingleHttp[];
20 extern const char kProxySingleHttpPort[];
21 extern const char kProxyHttpUrl[];
22 extern const char kProxyHttpPort[];
23 extern const char kProxyHttpsUrl[];
24 extern const char kProxyHttpsPort[];
25 extern const char kProxyType[];
26 extern const char kProxySingle[];
27 extern const char kProxyFtpUrl[];
28 extern const char kProxyFtpPort[];
29 extern const char kProxySocks[];
30 extern const char kProxySocksPort[];
31 extern const char kProxyIgnoreList[];
32 extern const char kProxyUsePacUrl[];
34 extern const char* const kProxySettings[];
35 extern const size_t kProxySettingsCount;
37 // This namespace defines helper functions for setting/getting Proxy settings.
38 namespace proxy_cros_settings_parser {
40 // Returns true if the supplied |path| is a proxy preference name.
41 bool IsProxyPref(const std::string& path);
43 // Sets a value in the current proxy configuration on the specified profile.
44 void SetProxyPrefValue(const std::string& path,
45 const base::Value* in_value,
46 UIProxyConfigService* config_service);
48 // Gets a value from the current proxy configuration on the specified profile.
49 bool GetProxyPrefValue(const UIProxyConfigService& config_service,
50 const std::string& path,
51 base::Value** out_value);
53 } // namespace proxy_cros_settings_parser
55 } // namespace chromeos
57 #endif // CHROME_BROWSER_CHROMEOS_PROXY_CROS_SETTINGS_PARSER_H_