Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROME_BROWSER_CHROMEOS_NETWORK_SETTINGS_ONC_SIGNATURE_H_ | |
| 6 #define CHROME_BROWSER_CHROMEOS_NETWORK_SETTINGS_ONC_SIGNATURE_H_ | |
| 7 | |
| 8 #include <string> | |
| 9 | |
| 10 #include "base/values.h" | |
| 11 | |
| 12 namespace chromeos { | |
| 13 namespace onc { | |
| 14 | |
| 15 struct OncValueSignature; | |
| 16 | |
| 17 struct OncFieldSignature { | |
| 18 const char* onc_field_name; | |
| 19 const char* shill_property_name; | |
| 20 const OncValueSignature* value_signature; | |
| 21 }; | |
| 22 | |
| 23 struct OncValueSignature { | |
| 24 base::Value::Type onc_type; | |
| 25 const OncFieldSignature* fields; | |
| 26 const OncValueSignature* onc_array_entry_signature; | |
| 27 | |
| 28 const OncFieldSignature* GetFieldSignature( | |
| 29 const std::string& onc_field_name) const; | |
| 30 }; | |
| 31 | |
| 32 extern const OncValueSignature recommended_signature; | |
|
stevenjb
2012/10/11 19:54:00
These should use kRecommendedSignature style.
pneubeck (no reviews)
2012/10/15 13:57:44
Done.
| |
| 33 extern const OncValueSignature eap_signature; | |
| 34 extern const OncValueSignature certificate_pattern_signature; | |
| 35 extern const OncValueSignature ipsec_signature; | |
| 36 extern const OncValueSignature openvpn_signature; | |
| 37 extern const OncValueSignature vpn_signature; | |
| 38 extern const OncValueSignature ethernet_signature; | |
| 39 extern const OncValueSignature ipconfig_signature; | |
| 40 extern const OncValueSignature network_configuration_signature; | |
| 41 | |
| 42 } // namespace onc | |
| 43 } // namespace chromeos | |
| 44 | |
| 45 #endif // CHROME_BROWSER_CHROMEOS_NETWORK_SETTINGS_ONC_SIGNATURE_H_ | |
| OLD | NEW |