Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1456)

Side by Side Diff: chromeos/network/onc/onc_utils.h

Issue 1228543002: Translate ONC ProxySettings <-> Shill ProxyConfig (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add SchemeToString Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 CHROMEOS_NETWORK_ONC_ONC_UTILS_H_ 5 #ifndef CHROMEOS_NETWORK_ONC_ONC_UTILS_H_
6 #define CHROMEOS_NETWORK_ONC_ONC_UTILS_H_ 6 #define CHROMEOS_NETWORK_ONC_ONC_UTILS_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 base::DictionaryValue* network_config); 138 base::DictionaryValue* network_config);
139 139
140 // Returns a network type pattern for matching the ONC type string. 140 // Returns a network type pattern for matching the ONC type string.
141 CHROMEOS_EXPORT NetworkTypePattern NetworkTypePatternFromOncType( 141 CHROMEOS_EXPORT NetworkTypePattern NetworkTypePatternFromOncType(
142 const std::string& type); 142 const std::string& type);
143 143
144 // Returns true if |property_key| is a recommended value in the ONC dictionary. 144 // Returns true if |property_key| is a recommended value in the ONC dictionary.
145 CHROMEOS_EXPORT bool IsRecommendedValue(const base::DictionaryValue* onc, 145 CHROMEOS_EXPORT bool IsRecommendedValue(const base::DictionaryValue* onc,
146 const std::string& property_key); 146 const std::string& property_key);
147 147
148 // Translates |onc_proxy_settings|, which must be a valid ONC ProxySettings
149 // dictionary, to a ProxyConfig dictionary (see proxy_config_dictionary.h).
150 CHROMEOS_EXPORT scoped_ptr<base::DictionaryValue>
151 ConvertOncProxySettingsToProxyConfig(
152 const base::DictionaryValue& onc_proxy_settings);
153
154 // Translates |proxy_config_value|, which must be a valid ProxyConfig dictionary
155 // (see proxy_config_dictionary.h) to an ONC ProxySettings dictionary.
156 CHROMEOS_EXPORT scoped_ptr<base::DictionaryValue>
157 ConvertProxyConfigToOncProxySettings(
158 const base::DictionaryValue& proxy_config_value);
159
148 } // namespace onc 160 } // namespace onc
149 } // namespace chromeos 161 } // namespace chromeos
150 162
151 #endif // CHROMEOS_NETWORK_ONC_ONC_UTILS_H_ 163 #endif // CHROMEOS_NETWORK_ONC_ONC_UTILS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698