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