| Index: components/autofill/core/common/form_data.h
|
| diff --git a/components/autofill/core/common/form_data.h b/components/autofill/core/common/form_data.h
|
| index 747fca96bfc1b3bef58a2c0d977b7c296db4cb3f..9b2838f48c684c04085e54722a45fdefe08c3124 100644
|
| --- a/components/autofill/core/common/form_data.h
|
| +++ b/components/autofill/core/common/form_data.h
|
| @@ -44,12 +44,21 @@ struct FormData {
|
| std::ostream& operator<<(std::ostream& os, const FormData& form);
|
|
|
| // Serialize FormData. Used by the PasswordManager to persist FormData
|
| -// pertaining to password forms. Serialized data is appended to |pickle|
|
| +// pertaining to password forms. Serialized data is appended to |pickle|.
|
| void SerializeFormData(const FormData& form_data, Pickle* pickle);
|
| // Deserialize FormData. This assumes that |iter| is currently pointing to
|
| // the part of a pickle created by SerializeFormData. Returns true on success.
|
| bool DeserializeFormData(PickleIterator* iter, FormData* form_data);
|
|
|
| +// Serialize FormData. Used by the PasswordManager to persist FormData
|
| +// pertaining to password forms in base64 string. It is useful since in some
|
| +// cases we need to store C strings without embedded '\0' symbols.
|
| +void SerializeFormDataToBase64String(const FormData& form_data,
|
| + std::string* output);
|
| +// Deserialize FormData. Returns true on success.
|
| +bool DeserializeFormDataFromBase64String(const base::StringPiece& input,
|
| + FormData* form_data);
|
| +
|
| } // namespace autofill
|
|
|
| #endif // COMPONENTS_AUTOFILL_CORE_COMMON_FORM_DATA_H_
|
|
|