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 <memory> |
10 #include <string> | 11 #include <string> |
11 | 12 |
12 namespace base { | 13 namespace base { |
13 class Value; | 14 class Value; |
14 } | 15 } |
15 | 16 |
16 namespace chromeos { | 17 namespace chromeos { |
17 | 18 |
18 class UIProxyConfigService; | 19 class UIProxyConfigService; |
19 | 20 |
(...skipping 28 matching lines...) Expand all Loading... |
48 // Sets a value in the current proxy configuration on the specified profile. | 49 // Sets a value in the current proxy configuration on the specified profile. |
49 void SetProxyPrefValue(const std::string& network_guid, | 50 void SetProxyPrefValue(const std::string& network_guid, |
50 const std::string& path, | 51 const std::string& path, |
51 const base::Value* in_value, | 52 const base::Value* in_value, |
52 UIProxyConfigService* config_service); | 53 UIProxyConfigService* config_service); |
53 | 54 |
54 // Gets a value from the current proxy configuration on the specified profile. | 55 // Gets a value from the current proxy configuration on the specified profile. |
55 bool GetProxyPrefValue(const std::string& network_guid, | 56 bool GetProxyPrefValue(const std::string& network_guid, |
56 const std::string& path, | 57 const std::string& path, |
57 UIProxyConfigService* config_service, | 58 UIProxyConfigService* config_service, |
58 base::Value** out_value); | 59 std::unique_ptr<base::Value>* out_value); |
59 | 60 |
60 } // namespace proxy_cros_settings_parser | 61 } // namespace proxy_cros_settings_parser |
61 | 62 |
62 } // namespace chromeos | 63 } // namespace chromeos |
63 | 64 |
64 #endif // CHROME_BROWSER_CHROMEOS_PROXY_CROS_SETTINGS_PARSER_H_ | 65 #endif // CHROME_BROWSER_CHROMEOS_PROXY_CROS_SETTINGS_PARSER_H_ |
OLD | NEW |