diff options
author | jhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-01 00:29:31 +0000 |
---|---|---|
committer | jhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-01 00:29:31 +0000 |
commit | 5b4534e91b0e607f45dd6ee211af78dda354e26d (patch) | |
tree | 9ec0689f7c804d2ed9725e9145b45a9f5ae70d79 /webkit/glue/form_field_values.h | |
parent | c9463f8056bef2211831a6455e9fa8fbb122499e (diff) | |
download | chromium_src-5b4534e91b0e607f45dd6ee211af78dda354e26d.zip chromium_src-5b4534e91b0e607f45dd6ee211af78dda354e26d.tar.gz chromium_src-5b4534e91b0e607f45dd6ee211af78dda354e26d.tar.bz2 |
Store the form name, source URL and target URL in FormFieldValues. These are needed by AutoFill.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/341042
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30674 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/form_field_values.h')
-rw-r--r-- | webkit/glue/form_field_values.h | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/webkit/glue/form_field_values.h b/webkit/glue/form_field_values.h index c300c21..c67f1e2 100644 --- a/webkit/glue/form_field_values.h +++ b/webkit/glue/form_field_values.h @@ -7,6 +7,8 @@ #include <vector> +#include "base/string16.h" +#include "googleurl/src/gurl.h" #include "webkit/glue/form_field.h" namespace WebKit { @@ -15,14 +17,26 @@ class WebForm; namespace webkit_glue { -// The FormFieldValues struct represents a single HTML form together with the +// The FormFieldValues class represents a single HTML form together with the // values entered in the fields. class FormFieldValues { public: - static FormFieldValues* Create(const WebKit::WebForm& form); + static FormFieldValues* Create(const WebKit::WebForm& webform); + + // The name of the form. + string16 form_name; + + // The source URL. + GURL source_url; + + // The target URL. + GURL target_url; // A vector of all the input fields in the form. std::vector<FormField> elements; + + private: + void ExtractFormFieldValues(const WebKit::WebForm& webform); }; } // namespace webkit_glue |