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

Side by Side Diff: chromeos/network/onc/onc_signature.cc

Issue 249193003: Add Shill to ONC translation of IPConfig. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 6 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | chromeos/network/onc/onc_translation_tables.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include "chromeos/network/onc/onc_signature.h" 5 #include "chromeos/network/onc/onc_signature.h"
6 6
7 #include "components/onc/onc_constants.h" 7 #include "components/onc/onc_constants.h"
8 #include "third_party/cros_system_api/dbus/service_constants.h" 8 #include "third_party/cros_system_api/dbus/service_constants.h"
9 9
10 using base::Value; 10 using base::Value;
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 { ::onc::vpn::kOpenVPN, &kOpenVPNSignature}, 156 { ::onc::vpn::kOpenVPN, &kOpenVPNSignature},
157 { ::onc::vpn::kType, &kStringSignature}, 157 { ::onc::vpn::kType, &kStringSignature},
158 {NULL}}; 158 {NULL}};
159 159
160 const OncFieldSignature ethernet_fields[] = { 160 const OncFieldSignature ethernet_fields[] = {
161 { ::onc::kRecommended, &kRecommendedSignature}, 161 { ::onc::kRecommended, &kRecommendedSignature},
162 { ::onc::ethernet::kAuthentication, &kStringSignature}, 162 { ::onc::ethernet::kAuthentication, &kStringSignature},
163 { ::onc::ethernet::kEAP, &kEAPSignature}, 163 { ::onc::ethernet::kEAP, &kEAPSignature},
164 {NULL}}; 164 {NULL}};
165 165
166 // Not supported, yet. 166 // Not supported for policy but for reading network state.
167 const OncFieldSignature ipconfig_fields[] = { 167 const OncFieldSignature ipconfig_fields[] = {
168 { ::onc::ipconfig::kGateway, &kStringSignature}, 168 { ::onc::ipconfig::kGateway, &kStringSignature},
169 { ::onc::ipconfig::kIPAddress, &kStringSignature}, 169 { ::onc::ipconfig::kIPAddress, &kStringSignature},
170 { ::onc::network_config::kNameServers, &kStringSignature}, 170 { ::onc::ipconfig::kNameServers, &kStringListSignature},
171 { ::onc::ipconfig::kRoutingPrefix, &kIntegerSignature}, 171 { ::onc::ipconfig::kRoutingPrefix, &kIntegerSignature},
172 { ::onc::network_config::kSearchDomains, &kStringListSignature}, 172 { ::onc::network_config::kSearchDomains, &kStringListSignature},
173 { ::onc::ipconfig::kType, &kStringSignature}, 173 { ::onc::ipconfig::kType, &kStringSignature},
174 {NULL}}; 174 {NULL}};
175 175
176 const OncFieldSignature proxy_location_fields[] = { 176 const OncFieldSignature proxy_location_fields[] = {
177 { ::onc::proxy::kHost, &kStringSignature}, 177 { ::onc::proxy::kHost, &kStringSignature},
178 { ::onc::proxy::kPort, &kIntegerSignature}, {NULL}}; 178 { ::onc::proxy::kPort, &kIntegerSignature}, {NULL}};
179 179
180 const OncFieldSignature proxy_manual_fields[] = { 180 const OncFieldSignature proxy_manual_fields[] = {
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
254 { ::onc::cellular::kSIMLockStatus, &kStringSignature}, 254 { ::onc::cellular::kSIMLockStatus, &kStringSignature},
255 { ::onc::cellular::kSIMPresent, &kStringSignature}, 255 { ::onc::cellular::kSIMPresent, &kStringSignature},
256 { ::onc::cellular::kSupportedCarriers, &kStringSignature}, 256 { ::onc::cellular::kSupportedCarriers, &kStringSignature},
257 { ::onc::cellular::kSupportNetworkScan, &kStringSignature}, 257 { ::onc::cellular::kSupportNetworkScan, &kStringSignature},
258 {NULL}}; 258 {NULL}};
259 259
260 const OncFieldSignature network_configuration_fields[] = { 260 const OncFieldSignature network_configuration_fields[] = {
261 { ::onc::kRecommended, &kRecommendedSignature}, 261 { ::onc::kRecommended, &kRecommendedSignature},
262 { ::onc::network_config::kEthernet, &kEthernetSignature}, 262 { ::onc::network_config::kEthernet, &kEthernetSignature},
263 { ::onc::network_config::kGUID, &kStringSignature}, 263 { ::onc::network_config::kGUID, &kStringSignature},
264 // Not supported, yet. 264 // Not supported for policy but for reading network state.
265 { ::onc::network_config::kIPConfigs, &kIPConfigListSignature}, 265 { ::onc::network_config::kIPConfigs, &kIPConfigListSignature},
266 { ::onc::network_config::kName, &kStringSignature}, 266 { ::onc::network_config::kName, &kStringSignature},
267 // Not supported, yet. 267 // Not supported, yet.
268 { ::onc::network_config::kNameServers, &kStringListSignature}, 268 { ::onc::network_config::kNameServers, &kStringListSignature},
269 { ::onc::network_config::kProxySettings, &kProxySettingsSignature}, 269 { ::onc::network_config::kProxySettings, &kProxySettingsSignature},
270 { ::onc::kRemove, &kBoolSignature}, 270 { ::onc::kRemove, &kBoolSignature},
271 // Not supported, yet. 271 // Not supported, yet.
272 { ::onc::network_config::kSearchDomains, &kStringListSignature}, 272 { ::onc::network_config::kSearchDomains, &kStringListSignature},
273 { ::onc::network_config::kType, &kStringSignature}, 273 { ::onc::network_config::kType, &kStringSignature},
274 { ::onc::network_config::kVPN, &kVPNSignature}, 274 { ::onc::network_config::kVPN, &kVPNSignature},
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
444 if (&signature == entry->value_signature && 444 if (&signature == entry->value_signature &&
445 onc_field_name == entry->field_name) { 445 onc_field_name == entry->field_name) {
446 return true; 446 return true;
447 } 447 }
448 } 448 }
449 return false; 449 return false;
450 } 450 }
451 451
452 } // namespace onc 452 } // namespace onc
453 } // namespace chromeos 453 } // namespace chromeos
OLDNEW
« no previous file with comments | « no previous file | chromeos/network/onc/onc_translation_tables.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698