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

Unified Diff: chrome/browser/chromeos/network_settings/onc_signature.h

Issue 10944009: Implementation of ONC signature, validator and normalizer. (Closed) Base URL: http://git.chromium.org/chromium/src.git@gperffix
Patch Set: Addressed remaining nits. 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: chrome/browser/chromeos/network_settings/onc_signature.h
diff --git a/chrome/browser/chromeos/network_settings/onc_signature.h b/chrome/browser/chromeos/network_settings/onc_signature.h
new file mode 100644
index 0000000000000000000000000000000000000000..57be7147c58345fe715fdefcb5a3a559b42a5c08
--- /dev/null
+++ b/chrome/browser/chromeos/network_settings/onc_signature.h
@@ -0,0 +1,53 @@
+// 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 CHROME_BROWSER_CHROMEOS_NETWORK_SETTINGS_ONC_SIGNATURE_H_
+#define CHROME_BROWSER_CHROMEOS_NETWORK_SETTINGS_ONC_SIGNATURE_H_
+
+#include <string>
+
+#include "base/values.h"
+
+namespace chromeos {
+namespace onc {
+
+struct OncValueSignature;
+
+struct OncFieldSignature {
+ const char* onc_field_name;
+ const char* shill_property_name;
+ const OncValueSignature* value_signature;
+};
+
+struct OncValueSignature {
+ base::Value::Type onc_type;
+ const OncFieldSignature* fields;
+ const OncValueSignature* onc_array_entry_signature;
+};
+
+const OncFieldSignature* GetFieldSignature(const OncValueSignature& signature,
+ const std::string& onc_field_name);
+
+extern const OncValueSignature kRecommendedSignature;
+extern const OncValueSignature kEAPSignature;
+extern const OncValueSignature kIssuerSubjectPatternSignature;
+extern const OncValueSignature kCertificatePatternSignature;
+extern const OncValueSignature kIPsecSignature;
+extern const OncValueSignature kL2TPSignature;
+extern const OncValueSignature kOpenVPNSignature;
+extern const OncValueSignature kVPNSignature;
+extern const OncValueSignature kEthernetSignature;
+extern const OncValueSignature kIPConfigSignature;
+extern const OncValueSignature kProxyLocationSignature;
+extern const OncValueSignature kProxyManualSignature;
+extern const OncValueSignature kProxySettingsSignature;
+extern const OncValueSignature kWiFiSignature;
+extern const OncValueSignature kCertificateSignature;
+extern const OncValueSignature kNetworkConfigurationSignature;
+extern const OncValueSignature kUnencryptedConfigurationSignature;
+
+} // namespace onc
+} // namespace chromeos
+
+#endif // CHROME_BROWSER_CHROMEOS_NETWORK_SETTINGS_ONC_SIGNATURE_H_

Powered by Google App Engine
This is Rietveld 408576698