| 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
|
|
|
|
|