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

Unified Diff: third_party/closure_compiler/externs/passwords_private.js

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
« no previous file with comments | « extensions/browser/extension_function_histogram_value.h ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/closure_compiler/externs/passwords_private.js
diff --git a/third_party/closure_compiler/externs/passwords_private.js b/third_party/closure_compiler/externs/passwords_private.js
index b320d8a02ea8ed9bc435f2d2633bca2c5d29d6cd..ae04ea30136517c53c7e6d63dc90a8ffbbab1b1a 100644
--- a/third_party/closure_compiler/externs/passwords_private.js
+++ b/third_party/closure_compiler/externs/passwords_private.js
@@ -67,7 +67,8 @@ chrome.passwordsPrivate.removePasswordException = function(exceptionUrl) {};
* Returns the plaintext password corresponding to |loginPair|. Note that on
* 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.
+ * onPlaintextPasswordRetrieved event. TODO(hcarmona): Investigate using a
+ * callback for consistency.
* @param {!chrome.passwordsPrivate.LoginPair} loginPair The LoginPair
* corresponding to the entry whose password is to be returned.
* @see https://developer.chrome.com/extensions/passwordsPrivate#method-requestPlaintextPassword
@@ -75,6 +76,22 @@ chrome.passwordsPrivate.removePasswordException = function(exceptionUrl) {};
chrome.passwordsPrivate.requestPlaintextPassword = function(loginPair) {};
/**
+ * Returns the list of saved passwords.
+ * @param {function(!Array<!chrome.passwordsPrivate.PasswordUiEntry>):void}
+ * callback Called with the list of saved passwords.
+ * @see https://developer.chrome.com/extensions/passwordsPrivate#method-getSavedPasswordList
+ */
+chrome.passwordsPrivate.getSavedPasswordList = function(callback) {};
+
+/**
+ * Returns the list of password exceptions.
+ * @param {function(!Array<string>):void} callback Called with the list of
+ * password exceptions.
+ * @see https://developer.chrome.com/extensions/passwordsPrivate#method-getPasswordExceptionList
+ */
+chrome.passwordsPrivate.getPasswordExceptionList = function(callback) {};
+
+/**
* Fired when the saved passwords list has changed, meaning that an entry has
* been added or removed. Note that this event fires as soon as a listener is
* added.
« no previous file with comments | « extensions/browser/extension_function_histogram_value.h ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698