From 51bd36619bfaa05e98b3a6f58d48aaca6a66e307 Mon Sep 17 00:00:00 2001 From: "jhawkins@chromium.org" Date: Tue, 20 Oct 2009 22:49:47 +0000 Subject: Rename AutoFillForm to FormFieldValues to better reflect the purpose of the data structure. BUG=none TEST=none Review URL: http://codereview.chromium.org/306014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29580 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/common/render_messages.h | 16 +++++++--------- chrome/common/render_messages_internal.h | 4 ++-- 2 files changed, 9 insertions(+), 11 deletions(-) (limited to 'chrome/common') diff --git a/chrome/common/render_messages.h b/chrome/common/render_messages.h index d4925a0..ccaa4e0 100644 --- a/chrome/common/render_messages.h +++ b/chrome/common/render_messages.h @@ -34,9 +34,9 @@ #include "net/base/upload_data.h" #include "net/http/http_response_headers.h" #include "webkit/appcache/appcache_interfaces.h" -#include "webkit/glue/autofill_form.h" #include "webkit/glue/context_menu.h" #include "webkit/glue/form_data.h" +#include "webkit/glue/form_field_values.h" #include "webkit/glue/password_form.h" #include "webkit/glue/password_form_dom_manager.h" #include "webkit/glue/resource_loader_bridge.h" @@ -733,16 +733,14 @@ struct ParamTraits { } }; -// Traits for AutofillForm_Params structure to pack/unpack. +// Traits for FormFieldValues_Params structure to pack/unpack. template <> -struct ParamTraits { - typedef webkit_glue::AutofillForm param_type; +struct ParamTraits { + typedef webkit_glue::FormFieldValues param_type; static void Write(Message* m, const param_type& p) { WriteParam(m, p.elements.size()); - for (std::vector::const_iterator itr = - p.elements.begin(); - itr != p.elements.end(); - itr++) { + std::vector::const_iterator itr; + for (itr = p.elements.begin(); itr != p.elements.end(); itr++) { WriteParam(m, itr->name); WriteParam(m, itr->value); } @@ -759,7 +757,7 @@ struct ParamTraits { return result; } static void Log(const param_type& p, std::wstring* l) { - l->append(L""); + l->append(L""); } }; diff --git a/chrome/common/render_messages_internal.h b/chrome/common/render_messages_internal.h index 908c7a4..a4dbf29 100644 --- a/chrome/common/render_messages_internal.h +++ b/chrome/common/render_messages_internal.h @@ -1258,8 +1258,8 @@ IPC_BEGIN_MESSAGES(ViewHost) std::vector /* forms */) // Notification that a form has been submitted. The user hit the button. - IPC_MESSAGE_ROUTED1(ViewHostMsg_AutofillFormSubmitted, - webkit_glue::AutofillForm /* form */) + IPC_MESSAGE_ROUTED1(ViewHostMsg_FormFieldValuesSubmitted, + webkit_glue::FormFieldValues /* form */) // Used to tell the parent the user started dragging in the content area. The // WebDropData struct contains contextual information about the pieces of the -- cgit v1.1