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

Unified Diff: components/autofill/core/common/form_data.h

Issue 980583002: Serialize form_data in Gnome keyring password store service. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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
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..4e512900ef4986ddfd4cc72d312ce5a592ed9e9f 100644
--- a/components/autofill/core/common/form_data.h
+++ b/components/autofill/core/common/form_data.h
@@ -46,9 +46,14 @@ 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|
void SerializeFormData(const FormData& form_data, Pickle* pickle);
+// Serialize FormData. Used by the PasswordManager to persist FormData
+// pertaining to password forms.
+void SerializeFormData(const FormData& form_data, std::string* output);
Garrett Casto 2015/03/04 18:05:31 Function overloading in this way is generally disc
dvadym 2015/03/05 10:38:19 Done, I've even added mention about base64 in func
// 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);
+// Deserialize FormData. Returns true on success.
+bool DeserializeFormData(const char* input, FormData* form_data);
} // namespace autofill

Powered by Google App Engine
This is Rietveld 408576698