Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(41)

Side by Side Diff: components/autofill/common/autofill_messages.h

Issue 13264002: Requery the autofill server when forms and input fields are dynamically added. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: minor style fix Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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_param.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_macros.h" 18 #include "content/public/common/common_param_traits_macros.h"
18 #include "content/public/common/password_form.h" 19 #include "content/public/common/password_form.h"
19 #include "content/public/common/ssl_status.h" 20 #include "content/public/common/ssl_status.h"
20 #include "googleurl/src/gurl.h" 21 #include "googleurl/src/gurl.h"
21 #include "ipc/ipc_message_macros.h" 22 #include "ipc/ipc_message_macros.h"
22 #include "ipc/ipc_message_utils.h" 23 #include "ipc/ipc_message_utils.h"
23 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFormElement.h" 24 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFormElement.h"
24 #include "ui/gfx/rect.h" 25 #include "ui/gfx/rect.h"
25 26
26 #define IPC_MESSAGE_START AutofillMsgStart 27 #define IPC_MESSAGE_START AutofillMsgStart
27 28
28 IPC_ENUM_TRAITS(autofill::AutocheckoutStatus) 29 IPC_ENUM_TRAITS(autofill::AutocheckoutStatus)
30 IPC_ENUM_TRAITS(autofill::FormsSeenParam)
29 31
30 IPC_STRUCT_TRAITS_BEGIN(autofill::WebElementDescriptor) 32 IPC_STRUCT_TRAITS_BEGIN(autofill::WebElementDescriptor)
31 IPC_STRUCT_TRAITS_MEMBER(descriptor) 33 IPC_STRUCT_TRAITS_MEMBER(descriptor)
32 IPC_STRUCT_TRAITS_MEMBER(retrieval_method) 34 IPC_STRUCT_TRAITS_MEMBER(retrieval_method)
33 IPC_STRUCT_TRAITS_END() 35 IPC_STRUCT_TRAITS_END()
34 36
35 IPC_ENUM_TRAITS(autofill::WebElementDescriptor::RetrievalMethod) 37 IPC_ENUM_TRAITS(autofill::WebElementDescriptor::RetrievalMethod)
36 38
37 IPC_STRUCT_TRAITS_BEGIN(FormFieldData) 39 IPC_STRUCT_TRAITS_BEGIN(FormFieldData)
38 IPC_STRUCT_TRAITS_MEMBER(label) 40 IPC_STRUCT_TRAITS_MEMBER(label)
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 // Autofill messages sent from the renderer to the browser. 173 // Autofill messages sent from the renderer to the browser.
172 174
173 // TODO(creis): check in the browser that the renderer actually has permission 175 // TODO(creis): check in the browser that the renderer actually has permission
174 // for the URL to avoid compromised renderers talking to the browser. 176 // for the URL to avoid compromised renderers talking to the browser.
175 177
176 // Notification that forms have been seen that are candidates for 178 // Notification that forms have been seen that are candidates for
177 // filling/submitting by the AutofillManager. 179 // filling/submitting by the AutofillManager.
178 IPC_MESSAGE_ROUTED3(AutofillHostMsg_FormsSeen, 180 IPC_MESSAGE_ROUTED3(AutofillHostMsg_FormsSeen,
179 std::vector<FormData> /* forms */, 181 std::vector<FormData> /* forms */,
180 base::TimeTicks /* timestamp */, 182 base::TimeTicks /* timestamp */,
181 bool /* has_more_forms */) 183 autofill::FormsSeenParam /* partial or dynamic forms */)
ahutter 2013/04/02 20:11:47 I think this should be the argument name not a des
Raman Kakilate 2013/04/02 20:30:19 comment section is used to specify param name rath
Dane Wallinga 2013/04/02 21:29:30 Done.
182 184
183 // Notification that password forms have been seen that are candidates for 185 // Notification that password forms have been seen that are candidates for
184 // filling/submitting by the password manager. 186 // filling/submitting by the password manager.
185 IPC_MESSAGE_ROUTED1(AutofillHostMsg_PasswordFormsParsed, 187 IPC_MESSAGE_ROUTED1(AutofillHostMsg_PasswordFormsParsed,
186 std::vector<content::PasswordForm> /* forms */) 188 std::vector<content::PasswordForm> /* forms */)
187 189
188 // Notification that initial layout has occurred and the following password 190 // Notification that initial layout has occurred and the following password
189 // forms are visible on the page (e.g. not set to display:none.) 191 // forms are visible on the page (e.g. not set to display:none.)
190 IPC_MESSAGE_ROUTED1(AutofillHostMsg_PasswordFormsRendered, 192 IPC_MESSAGE_ROUTED1(AutofillHostMsg_PasswordFormsRendered,
191 std::vector<content::PasswordForm> /* forms */) 193 std::vector<content::PasswordForm> /* forms */)
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
279 FormFieldData /* the form field */, 281 FormFieldData /* the form field */,
280 gfx::RectF /* input field bounds, window-relative */, 282 gfx::RectF /* input field bounds, window-relative */,
281 std::vector<string16> /* suggestions */) 283 std::vector<string16> /* suggestions */)
282 284
283 // Inform browser of data list values for the curent field. 285 // Inform browser of data list values for the curent field.
284 IPC_MESSAGE_ROUTED4(AutofillHostMsg_SetDataList, 286 IPC_MESSAGE_ROUTED4(AutofillHostMsg_SetDataList,
285 std::vector<string16> /* values */, 287 std::vector<string16> /* values */,
286 std::vector<string16> /* labels */, 288 std::vector<string16> /* labels */,
287 std::vector<string16> /* icons */, 289 std::vector<string16> /* icons */,
288 std::vector<int> /* unique ids */) 290 std::vector<int> /* unique ids */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698