Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(14)

Side by Side Diff: chrome/common/autofill_messages.h

Issue 7740070: Add metrics to measure time elapsed between form load and form submission with or without Autofill. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Serialize in all the right places Created 9 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Multiply-included message file, hence no include guard. 5 // Multiply-included message file, hence no include guard.
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/time.h"
9 #include "content/common/webkit_param_traits.h" 10 #include "content/common/webkit_param_traits.h"
10 #include "ipc/ipc_message_macros.h" 11 #include "ipc/ipc_message_macros.h"
12 #include "ipc/ipc_message_utils.h"
11 #include "webkit/glue/form_data.h" 13 #include "webkit/glue/form_data.h"
12 #include "webkit/glue/form_data_predictions.h" 14 #include "webkit/glue/form_data_predictions.h"
13 #include "webkit/glue/form_field.h" 15 #include "webkit/glue/form_field.h"
14 #include "webkit/glue/form_field_predictions.h" 16 #include "webkit/glue/form_field_predictions.h"
15 #include "webkit/glue/password_form.h" 17 #include "webkit/glue/password_form.h"
16 #include "webkit/glue/password_form_dom_manager.h" 18 #include "webkit/glue/password_form_dom_manager.h"
17 19
18 #define IPC_MESSAGE_START AutofillMsgStart 20 #define IPC_MESSAGE_START AutofillMsgStart
19 21
20 IPC_STRUCT_TRAITS_BEGIN(webkit_glue::FormField) 22 IPC_STRUCT_TRAITS_BEGIN(webkit_glue::FormField)
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 // filling/submitting by the password manager. 99 // filling/submitting by the password manager.
98 IPC_MESSAGE_ROUTED1(AutofillHostMsg_PasswordFormsFound, 100 IPC_MESSAGE_ROUTED1(AutofillHostMsg_PasswordFormsFound,
99 std::vector<webkit_glue::PasswordForm> /* forms */) 101 std::vector<webkit_glue::PasswordForm> /* forms */)
100 102
101 // Notification that initial layout has occurred and the following password 103 // Notification that initial layout has occurred and the following password
102 // forms are visible on the page (e.g. not set to display:none.) 104 // forms are visible on the page (e.g. not set to display:none.)
103 IPC_MESSAGE_ROUTED1(AutofillHostMsg_PasswordFormsVisible, 105 IPC_MESSAGE_ROUTED1(AutofillHostMsg_PasswordFormsVisible,
104 std::vector<webkit_glue::PasswordForm> /* forms */) 106 std::vector<webkit_glue::PasswordForm> /* forms */)
105 107
106 // Notification that a form has been submitted. The user hit the button. 108 // Notification that a form has been submitted. The user hit the button.
107 IPC_MESSAGE_ROUTED1(AutofillHostMsg_FormSubmitted, 109 IPC_MESSAGE_ROUTED2(AutofillHostMsg_FormSubmitted,
108 webkit_glue::FormData /* form */) 110 webkit_glue::FormData /* form */,
111 base::TimeTicks /* timestamp */)
109 112
110 // Notification that a form field's value has changed. 113 // Notification that a form field's value has changed.
111 IPC_MESSAGE_ROUTED2(AutofillHostMsg_TextFieldDidChange, 114 IPC_MESSAGE_ROUTED3(AutofillHostMsg_TextFieldDidChange,
112 webkit_glue::FormData /* the form */, 115 webkit_glue::FormData /* the form */,
113 webkit_glue::FormField /* the form field */) 116 webkit_glue::FormField /* the form field */,
117 base::TimeTicks /* timestamp */)
114 118
115 // Queries the browser for Autofill suggestions for a form input field. 119 // Queries the browser for Autofill suggestions for a form input field.
116 IPC_MESSAGE_ROUTED3(AutofillHostMsg_QueryFormFieldAutofill, 120 IPC_MESSAGE_ROUTED3(AutofillHostMsg_QueryFormFieldAutofill,
117 int /* id of this message */, 121 int /* id of this message */,
118 webkit_glue::FormData /* the form */, 122 webkit_glue::FormData /* the form */,
119 webkit_glue::FormField /* the form field */) 123 webkit_glue::FormField /* the form field */)
120 124
121 // Sent when the popup with Autofill suggestions for a form is shown. 125 // Sent when the popup with Autofill suggestions for a form is shown.
122 IPC_MESSAGE_ROUTED1(AutofillHostMsg_DidShowAutofillSuggestions, 126 IPC_MESSAGE_ROUTED1(AutofillHostMsg_DidShowAutofillSuggestions,
123 bool /* is this a new popup? */) 127 bool /* is this a new popup? */)
124 128
125 // Instructs the browser to fill in the values for a form using Autofill 129 // Instructs the browser to fill in the values for a form using Autofill
126 // profile data. 130 // profile data.
127 IPC_MESSAGE_ROUTED4(AutofillHostMsg_FillAutofillFormData, 131 IPC_MESSAGE_ROUTED4(AutofillHostMsg_FillAutofillFormData,
128 int /* id of this message */, 132 int /* id of this message */,
129 webkit_glue::FormData /* the form */, 133 webkit_glue::FormData /* the form */,
130 webkit_glue::FormField /* the form field */, 134 webkit_glue::FormField /* the form field */,
131 int /* profile unique ID */) 135 int /* profile unique ID */)
132 136
133 // Sent when a form is previewed with Autofill suggestions. 137 // Sent when a form is previewed with Autofill suggestions.
134 IPC_MESSAGE_ROUTED0(AutofillHostMsg_DidPreviewAutofillFormData) 138 IPC_MESSAGE_ROUTED0(AutofillHostMsg_DidPreviewAutofillFormData)
135 139
136 // Sent when a form is filled with Autofill suggestions. 140 // Sent when a form is filled with Autofill suggestions.
137 IPC_MESSAGE_ROUTED0(AutofillHostMsg_DidFillAutofillFormData) 141 IPC_MESSAGE_ROUTED1(AutofillHostMsg_DidFillAutofillFormData,
142 base::TimeTicks /* timestamp */)
138 143
139 // Instructs the browser to remove the specified Autocomplete entry from the 144 // Instructs the browser to remove the specified Autocomplete entry from the
140 // database. 145 // database.
141 IPC_MESSAGE_ROUTED2(AutofillHostMsg_RemoveAutocompleteEntry, 146 IPC_MESSAGE_ROUTED2(AutofillHostMsg_RemoveAutocompleteEntry,
142 string16 /* field name */, 147 string16 /* field name */,
143 string16 /* value */) 148 string16 /* value */)
144 149
145 // Instructs the browser to show the Autofill dialog. 150 // Instructs the browser to show the Autofill dialog.
146 IPC_MESSAGE_ROUTED0(AutofillHostMsg_ShowAutofillDialog) 151 IPC_MESSAGE_ROUTED0(AutofillHostMsg_ShowAutofillDialog)
147 152
148 153
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698