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

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

Issue 749013003: ONC: Add IPAddressConfigType and NameServersConfigType (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: A bit more clarification (hopefully) Created 5 years, 11 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 #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 283 matching lines...) Expand 10 before | Expand all | Expand 10 after
294 { ::onc::cellular::kSIMLockStatus, &kSIMLockStatusSignature}, 294 { ::onc::cellular::kSIMLockStatus, &kSIMLockStatusSignature},
295 { ::onc::cellular::kSIMPresent, &kBoolSignature}, 295 { ::onc::cellular::kSIMPresent, &kBoolSignature},
296 { ::onc::cellular::kSupportNetworkScan, &kBoolSignature}, 296 { ::onc::cellular::kSupportNetworkScan, &kBoolSignature},
297 { ::onc::cellular::kSupportedCarriers, &kStringListSignature}, 297 { ::onc::cellular::kSupportedCarriers, &kStringListSignature},
298 {NULL}}; 298 {NULL}};
299 299
300 const OncFieldSignature network_configuration_fields[] = { 300 const OncFieldSignature network_configuration_fields[] = {
301 { ::onc::network_config::kCellular, &kCellularSignature}, 301 { ::onc::network_config::kCellular, &kCellularSignature},
302 { ::onc::network_config::kEthernet, &kEthernetSignature}, 302 { ::onc::network_config::kEthernet, &kEthernetSignature},
303 { ::onc::network_config::kGUID, &kStringSignature}, 303 { ::onc::network_config::kGUID, &kStringSignature},
304 { ::onc::network_config::kIPAddressConfigType, &kStringSignature},
304 { ::onc::network_config::kName, &kStringSignature}, 305 { ::onc::network_config::kName, &kStringSignature},
306 { ::onc::network_config::kNameServersConfigType, &kStringSignature},
305 { ::onc::network_config::kPriority, &kIntegerSignature}, 307 { ::onc::network_config::kPriority, &kIntegerSignature},
306 { ::onc::network_config::kProxySettings, &kProxySettingsSignature}, 308 { ::onc::network_config::kProxySettings, &kProxySettingsSignature},
307 { ::onc::kRecommended, &kRecommendedSignature}, 309 { ::onc::kRecommended, &kRecommendedSignature},
308 { ::onc::kRemove, &kBoolSignature}, 310 { ::onc::kRemove, &kBoolSignature},
309 { ::onc::network_config::kStaticIPConfig, &kStaticIPConfigSignature}, 311 { ::onc::network_config::kStaticIPConfig, &kStaticIPConfigSignature},
310 { ::onc::network_config::kType, &kStringSignature}, 312 { ::onc::network_config::kType, &kStringSignature},
311 { ::onc::network_config::kVPN, &kVPNSignature}, 313 { ::onc::network_config::kVPN, &kVPNSignature},
312 { ::onc::network_config::kWiFi, &kWiFiSignature}, 314 { ::onc::network_config::kWiFi, &kWiFiSignature},
313 { ::onc::network_config::kWimax, &kWiMAXSignature}, 315 { ::onc::network_config::kWimax, &kWiMAXSignature},
314 {NULL}}; 316 {NULL}};
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
507 if (&signature == entry->value_signature && 509 if (&signature == entry->value_signature &&
508 onc_field_name == entry->field_name) { 510 onc_field_name == entry->field_name) {
509 return true; 511 return true;
510 } 512 }
511 } 513 }
512 return false; 514 return false;
513 } 515 }
514 516
515 } // namespace onc 517 } // namespace onc
516 } // namespace chromeos 518 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698