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

Unified 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, 1 month 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 side-by-side diff with in-line comments
Download patch
Index: chromeos/network/onc_signature.h
diff --git a/chromeos/network/onc_signature.h b/chromeos/network/onc_signature.h
new file mode 100644
index 0000000000000000000000000000000000000000..d75085829b8b50d5b800ba629ff42c95479da55d
--- /dev/null
+++ b/chromeos/network/onc_signature.h
@@ -0,0 +1,56 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROMEOS_NETWORK_ONC_SIGNATURE_H_
+#define CHROMEOS_NETWORK_ONC_SIGNATURE_H_
+
+#include <string>
+
+#include "base/values.h"
+#include "chromeos/chromeos_export.h"
+
+namespace chromeos {
+namespace onc {
+
+struct OncValueSignature;
+
+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.
+ const char* onc_field_name;
+ const char* shill_property_name;
+ const OncValueSignature* value_signature;
+};
+
+struct CHROMEOS_EXPORT OncValueSignature {
+ base::Value::Type onc_type;
+ const OncFieldSignature* fields;
+ const OncValueSignature* onc_array_entry_signature;
+};
+
+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.
+ const OncValueSignature& signature,
+ const std::string& onc_field_name);
+
+CHROMEOS_EXPORT extern const OncValueSignature kRecommendedSignature;
+CHROMEOS_EXPORT extern const OncValueSignature kEAPSignature;
+CHROMEOS_EXPORT extern const OncValueSignature kIssuerSubjectPatternSignature;
+CHROMEOS_EXPORT extern const OncValueSignature kCertificatePatternSignature;
+CHROMEOS_EXPORT extern const OncValueSignature kIPsecSignature;
+CHROMEOS_EXPORT extern const OncValueSignature kL2TPSignature;
+CHROMEOS_EXPORT extern const OncValueSignature kOpenVPNSignature;
+CHROMEOS_EXPORT extern const OncValueSignature kVPNSignature;
+CHROMEOS_EXPORT extern const OncValueSignature kEthernetSignature;
+CHROMEOS_EXPORT extern const OncValueSignature kIPConfigSignature;
+CHROMEOS_EXPORT extern const OncValueSignature kProxyLocationSignature;
+CHROMEOS_EXPORT extern const OncValueSignature kProxyManualSignature;
+CHROMEOS_EXPORT extern const OncValueSignature kProxySettingsSignature;
+CHROMEOS_EXPORT extern const OncValueSignature kWiFiSignature;
+CHROMEOS_EXPORT extern const OncValueSignature kCertificateSignature;
+CHROMEOS_EXPORT extern const OncValueSignature kNetworkConfigurationSignature;
+CHROMEOS_EXPORT extern const OncValueSignature
+ kUnencryptedConfigurationSignature;
+
+} // namespace onc
+} // namespace chromeos
+
+#endif // CHROMEOS_NETWORK_ONC_SIGNATURE_H_

Powered by Google App Engine
This is Rietveld 408576698