| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 module autofill.mojom; | 5 module autofill.mojom; |
| 6 | 6 |
| 7 import "components/autofill/content/common/autofill_types.mojom"; | 7 import "components/autofill/content/common/autofill_types.mojom"; |
| 8 import "mojo/common/string16.mojom"; | 8 import "mojo/common/string16.mojom"; |
| 9 import "mojo/common/text_direction.mojom"; | 9 import "mojo/common/text_direction.mojom"; |
| 10 import "mojo/common/time.mojom"; | 10 import "mojo/common/time.mojom"; |
| 11 import "ui/gfx/geometry/mojo/geometry.mojom"; | 11 import "ui/gfx/geometry/mojo/geometry.mojom"; |
| 12 import "url/mojo/url.mojom"; |
| 12 | 13 |
| 13 // There is one instance of this interface per render frame host in the browser | 14 // There is one instance of this interface per render frame host in the browser |
| 14 // process. | 15 // process. |
| 15 interface AutofillDriver { | 16 interface AutofillDriver { |
| 16 // Notification that forms have been seen that are candidates for | 17 // Notification that forms have been seen that are candidates for |
| 17 // filling/submitting by the AutofillManager. | 18 // filling/submitting by the AutofillManager. |
| 18 FormsSeen(array<FormData> forms, mojo.common.mojom.TimeTicks timestamp); | 19 FormsSeen(array<FormData> forms, mojo.common.mojom.TimeTicks timestamp); |
| 19 | 20 |
| 20 // Notification that a form is about to be submitted. The user hit the button. | 21 // Notification that a form is about to be submitted. The user hit the button. |
| 21 WillSubmitForm(FormData form, mojo.common.mojom.TimeTicks timestamp); | 22 WillSubmitForm(FormData form, mojo.common.mojom.TimeTicks timestamp); |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 PresaveGeneratedPassword(PasswordForm password_form); | 101 PresaveGeneratedPassword(PasswordForm password_form); |
| 101 | 102 |
| 102 // Instructs the browser that form no longer contains a generated password and | 103 // Instructs the browser that form no longer contains a generated password and |
| 103 // the presaved form should be removed. | 104 // the presaved form should be removed. |
| 104 PasswordNoLongerGenerated(PasswordForm password_form); | 105 PasswordNoLongerGenerated(PasswordForm password_form); |
| 105 | 106 |
| 106 // Sends the outcome of HTML parsing based form classifier that detects the | 107 // Sends the outcome of HTML parsing based form classifier that detects the |
| 107 // forms where password generation should be available. | 108 // forms where password generation should be available. |
| 108 SaveGenerationFieldDetectedByClassifier( | 109 SaveGenerationFieldDetectedByClassifier( |
| 109 PasswordForm password_form, mojo.common.mojom.String16 generation_field); | 110 PasswordForm password_form, mojo.common.mojom.String16 generation_field); |
| 111 |
| 112 // Checks the safe browsing reputation of the website where the focused |
| 113 // username/password field is on. |
| 114 CheckSafeBrowsingReputation( |
| 115 url.mojom.Url form_action, url.mojom.Url frame_url); |
| 110 }; | 116 }; |
| 111 | 117 |
| 112 // There is one instance of this interface per web contents in the browser | 118 // There is one instance of this interface per web contents in the browser |
| 113 // process. | 119 // process. |
| 114 interface PasswordManagerClient { | 120 interface PasswordManagerClient { |
| 115 // Instructs the browser that generation is available for this particular | 121 // Instructs the browser that generation is available for this particular |
| 116 // form. This is used for UMA stats. | 122 // form. This is used for UMA stats. |
| 117 GenerationAvailableForForm(PasswordForm password_form); | 123 GenerationAvailableForForm(PasswordForm password_form); |
| 118 | 124 |
| 119 // Instructs the browser to show the password generation popup at the | 125 // Instructs the browser to show the password generation popup at the |
| (...skipping 10 matching lines...) Expand all Loading... |
| 130 PasswordForm password_form); | 136 PasswordForm password_form); |
| 131 | 137 |
| 132 // Instructs the browser to show the popup for editing a generated password. | 138 // Instructs the browser to show the popup for editing a generated password. |
| 133 // The location should be specified in the renderers coordinate system. Form | 139 // The location should be specified in the renderers coordinate system. Form |
| 134 // is the form associated with the password field. | 140 // is the form associated with the password field. |
| 135 ShowPasswordEditingPopup(gfx.mojom.RectF bounds, PasswordForm password_form); | 141 ShowPasswordEditingPopup(gfx.mojom.RectF bounds, PasswordForm password_form); |
| 136 | 142 |
| 137 // Instructs the browser to hide any password generation popups. | 143 // Instructs the browser to hide any password generation popups. |
| 138 HidePasswordGenerationPopup(); | 144 HidePasswordGenerationPopup(); |
| 139 }; | 145 }; |
| OLD | NEW |