OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "base/time.h" |
10 #include "components/autofill/common/autocheckout_status.h" | 10 #include "components/autofill/common/autocheckout_status.h" |
11 #include "components/autofill/common/form_data.h" | 11 #include "components/autofill/common/form_data.h" |
12 #include "components/autofill/common/form_data_predictions.h" | 12 #include "components/autofill/common/form_data_predictions.h" |
13 #include "components/autofill/common/form_field_data.h" | 13 #include "components/autofill/common/form_field_data.h" |
14 #include "components/autofill/common/form_field_data_predictions.h" | 14 #include "components/autofill/common/form_field_data_predictions.h" |
| 15 #include "components/autofill/common/forms_seen_state.h" |
15 #include "components/autofill/common/password_form_fill_data.h" | 16 #include "components/autofill/common/password_form_fill_data.h" |
16 #include "components/autofill/common/web_element_descriptor.h" | 17 #include "components/autofill/common/web_element_descriptor.h" |
17 #include "content/public/common/common_param_traits.h" | 18 #include "content/public/common/common_param_traits.h" |
18 #include "content/public/common/common_param_traits_macros.h" | 19 #include "content/public/common/common_param_traits_macros.h" |
19 #include "content/public/common/password_form.h" | 20 #include "content/public/common/password_form.h" |
20 #include "content/public/common/ssl_status.h" | 21 #include "content/public/common/ssl_status.h" |
21 #include "googleurl/src/gurl.h" | 22 #include "googleurl/src/gurl.h" |
22 #include "ipc/ipc_message_macros.h" | 23 #include "ipc/ipc_message_macros.h" |
23 #include "ipc/ipc_message_utils.h" | 24 #include "ipc/ipc_message_utils.h" |
24 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFormElement.h" | 25 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFormElement.h" |
25 #include "ui/gfx/rect.h" | 26 #include "ui/gfx/rect.h" |
26 | 27 |
27 #define IPC_MESSAGE_START AutofillMsgStart | 28 #define IPC_MESSAGE_START AutofillMsgStart |
28 | 29 |
29 IPC_ENUM_TRAITS(autofill::AutocheckoutStatus) | 30 IPC_ENUM_TRAITS(autofill::AutocheckoutStatus) |
| 31 IPC_ENUM_TRAITS(autofill::FormsSeenState) |
30 | 32 |
31 IPC_STRUCT_TRAITS_BEGIN(autofill::WebElementDescriptor) | 33 IPC_STRUCT_TRAITS_BEGIN(autofill::WebElementDescriptor) |
32 IPC_STRUCT_TRAITS_MEMBER(descriptor) | 34 IPC_STRUCT_TRAITS_MEMBER(descriptor) |
33 IPC_STRUCT_TRAITS_MEMBER(retrieval_method) | 35 IPC_STRUCT_TRAITS_MEMBER(retrieval_method) |
34 IPC_STRUCT_TRAITS_END() | 36 IPC_STRUCT_TRAITS_END() |
35 | 37 |
36 IPC_ENUM_TRAITS(autofill::WebElementDescriptor::RetrievalMethod) | 38 IPC_ENUM_TRAITS(autofill::WebElementDescriptor::RetrievalMethod) |
37 | 39 |
38 IPC_STRUCT_TRAITS_BEGIN(autofill::FormFieldData) | 40 IPC_STRUCT_TRAITS_BEGIN(autofill::FormFieldData) |
39 IPC_STRUCT_TRAITS_MEMBER(label) | 41 IPC_STRUCT_TRAITS_MEMBER(label) |
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
172 // Autofill messages sent from the renderer to the browser. | 174 // Autofill messages sent from the renderer to the browser. |
173 | 175 |
174 // TODO(creis): check in the browser that the renderer actually has permission | 176 // TODO(creis): check in the browser that the renderer actually has permission |
175 // for the URL to avoid compromised renderers talking to the browser. | 177 // for the URL to avoid compromised renderers talking to the browser. |
176 | 178 |
177 // Notification that forms have been seen that are candidates for | 179 // Notification that forms have been seen that are candidates for |
178 // filling/submitting by the AutofillManager. | 180 // filling/submitting by the AutofillManager. |
179 IPC_MESSAGE_ROUTED3(AutofillHostMsg_FormsSeen, | 181 IPC_MESSAGE_ROUTED3(AutofillHostMsg_FormsSeen, |
180 std::vector<autofill::FormData> /* forms */, | 182 std::vector<autofill::FormData> /* forms */, |
181 base::TimeTicks /* timestamp */, | 183 base::TimeTicks /* timestamp */, |
182 bool /* has_more_forms */) | 184 autofill::FormsSeenState /* state */) |
183 | 185 |
184 // Notification that password forms have been seen that are candidates for | 186 // Notification that password forms have been seen that are candidates for |
185 // filling/submitting by the password manager. | 187 // filling/submitting by the password manager. |
186 IPC_MESSAGE_ROUTED1(AutofillHostMsg_PasswordFormsParsed, | 188 IPC_MESSAGE_ROUTED1(AutofillHostMsg_PasswordFormsParsed, |
187 std::vector<content::PasswordForm> /* forms */) | 189 std::vector<content::PasswordForm> /* forms */) |
188 | 190 |
189 // Notification that initial layout has occurred and the following password | 191 // Notification that initial layout has occurred and the following password |
190 // forms are visible on the page (e.g. not set to display:none.) | 192 // forms are visible on the page (e.g. not set to display:none.) |
191 IPC_MESSAGE_ROUTED1(AutofillHostMsg_PasswordFormsRendered, | 193 IPC_MESSAGE_ROUTED1(AutofillHostMsg_PasswordFormsRendered, |
192 std::vector<content::PasswordForm> /* forms */) | 194 std::vector<content::PasswordForm> /* forms */) |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
280 autofill::FormFieldData /* the form field */, | 282 autofill::FormFieldData /* the form field */, |
281 gfx::RectF /* input field bounds, window-relative */, | 283 gfx::RectF /* input field bounds, window-relative */, |
282 std::vector<base::string16> /* suggestions */) | 284 std::vector<base::string16> /* suggestions */) |
283 | 285 |
284 // Inform browser of data list values for the curent field. | 286 // Inform browser of data list values for the curent field. |
285 IPC_MESSAGE_ROUTED4(AutofillHostMsg_SetDataList, | 287 IPC_MESSAGE_ROUTED4(AutofillHostMsg_SetDataList, |
286 std::vector<base::string16> /* values */, | 288 std::vector<base::string16> /* values */, |
287 std::vector<base::string16> /* labels */, | 289 std::vector<base::string16> /* labels */, |
288 std::vector<base::string16> /* icons */, | 290 std::vector<base::string16> /* icons */, |
289 std::vector<int> /* unique ids */) | 291 std::vector<int> /* unique ids */) |
OLD | NEW |