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 "chromeos/network/onc/onc_constants.h" | 7 #include "chromeos/network/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 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
137 { vpn::kHost, &kStringSignature }, | 137 { vpn::kHost, &kStringSignature }, |
138 { vpn::kIPsec, &kIPsecSignature }, | 138 { vpn::kIPsec, &kIPsecSignature }, |
139 { vpn::kL2TP, &kL2TPSignature }, | 139 { vpn::kL2TP, &kL2TPSignature }, |
140 { vpn::kOpenVPN, &kOpenVPNSignature }, | 140 { vpn::kOpenVPN, &kOpenVPNSignature }, |
141 { vpn::kType, &kStringSignature }, | 141 { vpn::kType, &kStringSignature }, |
142 { NULL } | 142 { NULL } |
143 }; | 143 }; |
144 | 144 |
145 const OncFieldSignature ethernet_fields[] = { | 145 const OncFieldSignature ethernet_fields[] = { |
146 { kRecommended, &kRecommendedSignature }, | 146 { kRecommended, &kRecommendedSignature }, |
147 // Not supported, yet. | |
148 { ethernet::kAuthentication, &kStringSignature }, | 147 { ethernet::kAuthentication, &kStringSignature }, |
149 { ethernet::kEAP, &kEAPSignature }, | 148 { ethernet::kEAP, &kEAPSignature }, |
150 { NULL } | 149 { NULL } |
151 }; | 150 }; |
152 | 151 |
153 // Not supported, yet. | 152 // Not supported, yet. |
154 const OncFieldSignature ipconfig_fields[] = { | 153 const OncFieldSignature ipconfig_fields[] = { |
155 { ipconfig::kGateway, &kStringSignature }, | 154 { ipconfig::kGateway, &kStringSignature }, |
156 { ipconfig::kIPAddress, &kStringSignature }, | 155 { ipconfig::kIPAddress, &kStringSignature }, |
157 { network_config::kNameServers, &kStringSignature }, | 156 { network_config::kNameServers, &kStringSignature }, |
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
430 if (&signature == entry->value_signature && | 429 if (&signature == entry->value_signature && |
431 onc_field_name == entry->field_name) { | 430 onc_field_name == entry->field_name) { |
432 return true; | 431 return true; |
433 } | 432 } |
434 } | 433 } |
435 return false; | 434 return false; |
436 } | 435 } |
437 | 436 |
438 } // namespace onc | 437 } // namespace onc |
439 } // namespace chromeos | 438 } // namespace chromeos |
OLD | NEW |