Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2456)

Unified Diff: chrome/common/extensions/api/passwords_private.idl

Issue 1892613006: Add functions to the passwords private api that update the lists. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nits Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 {

Powered by Google App Engine
This is Rietveld 408576698