Index: chromeos/network/onc/onc_utils.h |
diff --git a/chromeos/network/onc/onc_utils.h b/chromeos/network/onc/onc_utils.h |
index 1d4e28fd7a02498a764ac3e6f8c0a98538454612..6a6d273fe62f13d27682e98b4999c355330b91b8 100644 |
--- a/chromeos/network/onc/onc_utils.h |
+++ b/chromeos/network/onc/onc_utils.h |
@@ -14,6 +14,7 @@ |
namespace base { |
class DictionaryValue; |
+class ListValue; |
} |
namespace chromeos { |
@@ -73,6 +74,18 @@ CHROMEOS_EXPORT scoped_ptr<base::DictionaryValue> MaskCredentialsInOncObject( |
const base::DictionaryValue& onc_object, |
const std::string& mask); |
+// Decrypts |onc_blob| with |passphrase| if necessary. Clears |network_configs| |
+// and |certificates| and fills them with the validated NetworkConfigurations |
+// and Certificates of |onc_blob|. Returns false if any validation errors or |
+// warnings occurred. Still, some networks or certificates might be added to the |
+// output lists and should be further processed by the caller. |
+CHROMEOS_EXPORT bool ParseAndValidateOncForImport( |
+ const std::string& onc_blob, |
+ chromeos::onc::ONCSource onc_source, |
+ const std::string& passphrase, |
+ base::ListValue* network_configs, |
+ base::ListValue* certificates); |
+ |
} // namespace onc |
} // namespace chromeos |