OLD | NEW |
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 19 matching lines...) Expand all Loading... |
30 // The URL (minus query parameters) containing the form. | 30 // The URL (minus query parameters) containing the form. |
31 GURL origin; | 31 GURL origin; |
32 // The action target of the form. | 32 // The action target of the form. |
33 GURL action; | 33 GURL action; |
34 // true if this form was submitted by a user gesture and not javascript. | 34 // true if this form was submitted by a user gesture and not javascript. |
35 bool user_submitted; | 35 bool user_submitted; |
36 // A vector of all the input fields in the form. | 36 // A vector of all the input fields in the form. |
37 std::vector<FormFieldData> fields; | 37 std::vector<FormFieldData> fields; |
38 }; | 38 }; |
39 | 39 |
| 40 // Serialize FormData. Used by the PasswordManager to persist FormData |
| 41 // pertaining to password forms. Serialized data is appended to |pickle| |
| 42 void SerializeFormData(const FormData& form_data, Pickle* pickle); |
| 43 // Deserialize FormData. This assumes that |iter| is currently pointing to |
| 44 // the part of a pickle created by SerializeFormData. Returns true on success. |
| 45 bool DeserializeFormData(PickleIterator* iter, FormData* form_data); |
| 46 |
40 } // namespace autofill | 47 } // namespace autofill |
41 | 48 |
42 #endif // COMPONENTS_AUTOFILL_CORE_COMMON_FORM_DATA_H__ | 49 #endif // COMPONENTS_AUTOFILL_CORE_COMMON_FORM_DATA_H__ |
OLD | NEW |