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-03-15 23:51:24 +0000
committerjhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-15 23:51:24 +0000
commit45c6e53a2c50e19a3f79fcc6f05914793ed93de6 (patch)
treee4f0c22f63fe5197938dc868f00c7d6a8e2ea8a6 /webkit/glue/form_data.h
parentcffa2055808bf2149ce48118dcacde477b7ead60 (diff)
downloadchromium_src-45c6e53a2c50e19a3f79fcc6f05914793ed93de6.zip
chromium_src-45c6e53a2c50e19a3f79fcc6f05914793ed93de6.tar.gz
chromium_src-45c6e53a2c50e19a3f79fcc6f05914793ed93de6.tar.bz2
FormFieldValues -> FormData consolidation: Use webkit_glue::FormField to store field data in FormData instead of storing the field data separately in the struct.
BUG=33032 TEST=none Review URL: http://codereview.chromium.org/847002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@41658 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/form_data.h')
-rw-r--r--webkit/glue/form_data.h15
1 files changed, 8 insertions, 7 deletions
diff --git a/webkit/glue/form_data.h b/webkit/glue/form_data.h
index aab222e..5309a2e 100644
--- a/webkit/glue/form_data.h
+++ b/webkit/glue/form_data.h
@@ -1,4 +1,4 @@
-// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
+// Copyright (c) 2010 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.
@@ -8,6 +8,9 @@
#include <vector>
#include "googleurl/src/gurl.h"
+#include "webkit/glue/form_field.h"
+
+namespace webkit_glue {
// Holds information about a form to be filled and/or submitted.
struct FormData {
@@ -17,12 +20,10 @@ struct FormData {
GURL origin;
// The action target of the form
GURL action;
- // A vector of element labels.
- std::vector<string16> labels;
- // A vector of element names.
- std::vector<string16> elements;
- // A vector of element values.
- std::vector<string16> values;
+ // A vector of all the input fields in the form.
+ std::vector<FormField> fields;
};
+} // namespace webkit_glue
+
#endif // WEBKIT_GLUE_FORM_DATA_H__