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 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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}, |
275 { ::onc::network_config::kWiFi, &kWiFiSignature}, | 275 { ::onc::network_config::kWiFi, &kWiFiSignature}, |
276 { ::onc::network_config::kCellular, &kCellularSignature}, | 276 { ::onc::network_config::kCellular, &kCellularSignature}, |
277 {NULL}}; | 277 {NULL}}; |
278 | 278 |
279 const OncFieldSignature network_with_state_fields[] = { | 279 const OncFieldSignature network_with_state_fields[] = { |
280 { ::onc::network_config::kCellular, &kCellularWithStateSignature}, | 280 { ::onc::network_config::kCellular, &kCellularWithStateSignature}, |
281 { ::onc::network_config::kConnectionState, &kStringSignature}, | 281 { ::onc::network_config::kConnectionState, &kStringSignature}, |
| 282 { ::onc::network_config::kErrorState, &kStringSignature}, |
282 { ::onc::network_config::kWiFi, &kWiFiWithStateSignature}, | 283 { ::onc::network_config::kWiFi, &kWiFiWithStateSignature}, |
283 {NULL}}; | 284 {NULL}}; |
284 | 285 |
285 const OncFieldSignature global_network_configuration_fields[] = { | 286 const OncFieldSignature global_network_configuration_fields[] = { |
286 { ::onc::global_network_config::kAllowOnlyPolicyNetworksToAutoconnect, | 287 { ::onc::global_network_config::kAllowOnlyPolicyNetworksToAutoconnect, |
287 &kBoolSignature}, | 288 &kBoolSignature}, |
288 {NULL}}; | 289 {NULL}}; |
289 | 290 |
290 const OncFieldSignature certificate_fields[] = { | 291 const OncFieldSignature certificate_fields[] = { |
291 { ::onc::certificate::kGUID, &kStringSignature}, | 292 { ::onc::certificate::kGUID, &kStringSignature}, |
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
444 if (&signature == entry->value_signature && | 445 if (&signature == entry->value_signature && |
445 onc_field_name == entry->field_name) { | 446 onc_field_name == entry->field_name) { |
446 return true; | 447 return true; |
447 } | 448 } |
448 } | 449 } |
449 return false; | 450 return false; |
450 } | 451 } |
451 | 452 |
452 } // namespace onc | 453 } // namespace onc |
453 } // namespace chromeos | 454 } // namespace chromeos |
OLD | NEW |