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/form_data.h" | 10 #include "components/autofill/core/common/form_data.h" |
11 #include "components/autofill/core/common/form_data_predictions.h" | 11 #include "components/autofill/core/common/form_data_predictions.h" |
12 #include "components/autofill/core/common/form_field_data.h" | 12 #include "components/autofill/core/common/form_field_data.h" |
13 #include "components/autofill/core/common/form_field_data_predictions.h" | 13 #include "components/autofill/core/common/form_field_data_predictions.h" |
14 #include "components/autofill/core/common/forms_seen_state.h" | 14 #include "components/autofill/core/common/forms_seen_state.h" |
15 #include "components/autofill/core/common/password_form_fill_data.h" | 15 #include "components/autofill/core/common/password_form_fill_data.h" |
16 #include "components/autofill/core/common/web_element_descriptor.h" | 16 #include "components/autofill/core/common/web_element_descriptor.h" |
17 #include "content/public/common/common_param_traits.h" | 17 #include "content/public/common/common_param_traits.h" |
18 #include "content/public/common/common_param_traits_macros.h" | 18 #include "content/public/common/common_param_traits_macros.h" |
19 #include "content/public/common/password_form.h" | 19 #include "content/public/common/password_form.h" |
20 #include "ipc/ipc_message_macros.h" | 20 #include "ipc/ipc_message_macros.h" |
21 #include "ipc/ipc_message_utils.h" | 21 #include "ipc/ipc_message_utils.h" |
22 #include "third_party/WebKit/public/web/WebFormElement.h" | 22 #include "third_party/WebKit/public/web/WebFormElement.h" |
23 #include "ui/gfx/rect.h" | 23 #include "ui/gfx/rect.h" |
24 #include "url/gurl.h" | |
25 | 24 |
26 #define IPC_MESSAGE_START AutofillMsgStart | 25 #define IPC_MESSAGE_START AutofillMsgStart |
27 | 26 |
28 IPC_ENUM_TRAITS_MAX_VALUE(autofill::FormsSeenState, | 27 IPC_ENUM_TRAITS_MAX_VALUE(autofill::FormsSeenState, |
29 autofill::FORMS_SEEN_STATE_NUM_STATES - 1) | 28 autofill::FORMS_SEEN_STATE_NUM_STATES - 1) |
30 IPC_ENUM_TRAITS_MAX_VALUE(base::i18n::TextDirection, | 29 IPC_ENUM_TRAITS_MAX_VALUE(base::i18n::TextDirection, |
31 base::i18n::TEXT_DIRECTION_NUM_DIRECTIONS - 1) | 30 base::i18n::TEXT_DIRECTION_NUM_DIRECTIONS - 1) |
32 | 31 |
33 IPC_STRUCT_TRAITS_BEGIN(autofill::WebElementDescriptor) | 32 IPC_STRUCT_TRAITS_BEGIN(autofill::WebElementDescriptor) |
34 IPC_STRUCT_TRAITS_MEMBER(descriptor) | 33 IPC_STRUCT_TRAITS_MEMBER(descriptor) |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
162 // error). If it was a success, the renderer fills the form that requested | 161 // error). If it was a success, the renderer fills the form that requested |
163 // autocomplete with the |form_data| values input by the user. | 162 // autocomplete with the |form_data| values input by the user. |
164 IPC_MESSAGE_ROUTED2(AutofillMsg_RequestAutocompleteResult, | 163 IPC_MESSAGE_ROUTED2(AutofillMsg_RequestAutocompleteResult, |
165 WebKit::WebFormElement::AutocompleteResult /* result */, | 164 WebKit::WebFormElement::AutocompleteResult /* result */, |
166 autofill::FormData /* form_data */) | 165 autofill::FormData /* form_data */) |
167 | 166 |
168 // Sent when the current page is actually displayed in the browser, possibly | 167 // Sent when the current page is actually displayed in the browser, possibly |
169 // after being preloaded. | 168 // after being preloaded. |
170 IPC_MESSAGE_ROUTED0(AutofillMsg_PageShown) | 169 IPC_MESSAGE_ROUTED0(AutofillMsg_PageShown) |
171 | 170 |
| 171 // Sent when Autofill manager gets the query response from the Autofill server |
| 172 // and there are fields classified as ACCOUNT_CREATION_PASSWORD in the response. |
| 173 IPC_MESSAGE_ROUTED1(AutofillMsg_AccountCreationFormsDetected, |
| 174 std::vector<autofill::FormData> /* forms */) |
| 175 |
172 // Autofill messages sent from the renderer to the browser. | 176 // Autofill messages sent from the renderer to the browser. |
173 | 177 |
174 // TODO(creis): check in the browser that the renderer actually has permission | 178 // TODO(creis): check in the browser that the renderer actually has permission |
175 // for the URL to avoid compromised renderers talking to the browser. | 179 // for the URL to avoid compromised renderers talking to the browser. |
176 | 180 |
177 // Notification that forms have been seen that are candidates for | 181 // Notification that forms have been seen that are candidates for |
178 // filling/submitting by the AutofillManager. | 182 // filling/submitting by the AutofillManager. |
179 IPC_MESSAGE_ROUTED3(AutofillHostMsg_FormsSeen, | 183 IPC_MESSAGE_ROUTED3(AutofillHostMsg_FormsSeen, |
180 std::vector<autofill::FormData> /* forms */, | 184 std::vector<autofill::FormData> /* forms */, |
181 base::TimeTicks /* timestamp */, | 185 base::TimeTicks /* timestamp */, |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
261 IPC_MESSAGE_ROUTED4(AutofillHostMsg_ShowPasswordSuggestions, | 265 IPC_MESSAGE_ROUTED4(AutofillHostMsg_ShowPasswordSuggestions, |
262 autofill::FormFieldData /* the form field */, | 266 autofill::FormFieldData /* the form field */, |
263 gfx::RectF /* input field bounds, window-relative */, | 267 gfx::RectF /* input field bounds, window-relative */, |
264 std::vector<base::string16> /* suggestions */, | 268 std::vector<base::string16> /* suggestions */, |
265 std::vector<base::string16> /* realms */) | 269 std::vector<base::string16> /* realms */) |
266 | 270 |
267 // Inform browser of data list values for the curent field. | 271 // Inform browser of data list values for the curent field. |
268 IPC_MESSAGE_ROUTED2(AutofillHostMsg_SetDataList, | 272 IPC_MESSAGE_ROUTED2(AutofillHostMsg_SetDataList, |
269 std::vector<base::string16> /* values */, | 273 std::vector<base::string16> /* values */, |
270 std::vector<base::string16> /* labels */) | 274 std::vector<base::string16> /* labels */) |
OLD | NEW |