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

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

Issue 1028163002: Processing USERNAME reply from Autofill server in Password Manager (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Small nit Created 5 years, 8 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 #include <vector> 8 #include <vector>
9 9
10 #include "base/strings/string16.h" 10 #include "base/strings/string16.h"
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 95
96 IPC_STRUCT_TRAITS_BEGIN(autofill::PasswordAndRealm) 96 IPC_STRUCT_TRAITS_BEGIN(autofill::PasswordAndRealm)
97 IPC_STRUCT_TRAITS_MEMBER(password) 97 IPC_STRUCT_TRAITS_MEMBER(password)
98 IPC_STRUCT_TRAITS_MEMBER(realm) 98 IPC_STRUCT_TRAITS_MEMBER(realm)
99 IPC_STRUCT_TRAITS_END() 99 IPC_STRUCT_TRAITS_END()
100 100
101 IPC_ENUM_TRAITS_MAX_VALUE( 101 IPC_ENUM_TRAITS_MAX_VALUE(
102 blink::WebFormElement::AutocompleteResult, 102 blink::WebFormElement::AutocompleteResult,
103 blink::WebFormElement::AutocompleteResultErrorInvalid) 103 blink::WebFormElement::AutocompleteResultErrorInvalid)
104 104
105 typedef std::map<autofill::FormData, autofill::FormFieldData>
106 FormDataFieldDataMap;
107
105 // Autofill messages sent from the browser to the renderer. 108 // Autofill messages sent from the browser to the renderer.
106 109
107 // Tells the render frame that a user gesture was observed somewhere in the tab 110 // Tells the render frame that a user gesture was observed somewhere in the tab
108 // (including in a different frame). 111 // (including in a different frame).
109 IPC_MESSAGE_ROUTED0(AutofillMsg_FirstUserGestureObservedInTab) 112 IPC_MESSAGE_ROUTED0(AutofillMsg_FirstUserGestureObservedInTab)
110 113
111 // Instructs the renderer to immediately return an IPC acknowledging the ping. 114 // Instructs the renderer to immediately return an IPC acknowledging the ping.
112 // This is used to correctly sequence events, since IPCs are guaranteed to be 115 // This is used to correctly sequence events, since IPCs are guaranteed to be
113 // processed in order. 116 // processed in order.
114 IPC_MESSAGE_ROUTED0(AutofillMsg_Ping) 117 IPC_MESSAGE_ROUTED0(AutofillMsg_Ping)
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 IPC_MESSAGE_ROUTED3(AutofillMsg_RequestAutocompleteResult, 191 IPC_MESSAGE_ROUTED3(AutofillMsg_RequestAutocompleteResult,
189 blink::WebFormElement::AutocompleteResult /* result */, 192 blink::WebFormElement::AutocompleteResult /* result */,
190 base::string16 /* message */, 193 base::string16 /* message */,
191 autofill::FormData /* form_data */) 194 autofill::FormData /* form_data */)
192 195
193 // Sent when Autofill manager gets the query response from the Autofill server 196 // Sent when Autofill manager gets the query response from the Autofill server
194 // and there are fields classified as ACCOUNT_CREATION_PASSWORD in the response. 197 // and there are fields classified as ACCOUNT_CREATION_PASSWORD in the response.
195 IPC_MESSAGE_ROUTED1(AutofillMsg_AccountCreationFormsDetected, 198 IPC_MESSAGE_ROUTED1(AutofillMsg_AccountCreationFormsDetected,
196 std::vector<autofill::FormData> /* forms */) 199 std::vector<autofill::FormData> /* forms */)
197 200
201 // Sent when Autofill manager gets the query response from the Autofill server
202 // which contains information about username fields for some forms.
203 // |predictions| maps forms to their username fields.
204 IPC_MESSAGE_ROUTED1(AutofillMsg_AutofillUsernameDataReceived,
205 FormDataFieldDataMap /* predictions */)
206
198 // Autofill messages sent from the renderer to the browser. 207 // Autofill messages sent from the renderer to the browser.
199 208
200 // TODO(creis): check in the browser that the renderer actually has permission 209 // TODO(creis): check in the browser that the renderer actually has permission
201 // for the URL to avoid compromised renderers talking to the browser. 210 // for the URL to avoid compromised renderers talking to the browser.
202 211
203 // Notification that there has been a user gesture. 212 // Notification that there has been a user gesture.
204 IPC_MESSAGE_ROUTED0(AutofillHostMsg_FirstUserGestureObserved) 213 IPC_MESSAGE_ROUTED0(AutofillHostMsg_FirstUserGestureObserved)
205 214
206 // Notification that forms have been seen that are candidates for 215 // Notification that forms have been seen that are candidates for
207 // filling/submitting by the AutofillManager. 216 // filling/submitting by the AutofillManager.
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
311 int /* key */, 320 int /* key */,
312 base::i18n::TextDirection /* text_direction */, 321 base::i18n::TextDirection /* text_direction */,
313 base::string16 /* username typed by user */, 322 base::string16 /* username typed by user */,
314 int /* options bitmask of autofill::ShowPasswordSuggestionsOptions */, 323 int /* options bitmask of autofill::ShowPasswordSuggestionsOptions */,
315 gfx::RectF /* input field bounds, window-relative */) 324 gfx::RectF /* input field bounds, window-relative */)
316 325
317 // Inform browser of data list values for the curent field. 326 // Inform browser of data list values for the curent field.
318 IPC_MESSAGE_ROUTED2(AutofillHostMsg_SetDataList, 327 IPC_MESSAGE_ROUTED2(AutofillHostMsg_SetDataList,
319 std::vector<base::string16> /* values */, 328 std::vector<base::string16> /* values */,
320 std::vector<base::string16> /* labels */) 329 std::vector<base::string16> /* labels */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698