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 298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
309 | 309 |
310 const OncFieldSignature network_with_state_fields[] = { | 310 const OncFieldSignature network_with_state_fields[] = { |
311 { ::onc::network_config::kCellular, &kCellularWithStateSignature}, | 311 { ::onc::network_config::kCellular, &kCellularWithStateSignature}, |
312 { ::onc::network_config::kConnectionState, &kStringSignature}, | 312 { ::onc::network_config::kConnectionState, &kStringSignature}, |
313 { ::onc::network_config::kConnectable, &kBoolSignature}, | 313 { ::onc::network_config::kConnectable, &kBoolSignature}, |
314 { ::onc::network_config::kErrorState, &kStringSignature}, | 314 { ::onc::network_config::kErrorState, &kStringSignature}, |
315 { ::onc::network_config::kIPConfigs, &kIPConfigListSignature}, | 315 { ::onc::network_config::kIPConfigs, &kIPConfigListSignature}, |
316 { ::onc::network_config::kMacAddress, &kStringSignature}, | 316 { ::onc::network_config::kMacAddress, &kStringSignature}, |
317 { ::onc::network_config::kRestrictedConnectivity, &kBoolSignature}, | 317 { ::onc::network_config::kRestrictedConnectivity, &kBoolSignature}, |
318 { ::onc::network_config::kSavedIPConfig, &kSavedIPConfigSignature}, | 318 { ::onc::network_config::kSavedIPConfig, &kSavedIPConfigSignature}, |
| 319 { ::onc::network_config::kSource, &kStringSignature}, |
319 { ::onc::network_config::kWiFi, &kWiFiWithStateSignature}, | 320 { ::onc::network_config::kWiFi, &kWiFiWithStateSignature}, |
320 {NULL}}; | 321 {NULL}}; |
321 | 322 |
322 const OncFieldSignature global_network_configuration_fields[] = { | 323 const OncFieldSignature global_network_configuration_fields[] = { |
323 { ::onc::global_network_config::kAllowOnlyPolicyNetworksToAutoconnect, | 324 { ::onc::global_network_config::kAllowOnlyPolicyNetworksToAutoconnect, |
324 &kBoolSignature}, | 325 &kBoolSignature}, |
325 {NULL}}; | 326 {NULL}}; |
326 | 327 |
327 const OncFieldSignature certificate_fields[] = { | 328 const OncFieldSignature certificate_fields[] = { |
328 { ::onc::certificate::kGUID, &kStringSignature}, | 329 { ::onc::certificate::kGUID, &kStringSignature}, |
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
493 if (&signature == entry->value_signature && | 494 if (&signature == entry->value_signature && |
494 onc_field_name == entry->field_name) { | 495 onc_field_name == entry->field_name) { |
495 return true; | 496 return true; |
496 } | 497 } |
497 } | 498 } |
498 return false; | 499 return false; |
499 } | 500 } |
500 | 501 |
501 } // namespace onc | 502 } // namespace onc |
502 } // namespace chromeos | 503 } // namespace chromeos |
OLD | NEW |