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 // Returns true if the supplied |path| is a proxy preference name. |
| 42 bool IsProxyPref(const std::string& path); |
| 43 |
| 44 // Sets a value in the current proxy configuration on the specified profile. |
| 45 void SetProxyPrefValue(Profile* profile, |
| 46 const std::string& path, |
| 47 const base::Value* in_value); |
| 48 |
| 49 // Gets a value from the current proxy configuration on the specified profile. |
| 50 bool GetProxyPrefValue(Profile* profile, |
| 51 const std::string& path, |
| 52 base::Value** out_value); |
| 53 } // namespace proxy_cros_settings_parser |
| 54 |
| 55 } // namespace chromeos |
| 56 |
| 57 #endif // CHROME_BROWSER_CHROMEOS_PROXY_CROS_SETTINGS_PARSER_H_ |
OLD | NEW |