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 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
242 const OncFieldSignature sim_lock_status_fields[] = { | 242 const OncFieldSignature sim_lock_status_fields[] = { |
243 { ::onc::sim_lock_status::kLockEnabled, &kBoolSignature}, | 243 { ::onc::sim_lock_status::kLockEnabled, &kBoolSignature}, |
244 { ::onc::sim_lock_status::kLockType, &kStringSignature}, | 244 { ::onc::sim_lock_status::kLockType, &kStringSignature}, |
245 { ::onc::sim_lock_status::kRetriesLeft, &kDoubleSignature}, | 245 { ::onc::sim_lock_status::kRetriesLeft, &kDoubleSignature}, |
246 {NULL}}; | 246 {NULL}}; |
247 | 247 |
248 const OncFieldSignature cellular_fields[] = { | 248 const OncFieldSignature cellular_fields[] = { |
249 { ::onc::kRecommended, &kRecommendedSignature}, | 249 { ::onc::kRecommended, &kRecommendedSignature}, |
250 { ::onc::cellular::kAPN, &kCellularApnSignature }, | 250 { ::onc::cellular::kAPN, &kCellularApnSignature }, |
251 { ::onc::cellular::kAPNList, &kCellularApnListSignature}, | 251 { ::onc::cellular::kAPNList, &kCellularApnListSignature}, |
| 252 { ::onc::vpn::kAutoConnect, &kBoolSignature}, |
252 {NULL}}; | 253 {NULL}}; |
253 | 254 |
254 const OncFieldSignature cellular_with_state_fields[] = { | 255 const OncFieldSignature cellular_with_state_fields[] = { |
255 { ::onc::cellular::kActivationType, &kStringSignature}, | 256 { ::onc::cellular::kActivationType, &kStringSignature}, |
256 { ::onc::cellular::kActivationState, &kStringSignature}, | 257 { ::onc::cellular::kActivationState, &kStringSignature}, |
257 { ::onc::cellular::kAllowRoaming, &kBoolSignature}, | 258 { ::onc::cellular::kAllowRoaming, &kBoolSignature}, |
258 { ::onc::cellular::kCarrier, &kStringSignature}, | 259 { ::onc::cellular::kCarrier, &kStringSignature}, |
259 { ::onc::cellular::kESN, &kStringSignature}, | 260 { ::onc::cellular::kESN, &kStringSignature}, |
260 { ::onc::cellular::kFamily, &kStringSignature}, | 261 { ::onc::cellular::kFamily, &kStringSignature}, |
261 { ::onc::cellular::kFirmwareRevision, &kStringSignature}, | 262 { ::onc::cellular::kFirmwareRevision, &kStringSignature}, |
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
493 if (&signature == entry->value_signature && | 494 if (&signature == entry->value_signature && |
494 onc_field_name == entry->field_name) { | 495 onc_field_name == entry->field_name) { |
495 return true; | 496 return true; |
496 } | 497 } |
497 } | 498 } |
498 return false; | 499 return false; |
499 } | 500 } |
500 | 501 |
501 } // namespace onc | 502 } // namespace onc |
502 } // namespace chromeos | 503 } // namespace chromeos |
OLD | NEW |