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

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

Issue 759663004: ONC: add support for non-utf-8 SSIDs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: adjusted onc_spec.html Created 6 years 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
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_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 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
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},
207 { ::onc::wifi::kAutoConnect, &kBoolSignature}, 207 { ::onc::wifi::kAutoConnect, &kBoolSignature},
208 { ::onc::wifi::kEAP, &kEAPSignature}, 208 { ::onc::wifi::kEAP, &kEAPSignature},
209 { ::onc::wifi::kHexSSID, &kStringSignature},
209 { ::onc::wifi::kHiddenSSID, &kBoolSignature}, 210 { ::onc::wifi::kHiddenSSID, &kBoolSignature},
210 { ::onc::wifi::kPassphrase, &kStringSignature}, 211 { ::onc::wifi::kPassphrase, &kStringSignature},
211 { ::onc::wifi::kSSID, &kStringSignature}, 212 { ::onc::wifi::kSSID, &kStringSignature},
212 { ::onc::wifi::kSecurity, &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},
(...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698