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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
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 19 matching lines...) Expand all
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 and deserialize FormData. Used by the PasswordManager to persist
41 // FormData pertaining to password forms.
42 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.
43 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.
44
40 } // namespace autofill 45 } // namespace autofill
41 46
42 #endif // COMPONENTS_AUTOFILL_CORE_COMMON_FORM_DATA_H__ 47 #endif // COMPONENTS_AUTOFILL_CORE_COMMON_FORM_DATA_H__
OLDNEW
« 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