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/form_data.h" | 11 #include "components/autofill/core/common/form_data.h" |
11 #include "components/autofill/core/common/form_data_predictions.h" | 12 #include "components/autofill/core/common/form_data_predictions.h" |
12 #include "components/autofill/core/common/form_field_data.h" | 13 #include "components/autofill/core/common/form_field_data.h" |
13 #include "components/autofill/core/common/form_field_data_predictions.h" | 14 #include "components/autofill/core/common/form_field_data_predictions.h" |
14 #include "components/autofill/core/common/forms_seen_state.h" | 15 #include "components/autofill/core/common/forms_seen_state.h" |
| 16 #include "components/autofill/core/common/password_form.h" |
15 #include "components/autofill/core/common/password_form_fill_data.h" | 17 #include "components/autofill/core/common/password_form_fill_data.h" |
16 #include "components/autofill/core/common/web_element_descriptor.h" | 18 #include "components/autofill/core/common/web_element_descriptor.h" |
17 #include "content/public/common/common_param_traits.h" | 19 #include "content/public/common/common_param_traits.h" |
18 #include "content/public/common/common_param_traits_macros.h" | 20 #include "content/public/common/common_param_traits_macros.h" |
19 #include "content/public/common/password_form.h" | |
20 #include "ipc/ipc_message_macros.h" | 21 #include "ipc/ipc_message_macros.h" |
21 #include "ipc/ipc_message_utils.h" | 22 #include "ipc/ipc_message_utils.h" |
22 #include "third_party/WebKit/public/web/WebFormElement.h" | 23 #include "third_party/WebKit/public/web/WebFormElement.h" |
23 #include "ui/gfx/rect.h" | 24 #include "ui/gfx/rect.h" |
24 | 25 |
25 #define IPC_MESSAGE_START AutofillMsgStart | 26 #define IPC_MESSAGE_START AutofillMsgStart |
26 | 27 |
27 IPC_ENUM_TRAITS_MAX_VALUE(autofill::FormsSeenState, | 28 IPC_ENUM_TRAITS_MAX_VALUE(autofill::FormsSeenState, |
28 autofill::FORMS_SEEN_STATE_NUM_STATES - 1) | 29 autofill::FORMS_SEEN_STATE_NUM_STATES - 1) |
29 IPC_ENUM_TRAITS_MAX_VALUE(base::i18n::TextDirection, | 30 IPC_ENUM_TRAITS_MAX_VALUE(base::i18n::TextDirection, |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
148 IPC_MESSAGE_ROUTED1(AutofillMsg_PasswordGenerationEnabled, | 149 IPC_MESSAGE_ROUTED1(AutofillMsg_PasswordGenerationEnabled, |
149 bool /* is_enabled */) | 150 bool /* is_enabled */) |
150 | 151 |
151 // Tells the renderer that the password field has accept the suggestion. | 152 // Tells the renderer that the password field has accept the suggestion. |
152 IPC_MESSAGE_ROUTED1(AutofillMsg_AcceptPasswordAutofillSuggestion, | 153 IPC_MESSAGE_ROUTED1(AutofillMsg_AcceptPasswordAutofillSuggestion, |
153 base::string16 /* username value*/) | 154 base::string16 /* username value*/) |
154 | 155 |
155 // Tells the renderer that this password form is not blacklisted. A form can | 156 // Tells the renderer that this password form is not blacklisted. A form can |
156 // be blacklisted if a user chooses "never save passwords for this site". | 157 // be blacklisted if a user chooses "never save passwords for this site". |
157 IPC_MESSAGE_ROUTED1(AutofillMsg_FormNotBlacklisted, | 158 IPC_MESSAGE_ROUTED1(AutofillMsg_FormNotBlacklisted, |
158 content::PasswordForm /* form checked */) | 159 autofill::PasswordForm /* form checked */) |
159 | 160 |
160 // Sent when requestAutocomplete() finishes (either succesfully or with an | 161 // Sent when requestAutocomplete() finishes (either succesfully or with an |
161 // error). If it was a success, the renderer fills the form that requested | 162 // error). If it was a success, the renderer fills the form that requested |
162 // autocomplete with the |form_data| values input by the user. | 163 // autocomplete with the |form_data| values input by the user. |
163 IPC_MESSAGE_ROUTED2(AutofillMsg_RequestAutocompleteResult, | 164 IPC_MESSAGE_ROUTED2(AutofillMsg_RequestAutocompleteResult, |
164 WebKit::WebFormElement::AutocompleteResult /* result */, | 165 WebKit::WebFormElement::AutocompleteResult /* result */, |
165 autofill::FormData /* form_data */) | 166 autofill::FormData /* form_data */) |
166 | 167 |
167 // Sent when the current page is actually displayed in the browser, possibly | 168 // Sent when the current page is actually displayed in the browser, possibly |
168 // after being preloaded. | 169 // after being preloaded. |
(...skipping 12 matching lines...) Expand all Loading... |
181 // Notification that forms have been seen that are candidates for | 182 // Notification that forms have been seen that are candidates for |
182 // filling/submitting by the AutofillManager. | 183 // filling/submitting by the AutofillManager. |
183 IPC_MESSAGE_ROUTED3(AutofillHostMsg_FormsSeen, | 184 IPC_MESSAGE_ROUTED3(AutofillHostMsg_FormsSeen, |
184 std::vector<autofill::FormData> /* forms */, | 185 std::vector<autofill::FormData> /* forms */, |
185 base::TimeTicks /* timestamp */, | 186 base::TimeTicks /* timestamp */, |
186 autofill::FormsSeenState /* state */) | 187 autofill::FormsSeenState /* state */) |
187 | 188 |
188 // Notification that password forms have been seen that are candidates for | 189 // Notification that password forms have been seen that are candidates for |
189 // filling/submitting by the password manager. | 190 // filling/submitting by the password manager. |
190 IPC_MESSAGE_ROUTED1(AutofillHostMsg_PasswordFormsParsed, | 191 IPC_MESSAGE_ROUTED1(AutofillHostMsg_PasswordFormsParsed, |
191 std::vector<content::PasswordForm> /* forms */) | 192 std::vector<autofill::PasswordForm> /* forms */) |
192 | 193 |
193 // Notification that initial layout has occurred and the following password | 194 // Notification that initial layout has occurred and the following password |
194 // forms are visible on the page (e.g. not set to display:none.) | 195 // forms are visible on the page (e.g. not set to display:none.) |
195 IPC_MESSAGE_ROUTED1(AutofillHostMsg_PasswordFormsRendered, | 196 IPC_MESSAGE_ROUTED1(AutofillHostMsg_PasswordFormsRendered, |
196 std::vector<content::PasswordForm> /* forms */) | 197 std::vector<autofill::PasswordForm> /* forms */) |
197 | 198 |
198 // Notification that this password form was submitted by the user. | 199 // Notification that this password form was submitted by the user. |
199 IPC_MESSAGE_ROUTED1(AutofillHostMsg_PasswordFormSubmitted, | 200 IPC_MESSAGE_ROUTED1(AutofillHostMsg_PasswordFormSubmitted, |
200 content::PasswordForm /* form */) | 201 autofill::PasswordForm /* form */) |
201 | 202 |
202 // Notification that a form has been submitted. The user hit the button. | 203 // Notification that a form has been submitted. The user hit the button. |
203 IPC_MESSAGE_ROUTED2(AutofillHostMsg_FormSubmitted, | 204 IPC_MESSAGE_ROUTED2(AutofillHostMsg_FormSubmitted, |
204 autofill::FormData /* form */, | 205 autofill::FormData /* form */, |
205 base::TimeTicks /* timestamp */) | 206 base::TimeTicks /* timestamp */) |
206 | 207 |
207 // Notification that a form field's value has changed. | 208 // Notification that a form field's value has changed. |
208 IPC_MESSAGE_ROUTED3(AutofillHostMsg_TextFieldDidChange, | 209 IPC_MESSAGE_ROUTED3(AutofillHostMsg_TextFieldDidChange, |
209 autofill::FormData /* the form */, | 210 autofill::FormData /* the form */, |
210 autofill::FormFieldData /* the form field */, | 211 autofill::FormFieldData /* the form field */, |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
246 | 247 |
247 // Instructs the browser to hide the Autofill UI. | 248 // Instructs the browser to hide the Autofill UI. |
248 IPC_MESSAGE_ROUTED0(AutofillHostMsg_HideAutofillUI) | 249 IPC_MESSAGE_ROUTED0(AutofillHostMsg_HideAutofillUI) |
249 | 250 |
250 // Instructs the browser to show the password generation bubble at the | 251 // Instructs the browser to show the password generation bubble at the |
251 // specified location. This location should be specified in the renderers | 252 // specified location. This location should be specified in the renderers |
252 // coordinate system. Form is the form associated with the password field. | 253 // coordinate system. Form is the form associated with the password field. |
253 IPC_MESSAGE_ROUTED3(AutofillHostMsg_ShowPasswordGenerationPopup, | 254 IPC_MESSAGE_ROUTED3(AutofillHostMsg_ShowPasswordGenerationPopup, |
254 gfx::Rect /* source location */, | 255 gfx::Rect /* source location */, |
255 int /* max length of the password */, | 256 int /* max length of the password */, |
256 content::PasswordForm) | 257 autofill::PasswordForm) |
257 | 258 |
258 // Instruct the browser that a password mapping has been found for a field. | 259 // Instruct the browser that a password mapping has been found for a field. |
259 IPC_MESSAGE_ROUTED2(AutofillHostMsg_AddPasswordFormMapping, | 260 IPC_MESSAGE_ROUTED2(AutofillHostMsg_AddPasswordFormMapping, |
260 autofill::FormFieldData, /* the user name field */ | 261 autofill::FormFieldData, /* the user name field */ |
261 autofill::PasswordFormFillData /* password pairings */) | 262 autofill::PasswordFormFillData /* password pairings */) |
262 | 263 |
263 // Instruct the browser to show a popup with the following suggestions from the | 264 // Instruct the browser to show a popup with the following suggestions from the |
264 // password manager. | 265 // password manager. |
265 IPC_MESSAGE_ROUTED4(AutofillHostMsg_ShowPasswordSuggestions, | 266 IPC_MESSAGE_ROUTED4(AutofillHostMsg_ShowPasswordSuggestions, |
266 autofill::FormFieldData /* the form field */, | 267 autofill::FormFieldData /* the form field */, |
267 gfx::RectF /* input field bounds, window-relative */, | 268 gfx::RectF /* input field bounds, window-relative */, |
268 std::vector<base::string16> /* suggestions */, | 269 std::vector<base::string16> /* suggestions */, |
269 std::vector<base::string16> /* realms */) | 270 std::vector<base::string16> /* realms */) |
270 | 271 |
271 // Inform browser of data list values for the curent field. | 272 // Inform browser of data list values for the curent field. |
272 IPC_MESSAGE_ROUTED2(AutofillHostMsg_SetDataList, | 273 IPC_MESSAGE_ROUTED2(AutofillHostMsg_SetDataList, |
273 std::vector<base::string16> /* values */, | 274 std::vector<base::string16> /* values */, |
274 std::vector<base::string16> /* labels */) | 275 std::vector<base::string16> /* labels */) |
OLD | NEW |