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 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
203 {NULL}}; | 203 {NULL}}; |
204 | 204 |
205 const OncFieldSignature wifi_fields[] = { | 205 const OncFieldSignature wifi_fields[] = { |
206 {::onc::kRecommended, &kRecommendedSignature}, | 206 {::onc::kRecommended, &kRecommendedSignature}, |
207 {::onc::wifi::kAllowGatewayARPPolling, &kBoolSignature}, | 207 {::onc::wifi::kAllowGatewayARPPolling, &kBoolSignature}, |
208 {::onc::wifi::kAutoConnect, &kBoolSignature}, | 208 {::onc::wifi::kAutoConnect, &kBoolSignature}, |
209 {::onc::wifi::kEAP, &kEAPSignature}, | 209 {::onc::wifi::kEAP, &kEAPSignature}, |
210 {::onc::wifi::kHexSSID, &kStringSignature}, | 210 {::onc::wifi::kHexSSID, &kStringSignature}, |
211 {::onc::wifi::kHiddenSSID, &kBoolSignature}, | 211 {::onc::wifi::kHiddenSSID, &kBoolSignature}, |
212 {::onc::wifi::kPassphrase, &kStringSignature}, | 212 {::onc::wifi::kPassphrase, &kStringSignature}, |
| 213 {::onc::wifi::kRoamThreshold, &kIntegerSignature}, |
213 {::onc::wifi::kSSID, &kStringSignature}, | 214 {::onc::wifi::kSSID, &kStringSignature}, |
214 {::onc::wifi::kSecurity, &kStringSignature}, | 215 {::onc::wifi::kSecurity, &kStringSignature}, |
215 {NULL}}; | 216 {NULL}}; |
216 | 217 |
217 const OncFieldSignature wifi_with_state_fields[] = { | 218 const OncFieldSignature wifi_with_state_fields[] = { |
218 {::onc::wifi::kBSSID, &kStringSignature}, | 219 {::onc::wifi::kBSSID, &kStringSignature}, |
219 {::onc::wifi::kFrequency, &kIntegerSignature}, | 220 {::onc::wifi::kFrequency, &kIntegerSignature}, |
220 {::onc::wifi::kFrequencyList, &kIntegerListSignature}, | 221 {::onc::wifi::kFrequencyList, &kIntegerListSignature}, |
221 {::onc::wifi::kSignalStrength, &kIntegerSignature}, | 222 {::onc::wifi::kSignalStrength, &kIntegerSignature}, |
222 {NULL}}; | 223 {NULL}}; |
(...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
528 if (&signature == entry->value_signature && | 529 if (&signature == entry->value_signature && |
529 onc_field_name == entry->field_name) { | 530 onc_field_name == entry->field_name) { |
530 return true; | 531 return true; |
531 } | 532 } |
532 } | 533 } |
533 return false; | 534 return false; |
534 } | 535 } |
535 | 536 |
536 } // namespace onc | 537 } // namespace onc |
537 } // namespace chromeos | 538 } // namespace chromeos |
OLD | NEW |