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

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: Fix tests 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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 85
84 // Send the heuristic and server field type predictions to the renderer. 86 // Send the heuristic and server field type predictions to the renderer.
85 IPC_MESSAGE_ROUTED1( 87 IPC_MESSAGE_ROUTED1(
86 AutofillMsg_FieldTypePredictionsAvailable, 88 AutofillMsg_FieldTypePredictionsAvailable,
87 std::vector<webkit_glue::FormDataPredictions> /* forms */) 89 std::vector<webkit_glue::FormDataPredictions> /* forms */)
88 90
89 // Autofill messages sent from the renderer to the browser. 91 // Autofill messages sent from the renderer to the browser.
90 92
91 // Notification that forms have been seen that are candidates for 93 // Notification that forms have been seen that are candidates for
92 // filling/submitting by the AutofillManager. 94 // filling/submitting by the AutofillManager.
93 IPC_MESSAGE_ROUTED1(AutofillHostMsg_FormsSeen, 95 IPC_MESSAGE_ROUTED2(AutofillHostMsg_FormsSeen,
94 std::vector<webkit_glue::FormData> /* forms */) 96 std::vector<webkit_glue::FormData> /* forms */,
97 base::TimeTicks /* timestamp */)
jar (doing other things) 2011/09/02 01:48:33 I didn't watch the flow carefully... but be certai
Ilya Sherman 2011/09/02 06:57:54 Yes, all of the TimeTicks values are being collect
95 98
96 // Notification that password forms have been seen that are candidates for 99 // Notification that password forms have been seen that are candidates for
97 // filling/submitting by the password manager. 100 // filling/submitting by the password manager.
98 IPC_MESSAGE_ROUTED1(AutofillHostMsg_PasswordFormsFound, 101 IPC_MESSAGE_ROUTED1(AutofillHostMsg_PasswordFormsFound,
99 std::vector<webkit_glue::PasswordForm> /* forms */) 102 std::vector<webkit_glue::PasswordForm> /* forms */)
100 103
101 // Notification that initial layout has occurred and the following password 104 // Notification that initial layout has occurred and the following password
102 // forms are visible on the page (e.g. not set to display:none.) 105 // forms are visible on the page (e.g. not set to display:none.)
103 IPC_MESSAGE_ROUTED1(AutofillHostMsg_PasswordFormsVisible, 106 IPC_MESSAGE_ROUTED1(AutofillHostMsg_PasswordFormsVisible,
104 std::vector<webkit_glue::PasswordForm> /* forms */) 107 std::vector<webkit_glue::PasswordForm> /* forms */)
105 108
106 // Notification that a form has been submitted. The user hit the button. 109 // Notification that a form has been submitted. The user hit the button.
107 IPC_MESSAGE_ROUTED1(AutofillHostMsg_FormSubmitted, 110 IPC_MESSAGE_ROUTED2(AutofillHostMsg_FormSubmitted,
108 webkit_glue::FormData /* form */) 111 webkit_glue::FormData /* form */,
112 base::TimeTicks /* timestamp */)
109 113
110 // Notification that a form field's value has changed. 114 // Notification that a form field's value has changed.
111 IPC_MESSAGE_ROUTED2(AutofillHostMsg_TextFieldDidChange, 115 IPC_MESSAGE_ROUTED3(AutofillHostMsg_TextFieldDidChange,
112 webkit_glue::FormData /* the form */, 116 webkit_glue::FormData /* the form */,
113 webkit_glue::FormField /* the form field */) 117 webkit_glue::FormField /* the form field */,
118 base::TimeTicks /* timestamp */)
114 119
115 // Queries the browser for Autofill suggestions for a form input field. 120 // Queries the browser for Autofill suggestions for a form input field.
116 IPC_MESSAGE_ROUTED3(AutofillHostMsg_QueryFormFieldAutofill, 121 IPC_MESSAGE_ROUTED3(AutofillHostMsg_QueryFormFieldAutofill,
117 int /* id of this message */, 122 int /* id of this message */,
118 webkit_glue::FormData /* the form */, 123 webkit_glue::FormData /* the form */,
119 webkit_glue::FormField /* the form field */) 124 webkit_glue::FormField /* the form field */)
120 125
121 // Sent when the popup with Autofill suggestions for a form is shown. 126 // Sent when the popup with Autofill suggestions for a form is shown.
122 IPC_MESSAGE_ROUTED1(AutofillHostMsg_DidShowAutofillSuggestions, 127 IPC_MESSAGE_ROUTED1(AutofillHostMsg_DidShowAutofillSuggestions,
123 bool /* is this a new popup? */) 128 bool /* is this a new popup? */)
124 129
125 // Instructs the browser to fill in the values for a form using Autofill 130 // Instructs the browser to fill in the values for a form using Autofill
126 // profile data. 131 // profile data.
127 IPC_MESSAGE_ROUTED4(AutofillHostMsg_FillAutofillFormData, 132 IPC_MESSAGE_ROUTED4(AutofillHostMsg_FillAutofillFormData,
128 int /* id of this message */, 133 int /* id of this message */,
129 webkit_glue::FormData /* the form */, 134 webkit_glue::FormData /* the form */,
130 webkit_glue::FormField /* the form field */, 135 webkit_glue::FormField /* the form field */,
131 int /* profile unique ID */) 136 int /* profile unique ID */)
132 137
133 // Sent when a form is previewed with Autofill suggestions. 138 // Sent when a form is previewed with Autofill suggestions.
134 IPC_MESSAGE_ROUTED0(AutofillHostMsg_DidPreviewAutofillFormData) 139 IPC_MESSAGE_ROUTED0(AutofillHostMsg_DidPreviewAutofillFormData)
135 140
136 // Sent when a form is filled with Autofill suggestions. 141 // Sent when a form is filled with Autofill suggestions.
137 IPC_MESSAGE_ROUTED0(AutofillHostMsg_DidFillAutofillFormData) 142 IPC_MESSAGE_ROUTED1(AutofillHostMsg_DidFillAutofillFormData,
143 base::TimeTicks /* timestamp */)
138 144
139 // Instructs the browser to remove the specified Autocomplete entry from the 145 // Instructs the browser to remove the specified Autocomplete entry from the
140 // database. 146 // database.
141 IPC_MESSAGE_ROUTED2(AutofillHostMsg_RemoveAutocompleteEntry, 147 IPC_MESSAGE_ROUTED2(AutofillHostMsg_RemoveAutocompleteEntry,
142 string16 /* field name */, 148 string16 /* field name */,
143 string16 /* value */) 149 string16 /* value */)
144 150
145 // Instructs the browser to show the Autofill dialog. 151 // Instructs the browser to show the Autofill dialog.
146 IPC_MESSAGE_ROUTED0(AutofillHostMsg_ShowAutofillDialog) 152 IPC_MESSAGE_ROUTED0(AutofillHostMsg_ShowAutofillDialog)
147 153
148 154
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698