summaryrefslogtreecommitdiffstats
path: root/chrome/common/autofill_messages.h
diff options
context:
space:
mode:
authorisherman@chromium.org <isherman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-06-20 22:32:24 +0000
committerisherman@chromium.org <isherman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-06-20 22:32:24 +0000
commit3eb5728c989094f6f6b24a392fd49255e5b1e5dc (patch)
treefb67f5226de969860237c25fd5688053de981a17 /chrome/common/autofill_messages.h
parent48630edc4423d0b65dc944050bf4fa54cf6ce0b1 (diff)
downloadchromium_src-3eb5728c989094f6f6b24a392fd49255e5b1e5dc.zip
chromium_src-3eb5728c989094f6f6b24a392fd49255e5b1e5dc.tar.gz
chromium_src-3eb5728c989094f6f6b24a392fd49255e5b1e5dc.tar.bz2
Add a debugging flag to annotate web forms with their Autofill field type predictions.
BUG=none TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=89716 Review URL: http://codereview.chromium.org/7187029 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@89745 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/autofill_messages.h')
-rw-r--r--chrome/common/autofill_messages.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/chrome/common/autofill_messages.h b/chrome/common/autofill_messages.h
index 250ae17..eb3fc88 100644
--- a/chrome/common/autofill_messages.h
+++ b/chrome/common/autofill_messages.h
@@ -9,7 +9,9 @@
#include "content/common/webkit_param_traits.h"
#include "ipc/ipc_message_macros.h"
#include "webkit/glue/form_data.h"
+#include "webkit/glue/form_data_predictions.h"
#include "webkit/glue/form_field.h"
+#include "webkit/glue/form_field_predictions.h"
#include "webkit/glue/password_form.h"
#include "webkit/glue/password_form_dom_manager.h"
@@ -25,6 +27,14 @@ IPC_STRUCT_TRAITS_BEGIN(webkit_glue::FormField)
IPC_STRUCT_TRAITS_MEMBER(option_strings)
IPC_STRUCT_TRAITS_END()
+IPC_STRUCT_TRAITS_BEGIN(webkit_glue::FormFieldPredictions)
+ IPC_STRUCT_TRAITS_MEMBER(field)
+ IPC_STRUCT_TRAITS_MEMBER(signature)
+ IPC_STRUCT_TRAITS_MEMBER(heuristic_type)
+ IPC_STRUCT_TRAITS_MEMBER(server_type)
+ IPC_STRUCT_TRAITS_MEMBER(overall_type)
+IPC_STRUCT_TRAITS_END()
+
IPC_STRUCT_TRAITS_BEGIN(webkit_glue::FormData)
IPC_STRUCT_TRAITS_MEMBER(name)
IPC_STRUCT_TRAITS_MEMBER(method)
@@ -34,6 +44,13 @@ IPC_STRUCT_TRAITS_BEGIN(webkit_glue::FormData)
IPC_STRUCT_TRAITS_MEMBER(fields)
IPC_STRUCT_TRAITS_END()
+IPC_STRUCT_TRAITS_BEGIN(webkit_glue::FormDataPredictions)
+ IPC_STRUCT_TRAITS_MEMBER(data)
+ IPC_STRUCT_TRAITS_MEMBER(signature)
+ IPC_STRUCT_TRAITS_MEMBER(experiment_id)
+ IPC_STRUCT_TRAITS_MEMBER(fields)
+IPC_STRUCT_TRAITS_END()
+
IPC_STRUCT_TRAITS_BEGIN(webkit_glue::PasswordFormFillData)
IPC_STRUCT_TRAITS_MEMBER(basic_data)
IPC_STRUCT_TRAITS_MEMBER(additional_logins)
@@ -62,6 +79,10 @@ IPC_MESSAGE_ROUTED2(AutofillMsg_FormDataFilled,
IPC_MESSAGE_ROUTED1(AutofillMsg_FillPasswordForm,
webkit_glue::PasswordFormFillData)
+// Send the heuristic and server field type predictions to the renderer.
+IPC_MESSAGE_ROUTED1(
+ AutofillMsg_FieldTypePredictionsAvailable,
+ std::vector<webkit_glue::FormDataPredictions> /* forms */)
// Autofill messages sent from the renderer to the browser.