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 272 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
283 | 283 |
284 const OncFieldSignature network_configuration_fields[] = { | 284 const OncFieldSignature network_configuration_fields[] = { |
285 { ::onc::kRecommended, &kRecommendedSignature}, | 285 { ::onc::kRecommended, &kRecommendedSignature}, |
286 { ::onc::network_config::kEthernet, &kEthernetSignature}, | 286 { ::onc::network_config::kEthernet, &kEthernetSignature}, |
287 { ::onc::network_config::kGUID, &kStringSignature}, | 287 { ::onc::network_config::kGUID, &kStringSignature}, |
288 // Not supported for policy but for reading network state. | 288 // Not supported for policy but for reading network state. |
289 { ::onc::network_config::kIPConfigs, &kIPConfigListSignature}, | 289 { ::onc::network_config::kIPConfigs, &kIPConfigListSignature}, |
290 { ::onc::network_config::kName, &kStringSignature}, | 290 { ::onc::network_config::kName, &kStringSignature}, |
291 // Not supported, yet. | 291 // Not supported, yet. |
292 { ::onc::network_config::kNameServers, &kStringListSignature}, | 292 { ::onc::network_config::kNameServers, &kStringListSignature}, |
293 { ::onc::network_config::kPriority, &kIntegerSignature}, | |
pneubeck (no reviews)
2014/08/20 08:16:15
Please add some comment that this is not supported
stevenjb
2014/08/20 17:18:37
Hmm, we may need to chat about this. I would rathe
| |
293 { ::onc::network_config::kProxySettings, &kProxySettingsSignature}, | 294 { ::onc::network_config::kProxySettings, &kProxySettingsSignature}, |
294 { ::onc::kRemove, &kBoolSignature}, | 295 { ::onc::kRemove, &kBoolSignature}, |
295 // Not supported, yet. | 296 // Not supported, yet. |
296 { ::onc::network_config::kSearchDomains, &kStringListSignature}, | 297 { ::onc::network_config::kSearchDomains, &kStringListSignature}, |
297 { ::onc::network_config::kType, &kStringSignature}, | 298 { ::onc::network_config::kType, &kStringSignature}, |
298 { ::onc::network_config::kVPN, &kVPNSignature}, | 299 { ::onc::network_config::kVPN, &kVPNSignature}, |
299 { ::onc::network_config::kWiFi, &kWiFiSignature}, | 300 { ::onc::network_config::kWiFi, &kWiFiSignature}, |
300 { ::onc::network_config::kCellular, &kCellularSignature}, | 301 { ::onc::network_config::kCellular, &kCellularSignature}, |
301 {NULL}}; | 302 {NULL}}; |
302 | 303 |
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
477 if (&signature == entry->value_signature && | 478 if (&signature == entry->value_signature && |
478 onc_field_name == entry->field_name) { | 479 onc_field_name == entry->field_name) { |
479 return true; | 480 return true; |
480 } | 481 } |
481 } | 482 } |
482 return false; | 483 return false; |
483 } | 484 } |
484 | 485 |
485 } // namespace onc | 486 } // namespace onc |
486 } // namespace chromeos | 487 } // namespace chromeos |
OLD | NEW |