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-23 21:57:35 +0000
committerpetersont@google.com <petersont@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-10-23 21:57:35 +0000
commit0c3abea91971ae0e2289da9c43ad359b716dd3aa (patch)
treefcd4bfe6772113cdbb959e7f650cd8c3ba59f9f1 /webkit/glue/autofill_form.h
parent049d4ee048d1f09b0f77c23c5060c5ea5504a00b (diff)
downloadchromium_src-0c3abea91971ae0e2289da9c43ad359b716dd3aa.zip
chromium_src-0c3abea91971ae0e2289da9c43ad359b716dd3aa.tar.gz
chromium_src-0c3abea91971ae0e2289da9c43ad359b716dd3aa.tar.bz2
A new struct AutofillForm for use as temporary data storage for communication between functions et cetera.
Review URL: http://codereview.chromium.org/8040 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@3868 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_