OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/strings/string16.h" | 10 #include "base/strings/string16.h" |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 | 108 |
109 // IPC_MESSAGE macros fail on the std::map, when expanding. We need to define | 109 // IPC_MESSAGE macros fail on the std::map, when expanding. We need to define |
110 // a type to avoid that. | 110 // a type to avoid that. |
111 using FormsPredictionsMap = | 111 using FormsPredictionsMap = |
112 std::map<autofill::FormData, autofill::PasswordFormFieldPredictionMap>; | 112 std::map<autofill::FormData, autofill::PasswordFormFieldPredictionMap>; |
113 | 113 |
114 #endif // COMPONENTS_AUTOFILL_CONTENT_COMMON_AUTOFILL_MESSAGES_H_ | 114 #endif // COMPONENTS_AUTOFILL_CONTENT_COMMON_AUTOFILL_MESSAGES_H_ |
115 | 115 |
116 // Autofill messages sent from the browser to the renderer. | 116 // Autofill messages sent from the browser to the renderer. |
117 | 117 |
118 // Instructs the renderer to fill the active form with the given form data. | |
119 IPC_MESSAGE_ROUTED2(AutofillMsg_FillForm, | |
120 int /* query_id */, | |
121 autofill::FormData /* form */) | |
122 | |
123 // Instructs the renderer to preview the active form with the given form data. | 118 // Instructs the renderer to preview the active form with the given form data. |
124 IPC_MESSAGE_ROUTED2(AutofillMsg_PreviewForm, | 119 IPC_MESSAGE_ROUTED2(AutofillMsg_PreviewForm, |
125 int /* query_id */, | 120 int /* query_id */, |
126 autofill::FormData /* form */) | 121 autofill::FormData /* form */) |
127 | 122 |
128 // Fill a password form and prepare field autocomplete for multiple | 123 // Fill a password form and prepare field autocomplete for multiple |
129 // matching logins. Lets the renderer know if it should disable the popup | 124 // matching logins. Lets the renderer know if it should disable the popup |
130 // because the browser process will own the popup UI. |key| serves for | 125 // because the browser process will own the popup UI. |key| serves for |
131 // identifying the fill form data in subsequent | 126 // identifying the fill form data in subsequent |
132 // AutofillHostMsg_ShowPasswordSuggestions messages to the browser. | 127 // AutofillHostMsg_ShowPasswordSuggestions messages to the browser. |
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
273 | 268 |
274 // Sent when a form is previewed with Autofill suggestions. | 269 // Sent when a form is previewed with Autofill suggestions. |
275 IPC_MESSAGE_ROUTED0(AutofillHostMsg_DidPreviewAutofillFormData) | 270 IPC_MESSAGE_ROUTED0(AutofillHostMsg_DidPreviewAutofillFormData) |
276 | 271 |
277 // Sent immediately after the renderer receives a ping IPC. | 272 // Sent immediately after the renderer receives a ping IPC. |
278 IPC_MESSAGE_ROUTED0(AutofillHostMsg_PingAck) | 273 IPC_MESSAGE_ROUTED0(AutofillHostMsg_PingAck) |
279 | 274 |
280 // Sent when the current form is no longer focused. | 275 // Sent when the current form is no longer focused. |
281 IPC_MESSAGE_ROUTED0(AutofillHostMsg_FocusNoLongerOnForm) | 276 IPC_MESSAGE_ROUTED0(AutofillHostMsg_FocusNoLongerOnForm) |
282 | 277 |
283 // Sent when a form is filled with Autofill suggestions. | |
284 IPC_MESSAGE_ROUTED2(AutofillHostMsg_DidFillAutofillFormData, | |
285 autofill::FormData /* the form */, | |
286 base::TimeTicks /* timestamp */) | |
287 | |
288 // Send when a text field is done editing. | 278 // Send when a text field is done editing. |
289 IPC_MESSAGE_ROUTED0(AutofillHostMsg_DidEndTextFieldEditing) | 279 IPC_MESSAGE_ROUTED0(AutofillHostMsg_DidEndTextFieldEditing) |
290 | 280 |
291 // Instructs the browser to hide the Autofill popup if it is open. | 281 // Instructs the browser to hide the Autofill popup if it is open. |
292 IPC_MESSAGE_ROUTED0(AutofillHostMsg_HidePopup) | 282 IPC_MESSAGE_ROUTED0(AutofillHostMsg_HidePopup) |
293 | 283 |
294 // Instructs the browser that generation is available for this particular form. | 284 // Instructs the browser that generation is available for this particular form. |
295 // This is used for UMA stats. | 285 // This is used for UMA stats. |
296 IPC_MESSAGE_ROUTED1(AutofillHostMsg_GenerationAvailableForForm, | 286 IPC_MESSAGE_ROUTED1(AutofillHostMsg_GenerationAvailableForForm, |
297 autofill::PasswordForm) | 287 autofill::PasswordForm) |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
339 // Inform browser of data list values for the curent field. | 329 // Inform browser of data list values for the curent field. |
340 IPC_MESSAGE_ROUTED2(AutofillHostMsg_SetDataList, | 330 IPC_MESSAGE_ROUTED2(AutofillHostMsg_SetDataList, |
341 std::vector<base::string16> /* values */, | 331 std::vector<base::string16> /* values */, |
342 std::vector<base::string16> /* labels */) | 332 std::vector<base::string16> /* labels */) |
343 | 333 |
344 // Inform the browser which password form is currently focused, as a response | 334 // Inform the browser which password form is currently focused, as a response |
345 // to the |AutofillMsg_FindFocusedPasswordForm| request. If no password form | 335 // to the |AutofillMsg_FindFocusedPasswordForm| request. If no password form |
346 // is focused, the response will contain an empty |autofill::PasswordForm|. | 336 // is focused, the response will contain an empty |autofill::PasswordForm|. |
347 IPC_MESSAGE_ROUTED1(AutofillHostMsg_FocusedPasswordFormFound, | 337 IPC_MESSAGE_ROUTED1(AutofillHostMsg_FocusedPasswordFormFound, |
348 autofill::PasswordForm) | 338 autofill::PasswordForm) |
OLD | NEW |