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

Side by Side 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 unified diff | Download patch
OLDNEW
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 // This file was generated by: 5 // This file was generated by:
6 // tools/json_schema_compiler/compiler.py. 6 // tools/json_schema_compiler/compiler.py.
7 // NOTE: The format of types has changed. 'FooType' is now 7 // NOTE: The format of types has changed. 'FooType' is now
8 // 'chrome.passwordsPrivate.FooType'. 8 // 'chrome.passwordsPrivate.FooType'.
9 // Please run the closure compiler before committing changes. 9 // Please run the closure compiler before committing changes.
10 // See https://chromium.googlesource.com/chromium/src/+/master/docs/closure_comp ilation.md 10 // See https://chromium.googlesource.com/chromium/src/+/master/docs/closure_comp ilation.md
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 * @param {string} exceptionUrl The URL corresponding to the exception to 60 * @param {string} exceptionUrl The URL corresponding to the exception to
61 * remove. 61 * remove.
62 * @see https://developer.chrome.com/extensions/passwordsPrivate#method-removePa sswordException 62 * @see https://developer.chrome.com/extensions/passwordsPrivate#method-removePa sswordException
63 */ 63 */
64 chrome.passwordsPrivate.removePasswordException = function(exceptionUrl) {}; 64 chrome.passwordsPrivate.removePasswordException = function(exceptionUrl) {};
65 65
66 /** 66 /**
67 * Returns the plaintext password corresponding to |loginPair|. Note that on 67 * Returns the plaintext password corresponding to |loginPair|. Note that on
68 * some operating systems, this call may result in an OS-level reauthentication. 68 * some operating systems, this call may result in an OS-level reauthentication.
69 * Once the password has been fetched, it will be returned via the 69 * Once the password has been fetched, it will be returned via the
70 * onPlaintextPasswordRetrieved event. 70 * onPlaintextPasswordRetrieved event. TODO(hcarmona): Investigate using a
71 * callback for consistency.
71 * @param {!chrome.passwordsPrivate.LoginPair} loginPair The LoginPair 72 * @param {!chrome.passwordsPrivate.LoginPair} loginPair The LoginPair
72 * corresponding to the entry whose password is to be returned. 73 * corresponding to the entry whose password is to be returned.
73 * @see https://developer.chrome.com/extensions/passwordsPrivate#method-requestP laintextPassword 74 * @see https://developer.chrome.com/extensions/passwordsPrivate#method-requestP laintextPassword
74 */ 75 */
75 chrome.passwordsPrivate.requestPlaintextPassword = function(loginPair) {}; 76 chrome.passwordsPrivate.requestPlaintextPassword = function(loginPair) {};
76 77
77 /** 78 /**
79 * Returns the list of saved passwords.
80 * @param {function(!Array<!chrome.passwordsPrivate.PasswordUiEntry>):void}
81 * callback Called with the list of saved passwords.
82 * @see https://developer.chrome.com/extensions/passwordsPrivate#method-getSaved PasswordList
83 */
84 chrome.passwordsPrivate.getSavedPasswordList = function(callback) {};
85
86 /**
87 * Returns the list of password exceptions.
88 * @param {function(!Array<string>):void} callback Called with the list of
89 * password exceptions.
90 * @see https://developer.chrome.com/extensions/passwordsPrivate#method-getPassw ordExceptionList
91 */
92 chrome.passwordsPrivate.getPasswordExceptionList = function(callback) {};
93
94 /**
78 * Fired when the saved passwords list has changed, meaning that an entry has 95 * Fired when the saved passwords list has changed, meaning that an entry has
79 * been added or removed. Note that this event fires as soon as a listener is 96 * been added or removed. Note that this event fires as soon as a listener is
80 * added. 97 * added.
81 * @type {!ChromeEvent} 98 * @type {!ChromeEvent}
82 * @see https://developer.chrome.com/extensions/passwordsPrivate#event-onSavedPa sswordsListChanged 99 * @see https://developer.chrome.com/extensions/passwordsPrivate#event-onSavedPa sswordsListChanged
83 */ 100 */
84 chrome.passwordsPrivate.onSavedPasswordsListChanged; 101 chrome.passwordsPrivate.onSavedPasswordsListChanged;
85 102
86 /** 103 /**
87 * Fired when the password exceptions list has changed, meaning that an entry 104 * Fired when the password exceptions list has changed, meaning that an entry
88 * has been added or removed. Note that this event fires as soon as a listener 105 * has been added or removed. Note that this event fires as soon as a listener
89 * is added. 106 * is added.
90 * @type {!ChromeEvent} 107 * @type {!ChromeEvent}
91 * @see https://developer.chrome.com/extensions/passwordsPrivate#event-onPasswor dExceptionsListChanged 108 * @see https://developer.chrome.com/extensions/passwordsPrivate#event-onPasswor dExceptionsListChanged
92 */ 109 */
93 chrome.passwordsPrivate.onPasswordExceptionsListChanged; 110 chrome.passwordsPrivate.onPasswordExceptionsListChanged;
94 111
95 /** 112 /**
96 * Fired when a plaintext password has been fetched in response to a call to 113 * Fired when a plaintext password has been fetched in response to a call to
97 * chrome.passwordsPrivate.requestPlaintextPassword(). 114 * chrome.passwordsPrivate.requestPlaintextPassword().
98 * @type {!ChromeEvent} 115 * @type {!ChromeEvent}
99 * @see https://developer.chrome.com/extensions/passwordsPrivate#event-onPlainte xtPasswordRetrieved 116 * @see https://developer.chrome.com/extensions/passwordsPrivate#event-onPlainte xtPasswordRetrieved
100 */ 117 */
101 chrome.passwordsPrivate.onPlaintextPasswordRetrieved; 118 chrome.passwordsPrivate.onPlaintextPasswordRetrieved;
OLDNEW
« 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