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

Unified Diff: components/autofill/content/public/interfaces/autofill_driver.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_driver.mojom
diff --git a/components/autofill/content/public/interfaces/autofill_driver.mojom b/components/autofill/content/public/interfaces/autofill_driver.mojom
index c32798abbe4d82b2b214b9effb08537eb755aa18..321fd9061a4883d2200f65087bf907c4421440c6 100644
--- a/components/autofill/content/public/interfaces/autofill_driver.mojom
+++ b/components/autofill/content/public/interfaces/autofill_driver.mojom
@@ -58,3 +58,55 @@ interface AutofillDriver {
SetDataList(array<mojo.common.mojom.String16> values,
array<mojo.common.mojom.String16> labels);
};
+
+// There is one instance of this interface per render frame host in the browser
+// process.
+interface PasswordManagerDriver {
+ // A ping to the browser that PasswordAutofillAgent was constructed. As a
+ // consequence, the browser sends SetLoggingState with the current
+ // state of the logging activity.
+ PasswordAutofillAgentConstructed();
+
+ // Notification that password forms have been seen that are candidates for
+ // filling/submitting by the password manager.
+ PasswordFormsParsed(array<PasswordForm> forms);
+
+ // Notification that initial layout has occurred and the following password
+ // forms are visible on the page (e.g. not set to display:none.), and whether
+ // all frames in the page have been rendered.
+ PasswordFormsRendered(array<PasswordForm> visible_forms,
+ bool did_stop_loading);
+
+ // Notification that this password form was submitted by the user.
+ PasswordFormSubmitted(PasswordForm password_form);
+
+ // Notification that in-page navigation happened and at this moment we have
+ // filled password form. We use this as a signal for successful login.
+ InPageNavigation(PasswordForm password_form);
+
+ // Sends |log| to browser for displaying to the user. Only strings passed as
+ // an argument to methods overriding SavePasswordProgressLogger::SendLog may
+ // become |log|, because those are guaranteed to be sanitized.
+ // Never pass a free-form string as |log|.
+ RecordSavePasswordProgress(string log);
+
+ // Instructs the browser to show a popup with suggestions filled from data
+ // associated with |key|. The popup will use |text_direction| for displaying
+ // text.
+ ShowPasswordSuggestions(int32 key, TextDirection text_direction,
+ mojo.common.mojom.String16 typed_username,
+ int32 options, gfx.mojom.RectF bounds);
+
+
+ // Instructs the browser to presave the form with generated password.
+ PresaveGeneratedPassword(PasswordForm password_form);
+
+ // Instructs the browser that form no longer contains a generated password and
+ // the presaved form should be removed.
+ PasswordNoLongerGenerated(PasswordForm password_form);
+
+ // Sends the outcome of HTML parsing based form classifier that detects the
+ // forms where password generation should be available.
+ SaveGenerationFieldDetectedByClassifier(
+ PasswordForm password_form, mojo.common.mojom.String16 generation_field);
+};
« no previous file with comments | « components/autofill/content/public/interfaces/autofill_agent.mojom ('k') | components/autofill/content/renderer/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698