| 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 <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| (...skipping 28 matching lines...) Expand all Loading... |
| 39 extern const char kProxyIgnoreList[]; | 39 extern const char kProxyIgnoreList[]; |
| 40 extern const char kProxyUsePacUrl[]; | 40 extern const char kProxyUsePacUrl[]; |
| 41 | 41 |
| 42 extern const char* const kProxySettings[]; | 42 extern const char* const kProxySettings[]; |
| 43 extern const size_t kProxySettingsCount; | 43 extern const size_t kProxySettingsCount; |
| 44 | 44 |
| 45 // Returns true if the supplied |path| is a proxy preference name. | 45 // Returns true if the supplied |path| is a proxy preference name. |
| 46 bool IsProxyPref(const std::string& path); | 46 bool IsProxyPref(const std::string& path); |
| 47 | 47 |
| 48 // Sets a value in the current proxy configuration on the specified profile. | 48 // Sets a value in the current proxy configuration on the specified profile. |
| 49 void SetProxyPrefValue(const std::string& path, | 49 void SetProxyPrefValue(const std::string& network_guid, |
| 50 const std::string& path, |
| 50 const base::Value* in_value, | 51 const base::Value* in_value, |
| 51 UIProxyConfigService* config_service); | 52 UIProxyConfigService* config_service); |
| 52 | 53 |
| 53 // Gets a value from the current proxy configuration on the specified profile. | 54 // Gets a value from the current proxy configuration on the specified profile. |
| 54 bool GetProxyPrefValue(const UIProxyConfigService& config_service, | 55 bool GetProxyPrefValue(const std::string& network_guid, |
| 55 const std::string& path, | 56 const std::string& path, |
| 57 UIProxyConfigService* config_service, |
| 56 base::Value** out_value); | 58 base::Value** out_value); |
| 57 | 59 |
| 58 } // namespace proxy_cros_settings_parser | 60 } // namespace proxy_cros_settings_parser |
| 59 | 61 |
| 60 } // namespace chromeos | 62 } // namespace chromeos |
| 61 | 63 |
| 62 #endif // CHROME_BROWSER_CHROMEOS_PROXY_CROS_SETTINGS_PARSER_H_ | 64 #endif // CHROME_BROWSER_CHROMEOS_PROXY_CROS_SETTINGS_PARSER_H_ |
| OLD | NEW |