summaryrefslogtreecommitdiffstats
path: root/webkit/glue/form_data.h
diff options
context:
space:
mode:
authorjhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-04-09 22:56:34 +0000
committerjhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-04-09 22:56:34 +0000
commitcf28ec5f4f485d4758de3817cd116e47fdc3edeb (patch)
treee69ea0cac56aaabe71901a1f2bce2e33061dc88a /webkit/glue/form_data.h
parent5b6699d3ed74c9382c5f9a2aa8c8f2500900c7f8 (diff)
downloadchromium_src-cf28ec5f4f485d4758de3817cd116e47fdc3edeb.zip
chromium_src-cf28ec5f4f485d4758de3817cd116e47fdc3edeb.tar.gz
chromium_src-cf28ec5f4f485d4758de3817cd116e47fdc3edeb.tar.bz2
AutoFill: Fill the default profile when the AutoFill accelerator combo is pressed (ctrl-shift-a).
BUG=39491 TEST=none Review URL: http://codereview.chromium.org/1521020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@44149 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/form_data.h')
-rw-r--r--webkit/glue/form_data.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/webkit/glue/form_data.h b/webkit/glue/form_data.h
index 6af9b28..033cac3 100644
--- a/webkit/glue/form_data.h
+++ b/webkit/glue/form_data.h
@@ -7,6 +7,7 @@
#include <vector>
+#include "base/string_util.h"
#include "googleurl/src/gurl.h"
#include "webkit/glue/form_field.h"
@@ -24,6 +25,15 @@ struct FormData {
GURL action;
// A vector of all the input fields in the form.
std::vector<FormField> fields;
+
+ // Used by FormStructureTest.
+ inline bool operator==(const FormData& form) const {
+ return (name == form.name &&
+ StringToLowerASCII(method) == StringToLowerASCII(form.method) &&
+ origin == form.origin &&
+ action == form.action &&
+ fields == form.fields);
+ }
};
} // namespace webkit_glue