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

Unified Diff: components/autofill/content/public/interfaces/autofill_agent.mojom

Issue 2216463002: [Autofill] Migrate ContentPasswordManagerDriver<-->Password{Autofill,Generation}Agent IPCs to mojo. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address nit from Vaclav Created 4 years, 4 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/public/interfaces/autofill_agent.mojom
diff --git a/components/autofill/content/public/interfaces/autofill_agent.mojom b/components/autofill/content/public/interfaces/autofill_agent.mojom
index c0b6e3ed343bd036a8d03d736a0ea448043410d2..5e99165473eba858f9991024cd5531a7543769c6 100644
--- a/components/autofill/content/public/interfaces/autofill_agent.mojom
+++ b/components/autofill/content/public/interfaces/autofill_agent.mojom
@@ -56,3 +56,52 @@ interface AutofillAgent {
ShowInitialPasswordAccountSuggestions(int32 key,
PasswordFormFillData form_data);
};
+
+// There is one instance of this interface per render frame in the render
+// process.
+interface PasswordAutofillAgent {
+ // Fills a password form and prepare field autocomplete for multiple
+ // matching logins. Lets the renderer know if it should disable the popup
+ // because the browser process will own the popup UI. |key| serves for
+ // identifying the fill form data in subsequent
+ // ShowPasswordSuggestions messages to the browser.
+ FillPasswordForm(int32 key, PasswordFormFillData form_data);
+
+ // Notification to start (|active| == true) or stop (|active| == false)
+ // logging the decisions made about saving the password.
+ SetLoggingState(bool active);
+
+ // Sent when Autofill manager gets the query response from the Autofill server
+ // which contains information about username and password for some forms.
+ // |predictions| maps forms to their username fields.
+ AutofillUsernameAndPasswordDataReceived(FormsPredictionsMap predictions);
+
+ // Tells the renderer to find the focused password form (assuming it exists).
+ // Renderer is expected to return the found password form. If no password form
+ // is focused, the response will contain an empty |autofill::PasswordForm|.
+ FindFocusedPasswordForm() => (PasswordForm form);
+};
+
+// There is one instance of this interface per render frame in the render
+// process.
+interface PasswordGenerationAgent {
+ // Tells the renderer to populate the correct password fields with this
+ // generated password.
+ GeneratedPasswordAccepted(mojo.common.mojom.String16 generated_password);
+
+ // Tells the renderer to find a focused element, and if it is a password field
+ // eligible for generation then to trigger generation by responding to the
+ // browser with the message |ShowPasswordGenerationPopup|.
+ UserTriggeredGeneratePassword();
+
+ // 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".
+ FormNotBlacklisted(PasswordForm form);
+
+ // Sent when Autofill manager gets the query response from the Autofill server
+ // and there are fields classified for password generation in the response.
+ FoundFormsEligibleForGeneration(array<PasswordFormGenerationData> forms);
+
+ // Tells the renderer to enable the form classifier.
+ AllowToRunFormClassifier();
+};
« no previous file with comments | « components/autofill/content/public/cpp/DEPS ('k') | components/autofill/content/public/interfaces/autofill_driver.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698