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

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

Issue 23033010: [password autofill] Add serialization for FormData and FormFieldData (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Unittests Created 7 years, 4 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 202fb8d3f95906782e281d858c5b1c66385ee6ee..7690cee9246be6bcc357fa19e712cb8ab74ddec5 100644
--- a/components/autofill/core/common/form_data.h
+++ b/components/autofill/core/common/form_data.h
@@ -37,6 +37,11 @@ struct FormData {
std::vector<FormFieldData> fields;
};
+// Serialize and deserialize FormData. Used by the PasswordManager to persist
+// FormData pertaining to password forms.
+void SerializeFormData(const FormData& form_data, Pickle* pickle);
Evan Stade 2013/08/26 23:20:44 any reason not to make this return a scoped_ptr<Pi
Garrett Casto 2013/08/27 17:21:05 One of the PasswordStore implementations (NativeBa
Evan Stade 2013/08/28 22:42:11 can you improve the comment then? Something along
Garrett Casto 2013/08/29 06:48:34 Done.
+bool DeserializeFormData(PickleIterator* iter, FormData* form_data);
Evan Stade 2013/08/26 23:20:44 Why does this take a PickleIterator* instead of co
Garrett Casto 2013/08/27 17:21:05 Same reason, we want to deserialize part of a Pick
Evan Stade 2013/08/28 22:42:11 also needs better comments.
Garrett Casto 2013/08/29 06:48:34 Done.
+
} // namespace autofill
#endif // COMPONENTS_AUTOFILL_CORE_COMMON_FORM_DATA_H__
« no previous file with comments | « no previous file | components/autofill/core/common/form_data.cc » ('j') | components/autofill/core/common/form_field_data.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698