Chromium Code Reviews| 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 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 195 | 195 |
| 196 const OncFieldSignature proxy_settings_fields[] = { | 196 const OncFieldSignature proxy_settings_fields[] = { |
| 197 { ::onc::kRecommended, &kRecommendedSignature}, | 197 { ::onc::kRecommended, &kRecommendedSignature}, |
| 198 { ::onc::proxy::kExcludeDomains, &kStringListSignature}, | 198 { ::onc::proxy::kExcludeDomains, &kStringListSignature}, |
| 199 { ::onc::proxy::kManual, &kProxyManualSignature}, | 199 { ::onc::proxy::kManual, &kProxyManualSignature}, |
| 200 { ::onc::proxy::kPAC, &kStringSignature}, | 200 { ::onc::proxy::kPAC, &kStringSignature}, |
| 201 { ::onc::proxy::kType, &kStringSignature}, | 201 { ::onc::proxy::kType, &kStringSignature}, |
| 202 {NULL}}; | 202 {NULL}}; |
| 203 | 203 |
| 204 const OncFieldSignature wifi_fields[] = { | 204 const OncFieldSignature wifi_fields[] = { |
| 205 { ::onc::kRecommended, &kRecommendedSignature}, | 205 {::onc::kRecommended, &kRecommendedSignature}, |
| 206 { ::onc::wifi::kAllowGatewayARPPolling, &kBoolSignature}, | 206 {::onc::wifi::kAllowGatewayARPPolling, &kBoolSignature}, |
|
pneubeck (no reviews)
2014/11/26 10:15:33
nit: keep the formatting as in the rest of the fil
cschuet (SLOW)
2014/11/27 11:03:58
Done.
| |
| 207 { ::onc::wifi::kAutoConnect, &kBoolSignature}, | 207 {::onc::wifi::kAutoConnect, &kBoolSignature}, |
| 208 { ::onc::wifi::kEAP, &kEAPSignature}, | 208 {::onc::wifi::kEAP, &kEAPSignature}, |
| 209 { ::onc::wifi::kHiddenSSID, &kBoolSignature}, | 209 {::onc::wifi::kHexSSID, &kStringSignature}, |
| 210 { ::onc::wifi::kPassphrase, &kStringSignature}, | 210 {::onc::wifi::kHiddenSSID, &kBoolSignature}, |
| 211 { ::onc::wifi::kSSID, &kStringSignature}, | 211 {::onc::wifi::kPassphrase, &kStringSignature}, |
| 212 { ::onc::wifi::kSecurity, &kStringSignature}, | 212 {::onc::wifi::kSSID, &kStringSignature}, |
| 213 {::onc::wifi::kSecurity, &kStringSignature}, | |
| 213 {NULL}}; | 214 {NULL}}; |
| 214 | 215 |
| 215 const OncFieldSignature wifi_with_state_fields[] = { | 216 const OncFieldSignature wifi_with_state_fields[] = { |
| 216 { ::onc::wifi::kBSSID, &kStringSignature}, | 217 { ::onc::wifi::kBSSID, &kStringSignature}, |
| 217 { ::onc::wifi::kFrequency, &kIntegerSignature}, | 218 { ::onc::wifi::kFrequency, &kIntegerSignature}, |
| 218 { ::onc::wifi::kFrequencyList, &kIntegerListSignature}, | 219 { ::onc::wifi::kFrequencyList, &kIntegerListSignature}, |
| 219 { ::onc::wifi::kSignalStrength, &kIntegerSignature}, | 220 { ::onc::wifi::kSignalStrength, &kIntegerSignature}, |
| 220 {NULL}}; | 221 {NULL}}; |
| 221 | 222 |
| 222 const OncFieldSignature wimax_fields[] = { | 223 const OncFieldSignature wimax_fields[] = { |
| (...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 515 if (&signature == entry->value_signature && | 516 if (&signature == entry->value_signature && |
| 516 onc_field_name == entry->field_name) { | 517 onc_field_name == entry->field_name) { |
| 517 return true; | 518 return true; |
| 518 } | 519 } |
| 519 } | 520 } |
| 520 return false; | 521 return false; |
| 521 } | 522 } |
| 522 | 523 |
| 523 } // namespace onc | 524 } // namespace onc |
| 524 } // namespace chromeos | 525 } // namespace chromeos |
| OLD | NEW |