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 | 8 |
9 #include "base/time/time.h" | 9 #include "base/time/time.h" |
10 #include "components/autofill/core/common/autofill_param_traits_macros.h" | 10 #include "components/autofill/core/common/autofill_param_traits_macros.h" |
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
154 | 154 |
155 // Sent when the current page is actually displayed in the browser, possibly | 155 // Sent when the current page is actually displayed in the browser, possibly |
156 // after being preloaded. | 156 // after being preloaded. |
157 IPC_MESSAGE_ROUTED0(AutofillMsg_PageShown) | 157 IPC_MESSAGE_ROUTED0(AutofillMsg_PageShown) |
158 | 158 |
159 // Sent when Autofill manager gets the query response from the Autofill server | 159 // Sent when Autofill manager gets the query response from the Autofill server |
160 // and there are fields classified as ACCOUNT_CREATION_PASSWORD in the response. | 160 // and there are fields classified as ACCOUNT_CREATION_PASSWORD in the response. |
161 IPC_MESSAGE_ROUTED1(AutofillMsg_AccountCreationFormsDetected, | 161 IPC_MESSAGE_ROUTED1(AutofillMsg_AccountCreationFormsDetected, |
162 std::vector<autofill::FormData> /* forms */) | 162 std::vector<autofill::FormData> /* forms */) |
163 | 163 |
| 164 // Instruct the renderer that a password mapping has to be removed. |
| 165 IPC_MESSAGE_ROUTED1(AutofillMsg_RemovePasswordSuggestion, |
| 166 autofill::PasswordForm /* the password form */) |
| 167 |
164 // Autofill messages sent from the renderer to the browser. | 168 // Autofill messages sent from the renderer to the browser. |
165 | 169 |
166 // TODO(creis): check in the browser that the renderer actually has permission | 170 // TODO(creis): check in the browser that the renderer actually has permission |
167 // for the URL to avoid compromised renderers talking to the browser. | 171 // for the URL to avoid compromised renderers talking to the browser. |
168 | 172 |
169 // Notification that forms have been seen that are candidates for | 173 // Notification that forms have been seen that are candidates for |
170 // filling/submitting by the AutofillManager. | 174 // filling/submitting by the AutofillManager. |
171 IPC_MESSAGE_ROUTED3(AutofillHostMsg_FormsSeen, | 175 IPC_MESSAGE_ROUTED3(AutofillHostMsg_FormsSeen, |
172 std::vector<autofill::FormData> /* forms */, | 176 std::vector<autofill::FormData> /* forms */, |
173 base::TimeTicks /* timestamp */, | 177 base::TimeTicks /* timestamp */, |
(...skipping 18 matching lines...) Expand all Loading... |
192 autofill::FormData /* form */, | 196 autofill::FormData /* form */, |
193 base::TimeTicks /* timestamp */) | 197 base::TimeTicks /* timestamp */) |
194 | 198 |
195 // Notification that a form field's value has changed. | 199 // Notification that a form field's value has changed. |
196 IPC_MESSAGE_ROUTED3(AutofillHostMsg_TextFieldDidChange, | 200 IPC_MESSAGE_ROUTED3(AutofillHostMsg_TextFieldDidChange, |
197 autofill::FormData /* the form */, | 201 autofill::FormData /* the form */, |
198 autofill::FormFieldData /* the form field */, | 202 autofill::FormFieldData /* the form field */, |
199 base::TimeTicks /* timestamp */) | 203 base::TimeTicks /* timestamp */) |
200 | 204 |
201 // Queries the browser for Autofill suggestions for a form input field. | 205 // Queries the browser for Autofill suggestions for a form input field. |
202 IPC_MESSAGE_ROUTED5(AutofillHostMsg_QueryFormFieldAutofill, | 206 IPC_MESSAGE_ROUTED6(AutofillHostMsg_QueryFormFieldAutofill, |
203 int /* id of this message */, | 207 int /* id of this message */, |
204 autofill::FormData /* the form */, | 208 autofill::FormData /* the form */, |
205 autofill::FormFieldData /* the form field */, | 209 autofill::FormFieldData /* the form field */, |
| 210 autofill::PasswordForm /* the password form */, |
206 gfx::RectF /* input field bounds, window-relative */, | 211 gfx::RectF /* input field bounds, window-relative */, |
207 bool /* display warning if autofill disabled */) | 212 bool /* display warning if autofill disabled */) |
208 | 213 |
209 // Instructs the browser to fill in the values for a form using Autofill | 214 // Instructs the browser to fill in the values for a form using Autofill |
210 // profile data. | 215 // profile data. |
211 IPC_MESSAGE_ROUTED4(AutofillHostMsg_FillAutofillFormData, | 216 IPC_MESSAGE_ROUTED4(AutofillHostMsg_FillAutofillFormData, |
212 int /* id of this message */, | 217 int /* id of this message */, |
213 autofill::FormData /* the form */, | 218 autofill::FormData /* the form */, |
214 autofill::FormFieldData /* the form field */, | 219 autofill::FormFieldData /* the form field */, |
215 int /* profile unique ID */) | 220 int /* profile unique ID */) |
(...skipping 27 matching lines...) Expand all Loading... |
243 int /* max length of the password */, | 248 int /* max length of the password */, |
244 autofill::PasswordForm) | 249 autofill::PasswordForm) |
245 | 250 |
246 // Instruct the browser that a password mapping has been found for a field. | 251 // Instruct the browser that a password mapping has been found for a field. |
247 IPC_MESSAGE_ROUTED2(AutofillHostMsg_AddPasswordFormMapping, | 252 IPC_MESSAGE_ROUTED2(AutofillHostMsg_AddPasswordFormMapping, |
248 autofill::FormFieldData, /* the user name field */ | 253 autofill::FormFieldData, /* the user name field */ |
249 autofill::PasswordFormFillData /* password pairings */) | 254 autofill::PasswordFormFillData /* password pairings */) |
250 | 255 |
251 // Instruct the browser to show a popup with the following suggestions from the | 256 // Instruct the browser to show a popup with the following suggestions from the |
252 // password manager. | 257 // password manager. |
253 IPC_MESSAGE_ROUTED4(AutofillHostMsg_ShowPasswordSuggestions, | 258 IPC_MESSAGE_ROUTED5(AutofillHostMsg_ShowPasswordSuggestions, |
254 autofill::FormFieldData /* the form field */, | 259 autofill::FormFieldData /* the form field */, |
| 260 autofill::PasswordForm /* the password form */, |
255 gfx::RectF /* input field bounds, window-relative */, | 261 gfx::RectF /* input field bounds, window-relative */, |
256 std::vector<base::string16> /* suggestions */, | 262 std::vector<base::string16> /* suggestions */, |
257 std::vector<base::string16> /* realms */) | 263 std::vector<base::string16> /* realms */) |
258 | 264 |
| 265 // Instruct the browser that a password mapping has to be removed. |
| 266 IPC_MESSAGE_ROUTED1(AutofillHostMsg_RemovePasswordSuggestion, |
| 267 autofill::PasswordForm /* the password form */) |
| 268 |
259 // Inform browser of data list values for the curent field. | 269 // Inform browser of data list values for the curent field. |
260 IPC_MESSAGE_ROUTED2(AutofillHostMsg_SetDataList, | 270 IPC_MESSAGE_ROUTED2(AutofillHostMsg_SetDataList, |
261 std::vector<base::string16> /* values */, | 271 std::vector<base::string16> /* values */, |
262 std::vector<base::string16> /* labels */) | 272 std::vector<base::string16> /* labels */) |
OLD | NEW |