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

Side by Side 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, 9 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef COMPONENTS_AUTOFILL_CORE_COMMON_FORM_DATA_H_ 5 #ifndef COMPONENTS_AUTOFILL_CORE_COMMON_FORM_DATA_H_
6 #define COMPONENTS_AUTOFILL_CORE_COMMON_FORM_DATA_H_ 6 #define COMPONENTS_AUTOFILL_CORE_COMMON_FORM_DATA_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/strings/string16.h" 10 #include "base/strings/string16.h"
(...skipping 28 matching lines...) Expand all
39 // A vector of all the input fields in the form. 39 // A vector of all the input fields in the form.
40 std::vector<FormFieldData> fields; 40 std::vector<FormFieldData> fields;
41 }; 41 };
42 42
43 // For testing. 43 // For testing.
44 std::ostream& operator<<(std::ostream& os, const FormData& form); 44 std::ostream& operator<<(std::ostream& os, const FormData& form);
45 45
46 // Serialize FormData. Used by the PasswordManager to persist FormData 46 // Serialize FormData. Used by the PasswordManager to persist FormData
47 // pertaining to password forms. Serialized data is appended to |pickle| 47 // pertaining to password forms. Serialized data is appended to |pickle|
48 void SerializeFormData(const FormData& form_data, Pickle* pickle); 48 void SerializeFormData(const FormData& form_data, Pickle* pickle);
49 // Serialize FormData. Used by the PasswordManager to persist FormData
50 // pertaining to password forms.
51 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
49 // Deserialize FormData. This assumes that |iter| is currently pointing to 52 // Deserialize FormData. This assumes that |iter| is currently pointing to
50 // the part of a pickle created by SerializeFormData. Returns true on success. 53 // the part of a pickle created by SerializeFormData. Returns true on success.
51 bool DeserializeFormData(PickleIterator* iter, FormData* form_data); 54 bool DeserializeFormData(PickleIterator* iter, FormData* form_data);
55 // Deserialize FormData. Returns true on success.
56 bool DeserializeFormData(const char* input, FormData* form_data);
52 57
53 } // namespace autofill 58 } // namespace autofill
54 59
55 #endif // COMPONENTS_AUTOFILL_CORE_COMMON_FORM_DATA_H_ 60 #endif // COMPONENTS_AUTOFILL_CORE_COMMON_FORM_DATA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698