diff options
Diffstat (limited to 'chromium/chrome/common/extensions/api/passwords_private.idl')
-rw-r--r-- | chromium/chrome/common/extensions/api/passwords_private.idl | 21 |
1 files changed, 17 insertions, 4 deletions
diff --git a/chromium/chrome/common/extensions/api/passwords_private.idl b/chromium/chrome/common/extensions/api/passwords_private.idl index aaf8b7b0c01..bb82a16a54b 100644 --- a/chromium/chrome/common/extensions/api/passwords_private.idl +++ b/chromium/chrome/common/extensions/api/passwords_private.idl @@ -89,6 +89,9 @@ namespace passwordsPrivate { // If true, the entry came from the Gaia-account-scoped password store // rather than from the profile-scoped one. boolean fromAccountStore; + + // The value of the attached note. + DOMString passwordNote; }; dictionary ExceptionEntry { @@ -210,6 +213,18 @@ namespace passwordsPrivate { boolean useAccountStore; }; + // Object describing the changes for a password entry. + dictionary ChangeSavedPasswordParams { + // The new username of the password. + DOMString username; + + // The password value to be saved. + DOMString password; + + // The note attached to the password. Omitting the note will clear it. + DOMString? note; + }; + callback PlaintextPasswordCallback = void(DOMString password); callback PasswordListCallback = void(PasswordUiEntry[] entries); callback ExceptionListCallback = void(ExceptionEntry[] exceptions); @@ -234,13 +249,11 @@ namespace passwordsPrivate { // the password for accountId and deviceId. Invokes |callback| or raises an // error depending on whether the operation succeeded. // |ids|: The ids for the password entry being updated. - // |new_username|: The new username. - // |new_password|: The new password. + // |params|: The dictionary which holds the changed parameters. // |callback|: The callback that gets invoked in the end. [supportsPromises] static void changeSavedPassword( long[] ids, - DOMString new_username, - DOMString new_password, + ChangeSavedPasswordParams params, optional VoidCallback callback); // Removes the saved password corresponding to |id|. If no saved password |