summaryrefslogtreecommitdiffstats
path: root/webkit/glue/autofill_form.h
diff options
context:
space:
mode:
authorpetersont@google.com <petersont@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-10-25 20:58:31 +0000
committerpetersont@google.com <petersont@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-10-25 20:58:31 +0000
commit81be0b895e46dc583dfd5c70d12cb3e3d2df1755 (patch)
treeee789c2795c05cd90b9c6bf9ef819798720df7e9 /webkit/glue/autofill_form.h
parent06ec3362bb1f42f36614b1932e57eecfbd5cf7b5 (diff)
downloadchromium_src-81be0b895e46dc583dfd5c70d12cb3e3d2df1755.zip
chromium_src-81be0b895e46dc583dfd5c70d12cb3e3d2df1755.tar.gz
chromium_src-81be0b895e46dc583dfd5c70d12cb3e3d2df1755.tar.bz2
Review URL: http://codereview.chromium.org/8135
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@3982 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/autofill_form.h')
-rw-r--r--webkit/glue/autofill_form.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/webkit/glue/autofill_form.h b/webkit/glue/autofill_form.h
new file mode 100644
index 0000000..a817137
--- /dev/null
+++ b/webkit/glue/autofill_form.h
@@ -0,0 +1,30 @@
+// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef WEBKIT_GLUE_AUTOFILL_FORM_H_
+#define WEBKIT_GLUE_AUTOFILL_FORM_H_
+
+#include <string>
+#include <vector>
+
+// The AutofillForm struct represents a single HTML form together with the
+// values entered in the fields.
+
+struct AutofillForm {
+ // Struct for storing name/value pairs.
+ struct Element {
+ Element() {}
+ Element(const std::wstring& in_name, const std::wstring& in_value) {
+ name = in_name;
+ value = in_value;
+ }
+ std::wstring name;
+ std::wstring value;
+ };
+
+ // A vector of all the input fields in the form.
+ std::vector<Element> elements;
+};
+
+#endif // WEBKIT_GLUE_AUTOFILL_FORM_H_