| Index: chrome/common/extensions/api/passwords_private.idl
|
| diff --git a/chrome/common/extensions/api/passwords_private.idl b/chrome/common/extensions/api/passwords_private.idl
|
| index 1b1d0413119f3cc7024cac32f34689933874576f..ce993227f4afc3d8dc1e204b0611bf919dac40a7 100644
|
| --- a/chrome/common/extensions/api/passwords_private.idl
|
| +++ b/chrome/common/extensions/api/passwords_private.idl
|
| @@ -39,6 +39,9 @@ namespace passwordsPrivate {
|
| DOMString plaintextPassword;
|
| };
|
|
|
| + callback PasswordListCallback = void(PasswordUiEntry[] entries);
|
| + callback ExceptionListCallback = void(DOMString[] exceptions);
|
| +
|
| interface Functions {
|
| // Removes the saved password corresponding to |loginPair|. If no saved
|
| // password for this pair exists, this function is a no-op.
|
| @@ -56,10 +59,19 @@ namespace passwordsPrivate {
|
| // some operating systems, this call may result in an OS-level
|
| // reauthentication. Once the password has been fetched, it will be returned
|
| // via the onPlaintextPasswordRetrieved event.
|
| + // TODO(hcarmona): Investigate using a callback for consistency.
|
| //
|
| // |loginPair|: The LoginPair corresponding to the entry whose password
|
| // is to be returned.
|
| static void requestPlaintextPassword(LoginPair loginPair);
|
| +
|
| + // Returns the list of saved passwords.
|
| + // |callback|: Called with the list of saved passwords.
|
| + static void getSavedPasswordList(PasswordListCallback callback);
|
| +
|
| + // Returns the list of password exceptions.
|
| + // |callback|: Called with the list of password exceptions.
|
| + static void getPasswordExceptionList(ExceptionListCallback callback);
|
| };
|
|
|
| interface Events {
|
|
|