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

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

Issue 686653003: Don't use FormFieldData only as a key in a map (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 6 years, 1 month 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 #include <vector> 8 #include <vector>
9 9
10 #include "base/strings/string16.h" 10 #include "base/strings/string16.h"
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 int /* query_id */, 105 int /* query_id */,
106 autofill::FormData /* form */) 106 autofill::FormData /* form */)
107 107
108 // Instructs the renderer to preview the active form with the given form data. 108 // Instructs the renderer to preview the active form with the given form data.
109 IPC_MESSAGE_ROUTED2(AutofillMsg_PreviewForm, 109 IPC_MESSAGE_ROUTED2(AutofillMsg_PreviewForm,
110 int /* query_id */, 110 int /* query_id */,
111 autofill::FormData /* form */) 111 autofill::FormData /* form */)
112 112
113 // Fill a password form and prepare field autocomplete for multiple 113 // Fill a password form and prepare field autocomplete for multiple
114 // matching logins. Lets the renderer know if it should disable the popup 114 // matching logins. Lets the renderer know if it should disable the popup
115 // because the browser process will own the popup UI. 115 // because the browser process will own the popup UI. |key| serves for
116 IPC_MESSAGE_ROUTED1(AutofillMsg_FillPasswordForm, 116 // identifying the fill form data in subsequent
117 // AutofillHostMsg_ShowPasswordSuggestions messages to the browser.
118 IPC_MESSAGE_ROUTED2(AutofillMsg_FillPasswordForm,
119 int /* key */,
117 autofill::PasswordFormFillData /* the fill form data*/) 120 autofill::PasswordFormFillData /* the fill form data*/)
118 121
119 // Notification to start (|active| == true) or stop (|active| == false) logging 122 // Notification to start (|active| == true) or stop (|active| == false) logging
120 // the decisions made about saving the password. 123 // the decisions made about saving the password.
121 IPC_MESSAGE_ROUTED1(AutofillMsg_SetLoggingState, bool /* active */) 124 IPC_MESSAGE_ROUTED1(AutofillMsg_SetLoggingState, bool /* active */)
122 125
123 // Send the heuristic and server field type predictions to the renderer. 126 // Send the heuristic and server field type predictions to the renderer.
124 IPC_MESSAGE_ROUTED1( 127 IPC_MESSAGE_ROUTED1(
125 AutofillMsg_FieldTypePredictionsAvailable, 128 AutofillMsg_FieldTypePredictionsAvailable,
126 std::vector<autofill::FormDataPredictions> /* forms */) 129 std::vector<autofill::FormDataPredictions> /* forms */)
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
273 // Instructs the browser to show the popup for editing a generated password. 276 // Instructs the browser to show the popup for editing a generated password.
274 // The location should be specified in the renderers coordinate system. Form 277 // The location should be specified in the renderers coordinate system. Form
275 // is the form associated with the password field. 278 // is the form associated with the password field.
276 IPC_MESSAGE_ROUTED2(AutofillHostMsg_ShowPasswordEditingPopup, 279 IPC_MESSAGE_ROUTED2(AutofillHostMsg_ShowPasswordEditingPopup,
277 gfx::RectF /* source location */, 280 gfx::RectF /* source location */,
278 autofill::PasswordForm) 281 autofill::PasswordForm)
279 282
280 // Instructs the browser to hide any password generation popups. 283 // Instructs the browser to hide any password generation popups.
281 IPC_MESSAGE_ROUTED0(AutofillHostMsg_HidePasswordGenerationPopup) 284 IPC_MESSAGE_ROUTED0(AutofillHostMsg_HidePasswordGenerationPopup)
282 285
283 // Instruct the browser that a password mapping has been found for a field. 286 // Instruct the browser to show a popup with suggestions filled from data
284 IPC_MESSAGE_ROUTED2(AutofillHostMsg_AddPasswordFormMapping, 287 // associated with |key|. The popup will use |text_direction| for displaying
285 autofill::FormFieldData, /* the user name field */ 288 // text.
286 autofill::PasswordFormFillData /* password pairings */) 289 IPC_MESSAGE_ROUTED5(AutofillHostMsg_ShowPasswordSuggestions,
287 290 int /* key */,
288 // Instruct the browser to show a popup with suggestions for the form field. 291 base::i18n::TextDirection /*text_direction */,
289 IPC_MESSAGE_ROUTED4(AutofillHostMsg_ShowPasswordSuggestions,
290 autofill::FormFieldData /* the form field */,
291 base::string16 /* username typed by user */, 292 base::string16 /* username typed by user */,
292 bool /* show all suggestions */, 293 bool /* show all suggestions */,
293 gfx::RectF /* input field bounds, window-relative */) 294 gfx::RectF /* input field bounds, window-relative */)
294 295
295 // Inform browser of data list values for the curent field. 296 // Inform browser of data list values for the curent field.
296 IPC_MESSAGE_ROUTED2(AutofillHostMsg_SetDataList, 297 IPC_MESSAGE_ROUTED2(AutofillHostMsg_SetDataList,
297 std::vector<base::string16> /* values */, 298 std::vector<base::string16> /* values */,
298 std::vector<base::string16> /* labels */) 299 std::vector<base::string16> /* labels */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698