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

Unified 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: Addressed many reviewer comments Created 5 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 side-by-side diff with in-line comments
Download patch
Index: components/autofill/content/common/autofill_messages.h
diff --git a/components/autofill/content/common/autofill_messages.h b/components/autofill/content/common/autofill_messages.h
index 078ff83427e4180bbe7fb03dd7fcedfae5f70d44..d3e7f52187c196f2c8a763feeaf5b9df56cd3ae4 100644
--- a/components/autofill/content/common/autofill_messages.h
+++ b/components/autofill/content/common/autofill_messages.h
@@ -102,6 +102,9 @@ IPC_ENUM_TRAITS_MAX_VALUE(
blink::WebFormElement::AutocompleteResult,
blink::WebFormElement::AutocompleteResultErrorInvalid)
+typedef std::map<autofill::FormData, autofill::FormFieldData>
+ FormDataFieldDataMap;
Ilya Sherman 2015/03/26 00:30:04 I'm really not thrilled about defining a typedef i
dvadym 2015/03/26 12:29:12 I can't do it directly, because comma after FormDa
+
// Autofill messages sent from the browser to the renderer.
// Tells the render frame that a user gesture was observed somewhere in the tab
@@ -195,6 +198,12 @@ IPC_MESSAGE_ROUTED3(AutofillMsg_RequestAutocompleteResult,
IPC_MESSAGE_ROUTED1(AutofillMsg_AccountCreationFormsDetected,
std::vector<autofill::FormData> /* forms */)
+// Sent when Autofill manager gets the query response from the Autofill server
+// which contains information about username fields for some forms.
+// |predictions| maps forms to their username fields.
+IPC_MESSAGE_ROUTED1(AutofillMsg_AutofillUsernameDataReceived,
+ FormDataFieldDataMap /* predictions */)
Ilya Sherman 2015/03/26 00:30:04 Why is an IPC message needed? It seems like this
dvadym 2015/03/26 12:29:12 I've tried to explain it in separate message.
+
// Autofill messages sent from the renderer to the browser.
// TODO(creis): check in the browser that the renderer actually has permission

Powered by Google App Engine
This is Rietveld 408576698