| 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_translation_tables.h" | 5 #include "chromeos/network/onc/onc_translation_tables.h" |
| 6 | 6 |
| 7 #include <cstddef> | 7 #include <cstddef> |
| 8 | 8 |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "chromeos/network/network_type_pattern.h" | 10 #include "chromeos/network/network_type_pattern.h" |
| (...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 241 | 241 |
| 242 const OncValueTranslationEntry onc_value_translation_table[] = { | 242 const OncValueTranslationEntry onc_value_translation_table[] = { |
| 243 {&kEAPSignature, eap_fields}, | 243 {&kEAPSignature, eap_fields}, |
| 244 {&kIPsecSignature, ipsec_fields}, | 244 {&kIPsecSignature, ipsec_fields}, |
| 245 {&kL2TPSignature, l2tp_fields}, | 245 {&kL2TPSignature, l2tp_fields}, |
| 246 {&kXAUTHSignature, xauth_fields}, | 246 {&kXAUTHSignature, xauth_fields}, |
| 247 {&kOpenVPNSignature, openvpn_fields}, | 247 {&kOpenVPNSignature, openvpn_fields}, |
| 248 {&kVerifyX509Signature, verify_x509_fields}, | 248 {&kVerifyX509Signature, verify_x509_fields}, |
| 249 {&kVPNSignature, vpn_fields}, | 249 {&kVPNSignature, vpn_fields}, |
| 250 {&kTetherSignature, tether_fields}, | 250 {&kTetherSignature, tether_fields}, |
| 251 {&kTetherWithStateSignature, tether_fields}, |
| 251 {&kWiFiSignature, wifi_fields}, | 252 {&kWiFiSignature, wifi_fields}, |
| 252 {&kWiFiWithStateSignature, wifi_fields}, | 253 {&kWiFiWithStateSignature, wifi_fields}, |
| 253 {&kWiMAXSignature, wimax_fields}, | 254 {&kWiMAXSignature, wimax_fields}, |
| 254 {&kWiMAXWithStateSignature, wimax_fields}, | 255 {&kWiMAXWithStateSignature, wimax_fields}, |
| 255 {&kCellularApnSignature, cellular_apn_fields}, | 256 {&kCellularApnSignature, cellular_apn_fields}, |
| 256 {&kCellularFoundNetworkSignature, cellular_found_network_fields}, | 257 {&kCellularFoundNetworkSignature, cellular_found_network_fields}, |
| 257 {&kCellularPaymentPortalSignature, cellular_payment_portal_fields}, | 258 {&kCellularPaymentPortalSignature, cellular_payment_portal_fields}, |
| 258 {&kCellularProviderSignature, cellular_provider_fields}, | 259 {&kCellularProviderSignature, cellular_provider_fields}, |
| 259 {&kSIMLockStatusSignature, sim_lock_status_fields}, | 260 {&kSIMLockStatusSignature, sim_lock_status_fields}, |
| 260 {&kCellularSignature, cellular_fields}, | 261 {&kCellularSignature, cellular_fields}, |
| (...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 449 continue; | 450 continue; |
| 450 *onc_value = table[i].onc_value; | 451 *onc_value = table[i].onc_value; |
| 451 return true; | 452 return true; |
| 452 } | 453 } |
| 453 LOG(ERROR) << "Value '" << shill_value << "' cannot be translated to ONC"; | 454 LOG(ERROR) << "Value '" << shill_value << "' cannot be translated to ONC"; |
| 454 return false; | 455 return false; |
| 455 } | 456 } |
| 456 | 457 |
| 457 } // namespace onc | 458 } // namespace onc |
| 458 } // namespace chromeos | 459 } // namespace chromeos |
| OLD | NEW |