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