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

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

Issue 15660018: [autofill] Add support for PSL domain matching for password autofill. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Updated regexp, sanitized result, escaped form domain and added comments. Created 7 years, 6 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 (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"
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 IPC_STRUCT_TRAITS_MEMBER(fields) 77 IPC_STRUCT_TRAITS_MEMBER(fields)
78 IPC_STRUCT_TRAITS_END() 78 IPC_STRUCT_TRAITS_END()
79 79
80 IPC_STRUCT_TRAITS_BEGIN(autofill::UsernamesCollectionKey) 80 IPC_STRUCT_TRAITS_BEGIN(autofill::UsernamesCollectionKey)
81 IPC_STRUCT_TRAITS_MEMBER(username) 81 IPC_STRUCT_TRAITS_MEMBER(username)
82 IPC_STRUCT_TRAITS_MEMBER(password) 82 IPC_STRUCT_TRAITS_MEMBER(password)
83 IPC_STRUCT_TRAITS_END() 83 IPC_STRUCT_TRAITS_END()
84 84
85 IPC_STRUCT_TRAITS_BEGIN(autofill::PasswordFormFillData) 85 IPC_STRUCT_TRAITS_BEGIN(autofill::PasswordFormFillData)
86 IPC_STRUCT_TRAITS_MEMBER(basic_data) 86 IPC_STRUCT_TRAITS_MEMBER(basic_data)
87 IPC_STRUCT_TRAITS_MEMBER(additional_logins) 87 IPC_STRUCT_TRAITS_MEMBER(preferred_realm)
88 IPC_STRUCT_TRAITS_MEMBER(additional_logins_passwords)
89 IPC_STRUCT_TRAITS_MEMBER(additional_logins_realms)
88 IPC_STRUCT_TRAITS_MEMBER(other_possible_usernames) 90 IPC_STRUCT_TRAITS_MEMBER(other_possible_usernames)
89 IPC_STRUCT_TRAITS_MEMBER(wait_for_username) 91 IPC_STRUCT_TRAITS_MEMBER(wait_for_username)
90 IPC_STRUCT_TRAITS_END() 92 IPC_STRUCT_TRAITS_END()
91 93
92 IPC_ENUM_TRAITS(WebKit::WebFormElement::AutocompleteResult) 94 IPC_ENUM_TRAITS(WebKit::WebFormElement::AutocompleteResult)
93 95
94 // Autofill messages sent from the browser to the renderer. 96 // Autofill messages sent from the browser to the renderer.
95 97
96 // Request to parse all the forms without field count limit. 98 // Request to parse all the forms without field count limit.
97 IPC_MESSAGE_ROUTED0(AutofillMsg_GetAllForms) 99 IPC_MESSAGE_ROUTED0(AutofillMsg_GetAllForms)
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
278 int /* max length of the password */, 280 int /* max length of the password */,
279 content::PasswordForm) 281 content::PasswordForm)
280 282
281 // Instruct the browser that a password mapping has been found for a field. 283 // Instruct the browser that a password mapping has been found for a field.
282 IPC_MESSAGE_ROUTED2(AutofillHostMsg_AddPasswordFormMapping, 284 IPC_MESSAGE_ROUTED2(AutofillHostMsg_AddPasswordFormMapping,
283 autofill::FormFieldData, /* the user name field */ 285 autofill::FormFieldData, /* the user name field */
284 autofill::PasswordFormFillData /* password pairings */) 286 autofill::PasswordFormFillData /* password pairings */)
285 287
286 // Instruct the browser to show a popup with the following suggestions from the 288 // Instruct the browser to show a popup with the following suggestions from the
287 // password manager. 289 // password manager.
288 IPC_MESSAGE_ROUTED3(AutofillHostMsg_ShowPasswordSuggestions, 290 IPC_MESSAGE_ROUTED4(AutofillHostMsg_ShowPasswordSuggestions,
289 autofill::FormFieldData /* the form field */, 291 autofill::FormFieldData /* the form field */,
290 gfx::RectF /* input field bounds, window-relative */, 292 gfx::RectF /* input field bounds, window-relative */,
291 std::vector<base::string16> /* suggestions */) 293 std::vector<base::string16> /* suggestions */,
294 std::vector<base::string16> /* suggestions realms */)
292 295
293 // Inform browser of data list values for the curent field. 296 // Inform browser of data list values for the curent field.
294 IPC_MESSAGE_ROUTED4(AutofillHostMsg_SetDataList, 297 IPC_MESSAGE_ROUTED4(AutofillHostMsg_SetDataList,
295 std::vector<base::string16> /* values */, 298 std::vector<base::string16> /* values */,
296 std::vector<base::string16> /* labels */, 299 std::vector<base::string16> /* labels */,
297 std::vector<base::string16> /* icons */, 300 std::vector<base::string16> /* icons */,
298 std::vector<int> /* unique ids */) 301 std::vector<int> /* unique ids */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698