| 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" |
| 11 #include "components/autofill/core/common/form_field_data.h" | 11 #include "components/autofill/core/common/form_field_data.h" |
| 12 #include "url/gurl.h" | 12 #include "url/gurl.h" |
| 13 | 13 |
| 14 namespace autofill { | 14 namespace autofill { |
| 15 | 15 |
| 16 // Holds information about a form to be filled and/or submitted. | 16 // Holds information about a form to be filled and/or submitted. |
| (...skipping 25 matching lines...) Expand all Loading... |
| 42 | 42 |
| 43 // Serialize FormData. Used by the PasswordManager to persist FormData | 43 // Serialize FormData. Used by the PasswordManager to persist FormData |
| 44 // pertaining to password forms. Serialized data is appended to |pickle| | 44 // pertaining to password forms. Serialized data is appended to |pickle| |
| 45 void SerializeFormData(const FormData& form_data, Pickle* pickle); | 45 void SerializeFormData(const FormData& form_data, Pickle* pickle); |
| 46 // Deserialize FormData. This assumes that |iter| is currently pointing to | 46 // Deserialize FormData. This assumes that |iter| is currently pointing to |
| 47 // the part of a pickle created by SerializeFormData. Returns true on success. | 47 // the part of a pickle created by SerializeFormData. Returns true on success. |
| 48 bool DeserializeFormData(PickleIterator* iter, FormData* form_data); | 48 bool DeserializeFormData(PickleIterator* iter, FormData* form_data); |
| 49 | 49 |
| 50 } // namespace autofill | 50 } // namespace autofill |
| 51 | 51 |
| 52 #endif // COMPONENTS_AUTOFILL_CORE_COMMON_FORM_DATA_H__ | 52 #endif // COMPONENTS_AUTOFILL_CORE_COMMON_FORM_DATA_H_ |
| OLD | NEW |