diff options
author | petersont@google.com <petersont@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-10-23 21:57:35 +0000 |
---|---|---|
committer | petersont@google.com <petersont@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-10-23 21:57:35 +0000 |
commit | 0c3abea91971ae0e2289da9c43ad359b716dd3aa (patch) | |
tree | fcd4bfe6772113cdbb959e7f650cd8c3ba59f9f1 /webkit/glue/autofill_form.h | |
parent | 049d4ee048d1f09b0f77c23c5060c5ea5504a00b (diff) | |
download | chromium_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.h | 30 |
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_ |