summaryrefslogtreecommitdiffstats
path: root/chrome/common
diff options
context:
space:
mode:
authorjhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-01 00:29:31 +0000
committerjhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-01 00:29:31 +0000
commit5b4534e91b0e607f45dd6ee211af78dda354e26d (patch)
tree9ec0689f7c804d2ed9725e9145b45a9f5ae70d79 /chrome/common
parentc9463f8056bef2211831a6455e9fa8fbb122499e (diff)
downloadchromium_src-5b4534e91b0e607f45dd6ee211af78dda354e26d.zip
chromium_src-5b4534e91b0e607f45dd6ee211af78dda354e26d.tar.gz
chromium_src-5b4534e91b0e607f45dd6ee211af78dda354e26d.tar.bz2
Store the form name, source URL and target URL in FormFieldValues. These are needed by AutoFill.
BUG=none TEST=none Review URL: http://codereview.chromium.org/341042 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30674 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common')
-rw-r--r--chrome/common/render_messages.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/chrome/common/render_messages.h b/chrome/common/render_messages.h
index a0d5eb8..3216721 100644
--- a/chrome/common/render_messages.h
+++ b/chrome/common/render_messages.h
@@ -740,6 +740,9 @@ template <>
struct ParamTraits<webkit_glue::FormFieldValues> {
typedef webkit_glue::FormFieldValues param_type;
static void Write(Message* m, const param_type& p) {
+ WriteParam(m, p.form_name);
+ WriteParam(m, p.source_url);
+ WriteParam(m, p.target_url);
WriteParam(m, p.elements.size());
std::vector<webkit_glue::FormField>::const_iterator itr;
for (itr = p.elements.begin(); itr != p.elements.end(); itr++) {
@@ -749,6 +752,10 @@ struct ParamTraits<webkit_glue::FormFieldValues> {
}
static bool Read(const Message* m, void** iter, param_type* p) {
bool result = true;
+ result = result &&
+ ReadParam(m, iter, &p->form_name) &&
+ ReadParam(m, iter, &p->source_url) &&
+ ReadParam(m, iter, &p->target_url);
size_t elements_size = 0;
result = result && ReadParam(m, iter, &elements_size);
p->elements.resize(elements_size);