OLD | NEW |
| (Empty) |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef COMPONENTS_AUTOFILL_COMMON_FORM_DATA_H__ | |
6 #define COMPONENTS_AUTOFILL_COMMON_FORM_DATA_H__ | |
7 | |
8 #include <vector> | |
9 | |
10 #include "base/strings/string16.h" | |
11 #include "components/autofill/common/form_field_data.h" | |
12 #include "content/public/common/ssl_status.h" | |
13 #include "googleurl/src/gurl.h" | |
14 | |
15 namespace autofill { | |
16 | |
17 // Holds information about a form to be filled and/or submitted. | |
18 struct FormData { | |
19 FormData(); | |
20 FormData(const FormData& data); | |
21 ~FormData(); | |
22 | |
23 // Used by FormStructureTest. | |
24 bool operator==(const FormData& form) const; | |
25 bool operator!=(const FormData& form) const; | |
26 | |
27 // The name of the form. | |
28 base::string16 name; | |
29 // GET or POST. | |
30 base::string16 method; | |
31 // The URL (minus query parameters) containing the form. | |
32 GURL origin; | |
33 // The action target of the form. | |
34 GURL action; | |
35 // true if this form was submitted by a user gesture and not javascript. | |
36 bool user_submitted; | |
37 // A vector of all the input fields in the form. | |
38 std::vector<FormFieldData> fields; | |
39 // SSL status of the frame contatining the form. | |
40 content::SSLStatus ssl_status; | |
41 }; | |
42 | |
43 } // namespace autofill | |
44 | |
45 #endif // COMPONENTS_AUTOFILL_COMMON_FORM_DATA_H__ | |
OLD | NEW |