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

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

Issue 1087353002: Add an ONC property for setting per-network roam threshold (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Revised ONC spec doc Created 5 years, 8 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
« no previous file with comments | « no previous file | chromeos/network/onc/onc_translation_tables.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « no previous file | chromeos/network/onc/onc_translation_tables.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698