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

Unified Diff: components/autofill/content/common/autofill_messages.h

Issue 1159143002: Add a basic functionality to the force-saving menu item. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added stub methods. Created 5 years, 7 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 ad5b5b7f1615318b164f32800a5d55a9ec90a5eb..2c816370a171cda9e612dd12d0b5f37bd76865b4 100644
--- a/components/autofill/content/common/autofill_messages.h
+++ b/components/autofill/content/common/autofill_messages.h
@@ -192,6 +192,11 @@ IPC_MESSAGE_ROUTED2(AutofillMsg_PreviewPasswordSuggestion,
base::string16 /* username */,
base::string16 /* password */)
+// Tells the renderer to find the focused password form (assuming it exists).
+// Renderer is expected to respond with the message
+// |AutofillHostMsg_FocusedPasswordFormFound|.
+IPC_MESSAGE_ROUTED0(AutofillMsg_FindFocusedPasswordForm)
+
// Tells the renderer that this password form is not blacklisted. A form can
// be blacklisted if a user chooses "never save passwords for this site".
IPC_MESSAGE_ROUTED1(AutofillMsg_FormNotBlacklisted,
@@ -343,3 +348,9 @@ IPC_MESSAGE_ROUTED5(
IPC_MESSAGE_ROUTED2(AutofillHostMsg_SetDataList,
std::vector<base::string16> /* values */,
std::vector<base::string16> /* labels */)
+
+// Inform the browser which password form is currently focused, as a response
+// to the |AutofillMsg_FindFocusedPasswordForm| request. If no password form
+// is focused, the response will contain an empty |autofill::PasswordForm|.
+IPC_MESSAGE_ROUTED1(AutofillHostMsg_FocusedPasswordFormFound,
+ autofill::PasswordForm)

Powered by Google App Engine
This is Rietveld 408576698