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

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: Fun with merging Created 7 years, 7 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_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 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 // Autofill messages sent from the renderer to the browser. 176 // Autofill messages sent from the renderer to the browser.
175 177
176 // 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
177 // for the URL to avoid compromised renderers talking to the browser. 179 // for the URL to avoid compromised renderers talking to the browser.
178 180
179 // Notification that forms have been seen that are candidates for 181 // Notification that forms have been seen that are candidates for
180 // filling/submitting by the AutofillManager. 182 // filling/submitting by the AutofillManager.
181 IPC_MESSAGE_ROUTED3(AutofillHostMsg_FormsSeen, 183 IPC_MESSAGE_ROUTED3(AutofillHostMsg_FormsSeen,
182 std::vector<autofill::FormData> /* forms */, 184 std::vector<autofill::FormData> /* forms */,
183 base::TimeTicks /* timestamp */, 185 base::TimeTicks /* timestamp */,
184 bool /* has_more_forms */) 186 autofill::FormsSeenState /* state */)
185 187
186 // Notification that password forms have been seen that are candidates for 188 // Notification that password forms have been seen that are candidates for
187 // filling/submitting by the password manager. 189 // filling/submitting by the password manager.
188 IPC_MESSAGE_ROUTED1(AutofillHostMsg_PasswordFormsParsed, 190 IPC_MESSAGE_ROUTED1(AutofillHostMsg_PasswordFormsParsed,
189 std::vector<content::PasswordForm> /* forms */) 191 std::vector<content::PasswordForm> /* forms */)
190 192
191 // Notification that initial layout has occurred and the following password 193 // Notification that initial layout has occurred and the following password
192 // forms are visible on the page (e.g. not set to display:none.) 194 // forms are visible on the page (e.g. not set to display:none.)
193 IPC_MESSAGE_ROUTED1(AutofillHostMsg_PasswordFormsRendered, 195 IPC_MESSAGE_ROUTED1(AutofillHostMsg_PasswordFormsRendered,
194 std::vector<content::PasswordForm> /* forms */) 196 std::vector<content::PasswordForm> /* forms */)
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
282 autofill::FormFieldData /* the form field */, 284 autofill::FormFieldData /* the form field */,
283 gfx::RectF /* input field bounds, window-relative */, 285 gfx::RectF /* input field bounds, window-relative */,
284 std::vector<base::string16> /* suggestions */) 286 std::vector<base::string16> /* suggestions */)
285 287
286 // Inform browser of data list values for the curent field. 288 // Inform browser of data list values for the curent field.
287 IPC_MESSAGE_ROUTED4(AutofillHostMsg_SetDataList, 289 IPC_MESSAGE_ROUTED4(AutofillHostMsg_SetDataList,
288 std::vector<base::string16> /* values */, 290 std::vector<base::string16> /* values */,
289 std::vector<base::string16> /* labels */, 291 std::vector<base::string16> /* labels */,
290 std::vector<base::string16> /* icons */, 292 std::vector<base::string16> /* icons */,
291 std::vector<int> /* unique ids */) 293 std::vector<int> /* unique ids */)
OLDNEW
« no previous file with comments | « components/autofill/browser/autofill_metrics_unittest.cc ('k') | components/autofill/common/forms_seen_state.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698