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

Side by Side Diff: chromeos/network/onc_signature.h

Issue 11299236: This moves the ONC parsing code into chromeos/network/onc (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years 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 | Annotate | Revision Log
OLDNEW
(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 CHROMEOS_NETWORK_ONC_SIGNATURE_H_
6 #define CHROMEOS_NETWORK_ONC_SIGNATURE_H_
7
8 #include <string>
9
10 #include "base/values.h"
11 #include "chromeos/chromeos_export.h"
12
13 namespace chromeos {
14 namespace onc {
15
16 struct OncValueSignature;
17
18 struct CHROMEOS_EXPORT OncFieldSignature {
pneubeck (no reviews) 2012/11/28 22:20:41 There shouldn't be a user of this outside of this
Greg Spencer (Chromium) 2012/11/28 23:09:14 Done.
19 const char* onc_field_name;
20 const char* shill_property_name;
21 const OncValueSignature* value_signature;
22 };
23
24 struct CHROMEOS_EXPORT OncValueSignature {
25 base::Value::Type onc_type;
26 const OncFieldSignature* fields;
27 const OncValueSignature* onc_array_entry_signature;
28 };
29
30 CHROMEOS_EXPORT const OncFieldSignature* GetFieldSignature(
pneubeck (no reviews) 2012/11/28 22:20:41 the same here.
Greg Spencer (Chromium) 2012/11/28 23:09:14 Done.
31 const OncValueSignature& signature,
32 const std::string& onc_field_name);
33
34 CHROMEOS_EXPORT extern const OncValueSignature kRecommendedSignature;
35 CHROMEOS_EXPORT extern const OncValueSignature kEAPSignature;
36 CHROMEOS_EXPORT extern const OncValueSignature kIssuerSubjectPatternSignature;
37 CHROMEOS_EXPORT extern const OncValueSignature kCertificatePatternSignature;
38 CHROMEOS_EXPORT extern const OncValueSignature kIPsecSignature;
39 CHROMEOS_EXPORT extern const OncValueSignature kL2TPSignature;
40 CHROMEOS_EXPORT extern const OncValueSignature kOpenVPNSignature;
41 CHROMEOS_EXPORT extern const OncValueSignature kVPNSignature;
42 CHROMEOS_EXPORT extern const OncValueSignature kEthernetSignature;
43 CHROMEOS_EXPORT extern const OncValueSignature kIPConfigSignature;
44 CHROMEOS_EXPORT extern const OncValueSignature kProxyLocationSignature;
45 CHROMEOS_EXPORT extern const OncValueSignature kProxyManualSignature;
46 CHROMEOS_EXPORT extern const OncValueSignature kProxySettingsSignature;
47 CHROMEOS_EXPORT extern const OncValueSignature kWiFiSignature;
48 CHROMEOS_EXPORT extern const OncValueSignature kCertificateSignature;
49 CHROMEOS_EXPORT extern const OncValueSignature kNetworkConfigurationSignature;
50 CHROMEOS_EXPORT extern const OncValueSignature
51 kUnencryptedConfigurationSignature;
52
53 } // namespace onc
54 } // namespace chromeos
55
56 #endif // CHROMEOS_NETWORK_ONC_SIGNATURE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698