Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(278)

Side by Side Diff: chromeos/network/onc/onc_translation_tables.cc

Issue 368233004: ONC: Cleanup client certificate related fields. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix compilation on Win/Mac. Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 "components/onc/onc_constants.h" 10 #include "components/onc/onc_constants.h"
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
221 { ::onc::network_type::kCellular, shill::kTypeCellular}, 221 { ::onc::network_type::kCellular, shill::kTypeCellular},
222 { ::onc::network_type::kVPN, shill::kTypeVPN}, 222 { ::onc::network_type::kVPN, shill::kTypeVPN},
223 {NULL}}; 223 {NULL}};
224 224
225 const StringTranslationEntry kVPNTypeTable[] = { 225 const StringTranslationEntry kVPNTypeTable[] = {
226 { ::onc::vpn::kTypeL2TP_IPsec, shill::kProviderL2tpIpsec}, 226 { ::onc::vpn::kTypeL2TP_IPsec, shill::kProviderL2tpIpsec},
227 { ::onc::vpn::kOpenVPN, shill::kProviderOpenVpn}, {NULL}}; 227 { ::onc::vpn::kOpenVPN, shill::kProviderOpenVpn}, {NULL}};
228 228
229 // The first matching line is chosen. 229 // The first matching line is chosen.
230 const StringTranslationEntry kWiFiSecurityTable[] = { 230 const StringTranslationEntry kWiFiSecurityTable[] = {
231 { ::onc::wifi::kNone, shill::kSecurityNone}, 231 { ::onc::wifi::kSecurityNone, shill::kSecurityNone},
232 { ::onc::wifi::kWEP_PSK, shill::kSecurityWep}, 232 { ::onc::wifi::kWEP_PSK, shill::kSecurityWep},
233 { ::onc::wifi::kWPA_PSK, shill::kSecurityPsk}, 233 { ::onc::wifi::kWPA_PSK, shill::kSecurityPsk},
234 { ::onc::wifi::kWPA_EAP, shill::kSecurity8021x}, 234 { ::onc::wifi::kWPA_EAP, shill::kSecurity8021x},
235 { ::onc::wifi::kWPA_PSK, shill::kSecurityRsn}, 235 { ::onc::wifi::kWPA_PSK, shill::kSecurityRsn},
236 { ::onc::wifi::kWPA_PSK, shill::kSecurityWpa}, 236 { ::onc::wifi::kWPA_PSK, shill::kSecurityWpa},
237 {NULL}}; 237 {NULL}};
238 238
239 const StringTranslationEntry kEAPOuterTable[] = { 239 const StringTranslationEntry kEAPOuterTable[] = {
240 { ::onc::eap::kPEAP, shill::kEapMethodPEAP}, 240 { ::onc::eap::kPEAP, shill::kEapMethodPEAP},
241 { ::onc::eap::kEAP_TLS, shill::kEapMethodTLS}, 241 { ::onc::eap::kEAP_TLS, shill::kEapMethodTLS},
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
346 continue; 346 continue;
347 *onc_value = table[i].onc_value; 347 *onc_value = table[i].onc_value;
348 return true; 348 return true;
349 } 349 }
350 LOG(ERROR) << "Value '" << shill_value << "' cannot be translated to ONC"; 350 LOG(ERROR) << "Value '" << shill_value << "' cannot be translated to ONC";
351 return false; 351 return false;
352 } 352 }
353 353
354 } // namespace onc 354 } // namespace onc
355 } // namespace chromeos 355 } // namespace chromeos
OLDNEW
« no previous file with comments | « chromeos/network/onc/onc_signature.cc ('k') | chromeos/network/onc/onc_translator_shill_to_onc.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698