| OLD | NEW |
| 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 Loading... |
| 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 | 304 { ::onc::network_config::kIPAddressConfigType, &kStringSignature}, |
| 305 { ::onc::network_config::kName, &kStringSignature}, | 305 { ::onc::network_config::kName, &kStringSignature}, |
| 306 | 306 { ::onc::network_config::kNameServersConfigType, &kStringSignature}, |
| 307 // Not supported, yet. | |
| 308 { ::onc::network_config::kNameServers, &kStringListSignature}, | |
| 309 | |
| 310 { ::onc::network_config::kPriority, &kIntegerSignature}, | 307 { ::onc::network_config::kPriority, &kIntegerSignature}, |
| 311 { ::onc::network_config::kProxySettings, &kProxySettingsSignature}, | 308 { ::onc::network_config::kProxySettings, &kProxySettingsSignature}, |
| 312 { ::onc::kRecommended, &kRecommendedSignature}, | 309 { ::onc::kRecommended, &kRecommendedSignature}, |
| 313 { ::onc::kRemove, &kBoolSignature}, | 310 { ::onc::kRemove, &kBoolSignature}, |
| 314 | 311 |
| 315 // Not supported, yet. | 312 // Not supported, yet. |
| 316 { ::onc::network_config::kSearchDomains, &kStringListSignature}, | 313 { ::onc::network_config::kSearchDomains, &kStringListSignature}, |
| 317 | 314 |
| 318 { ::onc::network_config::kStaticIPConfig, &kStaticIPConfigSignature}, | 315 { ::onc::network_config::kStaticIPConfig, &kStaticIPConfigSignature}, |
| 319 { ::onc::network_config::kType, &kStringSignature}, | 316 { ::onc::network_config::kType, &kStringSignature}, |
| (...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 516 if (&signature == entry->value_signature && | 513 if (&signature == entry->value_signature && |
| 517 onc_field_name == entry->field_name) { | 514 onc_field_name == entry->field_name) { |
| 518 return true; | 515 return true; |
| 519 } | 516 } |
| 520 } | 517 } |
| 521 return false; | 518 return false; |
| 522 } | 519 } |
| 523 | 520 |
| 524 } // namespace onc | 521 } // namespace onc |
| 525 } // namespace chromeos | 522 } // namespace chromeos |
| OLD | NEW |