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); |
+}; |