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/public/interfaces/autofill_types.mojom"; | 7 import "components/autofill/content/public/interfaces/autofill_types.mojom"; |
8 import "mojo/common/common_custom_types.mojom"; | 8 import "mojo/common/common_custom_types.mojom"; |
9 | 9 |
10 // There is one instance of this interface per render frame in the render | 10 // There is one instance of this interface per render frame in the render |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 // values. | 49 // values. |
50 PreviewPasswordSuggestion(mojo.common.mojom.String16 username, | 50 PreviewPasswordSuggestion(mojo.common.mojom.String16 username, |
51 mojo.common.mojom.String16 password); | 51 mojo.common.mojom.String16 password); |
52 | 52 |
53 // Sent when a password form is initially detected and suggestions should be | 53 // Sent when a password form is initially detected and suggestions should be |
54 // shown. Used by the fill-on-select experiment. | 54 // shown. Used by the fill-on-select experiment. |
55 // |key| is the unique id associated with the password form fill data. | 55 // |key| is the unique id associated with the password form fill data. |
56 ShowInitialPasswordAccountSuggestions(int32 key, | 56 ShowInitialPasswordAccountSuggestions(int32 key, |
57 PasswordFormFillData form_data); | 57 PasswordFormFillData form_data); |
58 }; | 58 }; |
| 59 |
| 60 // There is one instance of this interface per render frame in the render |
| 61 // process. |
| 62 interface PasswordAutofillAgent { |
| 63 // Fills a password form and prepare field autocomplete for multiple |
| 64 // matching logins. Lets the renderer know if it should disable the popup |
| 65 // because the browser process will own the popup UI. |key| serves for |
| 66 // identifying the fill form data in subsequent |
| 67 // ShowPasswordSuggestions messages to the browser. |
| 68 FillPasswordForm(int32 key, PasswordFormFillData form_data); |
| 69 |
| 70 // Notification to start (|active| == true) or stop (|active| == false) |
| 71 // logging the decisions made about saving the password. |
| 72 SetLoggingState(bool active); |
| 73 |
| 74 // Sent when Autofill manager gets the query response from the Autofill server |
| 75 // which contains information about username and password for some forms. |
| 76 // |predictions| maps forms to their username fields. |
| 77 AutofillUsernameAndPasswordDataReceived(FormsPredictionsMap predictions); |
| 78 |
| 79 // Tells the renderer to find the focused password form (assuming it exists). |
| 80 // Renderer is expected to return the found password form. If no password form |
| 81 // is focused, the response will contain an empty |autofill::PasswordForm|. |
| 82 FindFocusedPasswordForm() => (PasswordForm form); |
| 83 }; |
| 84 |
| 85 // There is one instance of this interface per render frame in the render |
| 86 // process. |
| 87 interface PasswordGenerationAgent { |
| 88 // Tells the renderer to populate the correct password fields with this |
| 89 // generated password. |
| 90 GeneratedPasswordAccepted(mojo.common.mojom.String16 generated_password); |
| 91 |
| 92 // Tells the renderer to find a focused element, and if it is a password field |
| 93 // eligible for generation then to trigger generation by responding to the |
| 94 // browser with the message |ShowPasswordGenerationPopup|. |
| 95 UserTriggeredGeneratePassword(); |
| 96 |
| 97 // Tells the renderer that this password form is not blacklisted. A form can |
| 98 // be blacklisted if a user chooses "never save passwords for this site". |
| 99 FormNotBlacklisted(PasswordForm form); |
| 100 |
| 101 // Sent when Autofill manager gets the query response from the Autofill server |
| 102 // and there are fields classified for password generation in the response. |
| 103 FoundFormsEligibleForGeneration(array<PasswordFormGenerationData> forms); |
| 104 |
| 105 // Tells the renderer to enable the form classifier. |
| 106 AllowToRunFormClassifier(); |
| 107 }; |
OLD | NEW |