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

Unified Diff: chromeos/network/onc/onc_translator.h

Issue 11414101: This adds ManagedNetworkConfigurationHandler first pass (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: upload after merge Created 7 years, 11 months 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
« no previous file with comments | « chromeos/network/onc/onc_signature.cc ('k') | chromeos/network/onc/onc_translator_onc_to_shill.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/network/onc/onc_translator.h
diff --git a/chromeos/network/onc/onc_translator.h b/chromeos/network/onc/onc_translator.h
index 270247c65c199d7c2a243ef4d6af79f7b5173310..d0f2ba769b87cc1516a318bafd2c15e367905ad2 100644
--- a/chromeos/network/onc/onc_translator.h
+++ b/chromeos/network/onc/onc_translator.h
@@ -5,6 +5,9 @@
#ifndef CHROMEOS_NETWORK_ONC_ONC_TRANSLATOR_H_
#define CHROMEOS_NETWORK_ONC_ONC_TRANSLATOR_H_
+#include <string>
+#include <vector>
+
#include "base/memory/scoped_ptr.h"
#include "chromeos/chromeos_export.h"
@@ -26,8 +29,15 @@ struct OncValueSignature;
// format before sending them to Shill.
CHROMEOS_EXPORT
scoped_ptr<base::DictionaryValue> TranslateONCObjectToShill(
- const OncValueSignature* signature,
- const base::DictionaryValue& onc_object);
+ const base::DictionaryValue& onc_object,
+ const OncValueSignature* signature);
+
+// Translates a list of ONC property names into corresponding Shill property
+// names. The ability to do this requires that ONC and Shill have a 1:1 mapping
+// between property names.
+std::vector<std::string> TranslateONCPropertyNamesToShill(
+ const std::vector<std::string>& onc_names,
+ const OncValueSignature* signature);
// Translates a |shill_dictionary| to an ONC object according to the given
// |onc_signature|. |onc_signature| must point to a signature object in
@@ -42,6 +52,14 @@ scoped_ptr<base::DictionaryValue> TranslateShillServiceToONCPart(
const base::DictionaryValue& shill_dictionary,
const OncValueSignature* onc_signature);
+
+// Translates a list of Shill property names into corresponding ONC property
+// names. The ability to do this requires that ONC and Shill have a 1:1 mapping
+// between property names.
+std::vector<std::string> TranslateShillPropertyNamesToONC(
+ const std::vector<std::string>& shill_names,
+ const OncValueSignature* signature);
+
} // namespace onc
} // namespace chromeos
« no previous file with comments | « chromeos/network/onc/onc_signature.cc ('k') | chromeos/network/onc/onc_translator_onc_to_shill.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698