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

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

Issue 242613006: [Autofill] Enable Autofill for dynamically created forms. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Test fix Created 6 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 | Annotate | Revision Log
OLDNEW
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 #include <vector> 8 #include <vector>
9 9
10 #include "base/strings/string16.h" 10 #include "base/strings/string16.h"
11 #include "base/time/time.h" 11 #include "base/time/time.h"
12 #include "components/autofill/content/common/autofill_param_traits_macros.h" 12 #include "components/autofill/content/common/autofill_param_traits_macros.h"
13 #include "components/autofill/core/common/form_data.h" 13 #include "components/autofill/core/common/form_data.h"
14 #include "components/autofill/core/common/form_data_predictions.h" 14 #include "components/autofill/core/common/form_data_predictions.h"
15 #include "components/autofill/core/common/form_field_data.h" 15 #include "components/autofill/core/common/form_field_data.h"
16 #include "components/autofill/core/common/form_field_data_predictions.h" 16 #include "components/autofill/core/common/form_field_data_predictions.h"
17 #include "components/autofill/core/common/forms_seen_state.h"
18 #include "components/autofill/core/common/password_form.h" 17 #include "components/autofill/core/common/password_form.h"
19 #include "components/autofill/core/common/password_form_fill_data.h" 18 #include "components/autofill/core/common/password_form_fill_data.h"
20 #include "components/autofill/core/common/web_element_descriptor.h" 19 #include "components/autofill/core/common/web_element_descriptor.h"
21 #include "content/public/common/common_param_traits.h" 20 #include "content/public/common/common_param_traits.h"
22 #include "content/public/common/common_param_traits_macros.h" 21 #include "content/public/common/common_param_traits_macros.h"
23 #include "ipc/ipc_message_macros.h" 22 #include "ipc/ipc_message_macros.h"
24 #include "ipc/ipc_message_utils.h" 23 #include "ipc/ipc_message_utils.h"
25 #include "third_party/WebKit/public/web/WebFormElement.h" 24 #include "third_party/WebKit/public/web/WebFormElement.h"
26 #include "ui/gfx/rect.h" 25 #include "ui/gfx/rect.h"
27 #include "url/gurl.h" 26 #include "url/gurl.h"
28 27
29 #define IPC_MESSAGE_START AutofillMsgStart 28 #define IPC_MESSAGE_START AutofillMsgStart
30 29
31 IPC_ENUM_TRAITS_MAX_VALUE(autofill::FormsSeenState,
32 autofill::FORMS_SEEN_STATE_NUM_STATES - 1)
33 IPC_ENUM_TRAITS_MAX_VALUE(base::i18n::TextDirection, 30 IPC_ENUM_TRAITS_MAX_VALUE(base::i18n::TextDirection,
34 base::i18n::TEXT_DIRECTION_NUM_DIRECTIONS - 1) 31 base::i18n::TEXT_DIRECTION_NUM_DIRECTIONS - 1)
35 32
36 IPC_STRUCT_TRAITS_BEGIN(autofill::WebElementDescriptor) 33 IPC_STRUCT_TRAITS_BEGIN(autofill::WebElementDescriptor)
37 IPC_STRUCT_TRAITS_MEMBER(descriptor) 34 IPC_STRUCT_TRAITS_MEMBER(descriptor)
38 IPC_STRUCT_TRAITS_MEMBER(retrieval_method) 35 IPC_STRUCT_TRAITS_MEMBER(retrieval_method)
39 IPC_STRUCT_TRAITS_END() 36 IPC_STRUCT_TRAITS_END()
40 37
41 IPC_ENUM_TRAITS_MAX_VALUE(autofill::WebElementDescriptor::RetrievalMethod, 38 IPC_ENUM_TRAITS_MAX_VALUE(autofill::WebElementDescriptor::RetrievalMethod,
42 autofill::WebElementDescriptor::NONE) 39 autofill::WebElementDescriptor::NONE)
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 IPC_MESSAGE_ROUTED1(AutofillMsg_AccountCreationFormsDetected, 161 IPC_MESSAGE_ROUTED1(AutofillMsg_AccountCreationFormsDetected,
165 std::vector<autofill::FormData> /* forms */) 162 std::vector<autofill::FormData> /* forms */)
166 163
167 // Autofill messages sent from the renderer to the browser. 164 // Autofill messages sent from the renderer to the browser.
168 165
169 // TODO(creis): check in the browser that the renderer actually has permission 166 // TODO(creis): check in the browser that the renderer actually has permission
170 // for the URL to avoid compromised renderers talking to the browser. 167 // for the URL to avoid compromised renderers talking to the browser.
171 168
172 // Notification that forms have been seen that are candidates for 169 // Notification that forms have been seen that are candidates for
173 // filling/submitting by the AutofillManager. 170 // filling/submitting by the AutofillManager.
174 IPC_MESSAGE_ROUTED3(AutofillHostMsg_FormsSeen, 171 IPC_MESSAGE_ROUTED2(AutofillHostMsg_FormsSeen,
175 std::vector<autofill::FormData> /* forms */, 172 std::vector<autofill::FormData> /* forms */,
176 base::TimeTicks /* timestamp */, 173 base::TimeTicks /* timestamp */)
177 autofill::FormsSeenState /* state */)
178 174
179 // Notification that password forms have been seen that are candidates for 175 // Notification that password forms have been seen that are candidates for
180 // filling/submitting by the password manager. 176 // filling/submitting by the password manager.
181 IPC_MESSAGE_ROUTED1(AutofillHostMsg_PasswordFormsParsed, 177 IPC_MESSAGE_ROUTED1(AutofillHostMsg_PasswordFormsParsed,
182 std::vector<autofill::PasswordForm> /* forms */) 178 std::vector<autofill::PasswordForm> /* forms */)
183 179
184 // Notification that initial layout has occurred and the following password 180 // Notification that initial layout has occurred and the following password
185 // forms are visible on the page (e.g. not set to display:none.) 181 // forms are visible on the page (e.g. not set to display:none.)
186 IPC_MESSAGE_ROUTED1(AutofillHostMsg_PasswordFormsRendered, 182 IPC_MESSAGE_ROUTED1(AutofillHostMsg_PasswordFormsRendered,
187 std::vector<autofill::PasswordForm> /* forms */) 183 std::vector<autofill::PasswordForm> /* forms */)
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
263 IPC_MESSAGE_ROUTED4(AutofillHostMsg_ShowPasswordSuggestions, 259 IPC_MESSAGE_ROUTED4(AutofillHostMsg_ShowPasswordSuggestions,
264 autofill::FormFieldData /* the form field */, 260 autofill::FormFieldData /* the form field */,
265 gfx::RectF /* input field bounds, window-relative */, 261 gfx::RectF /* input field bounds, window-relative */,
266 std::vector<base::string16> /* suggestions */, 262 std::vector<base::string16> /* suggestions */,
267 std::vector<base::string16> /* realms */) 263 std::vector<base::string16> /* realms */)
268 264
269 // Inform browser of data list values for the curent field. 265 // Inform browser of data list values for the curent field.
270 IPC_MESSAGE_ROUTED2(AutofillHostMsg_SetDataList, 266 IPC_MESSAGE_ROUTED2(AutofillHostMsg_SetDataList,
271 std::vector<base::string16> /* values */, 267 std::vector<base::string16> /* values */,
272 std::vector<base::string16> /* labels */) 268 std::vector<base::string16> /* labels */)
OLDNEW
« no previous file with comments | « chrome/renderer/autofill/form_autofill_browsertest.cc ('k') | components/autofill/content/renderer/autofill_agent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698