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

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

Issue 133893004: Allow deleting autofill password suggestions on Shift+Delete (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: cleaning the code Created 6 years, 9 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 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 8
9 #include "base/time/time.h" 9 #include "base/time/time.h"
10 #include "components/autofill/core/common/autofill_param_traits_macros.h" 10 #include "components/autofill/core/common/autofill_param_traits_macros.h"
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 154
155 // Sent when the current page is actually displayed in the browser, possibly 155 // Sent when the current page is actually displayed in the browser, possibly
156 // after being preloaded. 156 // after being preloaded.
157 IPC_MESSAGE_ROUTED0(AutofillMsg_PageShown) 157 IPC_MESSAGE_ROUTED0(AutofillMsg_PageShown)
158 158
159 // Sent when Autofill manager gets the query response from the Autofill server 159 // Sent when Autofill manager gets the query response from the Autofill server
160 // and there are fields classified as ACCOUNT_CREATION_PASSWORD in the response. 160 // and there are fields classified as ACCOUNT_CREATION_PASSWORD in the response.
161 IPC_MESSAGE_ROUTED1(AutofillMsg_AccountCreationFormsDetected, 161 IPC_MESSAGE_ROUTED1(AutofillMsg_AccountCreationFormsDetected,
162 std::vector<autofill::FormData> /* forms */) 162 std::vector<autofill::FormData> /* forms */)
163 163
164 // Instruct the renderer that a password mapping has to be removed.
vabr (Chromium) 2014/03/07 23:43:36 nit: Not clear what mapping is meant. Could you el
riadh.chtara 2014/03/14 17:16:08 Done.
165 IPC_MESSAGE_ROUTED1(AutofillMsg_RemovePasswordSuggestion,
166 autofill::PasswordForm /* the password form */)
vabr (Chromium) 2014/03/07 23:43:36 nit: Maybe rather "password to be removed"? It's c
riadh.chtara 2014/03/14 17:16:08 Done.
167
164 // Autofill messages sent from the renderer to the browser. 168 // Autofill messages sent from the renderer to the browser.
165 169
166 // TODO(creis): check in the browser that the renderer actually has permission 170 // TODO(creis): check in the browser that the renderer actually has permission
167 // for the URL to avoid compromised renderers talking to the browser. 171 // for the URL to avoid compromised renderers talking to the browser.
168 172
169 // Notification that forms have been seen that are candidates for 173 // Notification that forms have been seen that are candidates for
170 // filling/submitting by the AutofillManager. 174 // filling/submitting by the AutofillManager.
171 IPC_MESSAGE_ROUTED3(AutofillHostMsg_FormsSeen, 175 IPC_MESSAGE_ROUTED3(AutofillHostMsg_FormsSeen,
172 std::vector<autofill::FormData> /* forms */, 176 std::vector<autofill::FormData> /* forms */,
173 base::TimeTicks /* timestamp */, 177 base::TimeTicks /* timestamp */,
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
243 int /* max length of the password */, 247 int /* max length of the password */,
244 autofill::PasswordForm) 248 autofill::PasswordForm)
245 249
246 // Instruct the browser that a password mapping has been found for a field. 250 // Instruct the browser that a password mapping has been found for a field.
247 IPC_MESSAGE_ROUTED2(AutofillHostMsg_AddPasswordFormMapping, 251 IPC_MESSAGE_ROUTED2(AutofillHostMsg_AddPasswordFormMapping,
248 autofill::FormFieldData, /* the user name field */ 252 autofill::FormFieldData, /* the user name field */
249 autofill::PasswordFormFillData /* password pairings */) 253 autofill::PasswordFormFillData /* password pairings */)
250 254
251 // Instruct the browser to show a popup with the following suggestions from the 255 // Instruct the browser to show a popup with the following suggestions from the
252 // password manager. 256 // password manager.
253 IPC_MESSAGE_ROUTED4(AutofillHostMsg_ShowPasswordSuggestions, 257 IPC_MESSAGE_ROUTED5(AutofillHostMsg_ShowPasswordSuggestions,
254 autofill::FormFieldData /* the form field */, 258 autofill::FormFieldData /* the form field */,
259 autofill::PasswordForm /* the password form */,
255 gfx::RectF /* input field bounds, window-relative */, 260 gfx::RectF /* input field bounds, window-relative */,
256 std::vector<base::string16> /* suggestions */, 261 std::vector<base::string16> /* suggestions */,
257 std::vector<base::string16> /* realms */) 262 std::vector<base::string16> /* realms */)
258 263
264 // Instruct the browser that a password mapping has to be removed.
265 IPC_MESSAGE_ROUTED2(AutofillHostMsg_RemovePasswordSuggestion,
266 autofill::PasswordForm /* the password form */,
vabr (Chromium) 2014/03/07 23:43:36 Please explain the meaning of the arguments. Espec
riadh.chtara 2014/03/14 17:16:08 Done.
267 std::vector<autofill::PasswordForm>)
268
259 // Inform browser of data list values for the curent field. 269 // Inform browser of data list values for the curent field.
260 IPC_MESSAGE_ROUTED2(AutofillHostMsg_SetDataList, 270 IPC_MESSAGE_ROUTED2(AutofillHostMsg_SetDataList,
261 std::vector<base::string16> /* values */, 271 std::vector<base::string16> /* values */,
262 std::vector<base::string16> /* labels */) 272 std::vector<base::string16> /* labels */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698