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

Side by Side Diff: third_party/closure_compiler/externs/passwords_private.js

Issue 1142693003: Implement the chrome.passwordsPrivate API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: stevenjb comment. Created 5 years, 6 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 /** @fileoverview Externs generated from namespace: passwordsPrivate */ 5 /** @fileoverview Externs generated from namespace: passwordsPrivate */
6 6
7 /** 7 /**
8 * @const 8 * @const
9 */ 9 */
10 chrome.passwordsPrivate = {}; 10 chrome.passwordsPrivate = {};
(...skipping 11 matching lines...) Expand all
22 * @typedef {{ 22 * @typedef {{
23 * loginPair: LoginPair, 23 * loginPair: LoginPair,
24 * numCharactersInPassword: number, 24 * numCharactersInPassword: number,
25 * federationText: (string|undefined) 25 * federationText: (string|undefined)
26 * }} 26 * }}
27 * @see https://developer.chrome.com/extensions/passwordsPrivate#type-PasswordUi Entry 27 * @see https://developer.chrome.com/extensions/passwordsPrivate#type-PasswordUi Entry
28 */ 28 */
29 var PasswordUiEntry; 29 var PasswordUiEntry;
30 30
31 /** 31 /**
32 * @typedef {{
33 * loginPair: LoginPair,
34 * plaintextPassword: string
35 * }}
36 * @see https://developer.chrome.com/extensions/passwordsPrivate#type-PlaintextP asswordEventParameters
37 */
38 var PlaintextPasswordEventParameters;
39
40 /**
32 * Determines whether account's passwords can be managed via 41 * Determines whether account's passwords can be managed via
33 * https://passwords.google.com/settings/passwords. 42 * https://passwords.google.com/settings/passwords.
34 * @param {function(boolean):void} callback Callback which will be passed the 43 * @param {function(boolean):void} callback Callback which will be passed the
35 * boolean of whether the account can be managed. 44 * boolean of whether the account can be managed.
36 * @see https://developer.chrome.com/extensions/passwordsPrivate#method-canPassw ordAccountBeManaged 45 * @see https://developer.chrome.com/extensions/passwordsPrivate#method-canPassw ordAccountBeManaged
37 */ 46 */
38 chrome.passwordsPrivate.canPasswordAccountBeManaged = function(callback) {}; 47 chrome.passwordsPrivate.canPasswordAccountBeManaged = function(callback) {};
39 48
40 /** 49 /**
41 * Removes the saved password corresponding to |loginPair|. If no saved password 50 * Removes the saved password corresponding to |loginPair|. If no saved password
42 * for this pair exists, this function is a no-op. 51 * for this pair exists, this function is a no-op.
43 * @param {LoginPair} loginPair The LoginPair corresponding to the entry to 52 * @param {LoginPair} loginPair The LoginPair corresponding to the entry to
44 * remove. 53 * remove.
45 * @see https://developer.chrome.com/extensions/passwordsPrivate#method-removeSa vedPassword 54 * @see https://developer.chrome.com/extensions/passwordsPrivate#method-removeSa vedPassword
46 */ 55 */
47 chrome.passwordsPrivate.removeSavedPassword = function(loginPair) {}; 56 chrome.passwordsPrivate.removeSavedPassword = function(loginPair) {};
48 57
49 /** 58 /**
50 * Removes the saved password exception corresponding to |exceptionUrl|. If no 59 * Removes the saved password exception corresponding to |exceptionUrl|. If no
51 * exception with this URL exists, this function is a no-op. 60 * exception with this URL exists, this function is a no-op.
52 * @param {string} exceptionUrl The URL corresponding to the exception to 61 * @param {string} exceptionUrl The URL corresponding to the exception to
53 * remove. 62 * remove.
54 * @see https://developer.chrome.com/extensions/passwordsPrivate#method-removePa sswordException 63 * @see https://developer.chrome.com/extensions/passwordsPrivate#method-removePa sswordException
55 */ 64 */
56 chrome.passwordsPrivate.removePasswordException = function(exceptionUrl) {}; 65 chrome.passwordsPrivate.removePasswordException = function(exceptionUrl) {};
57 66
58 /** 67 /**
59 * Returns the plaintext password corresponding to |loginPair|. Note that on 68 * Returns the plaintext password corresponding to |loginPair|. Note that on
60 * some operating systems, this call may result in an OS-level reauthentication. 69 * some operating systems, this call may result in an OS-level reauthentication.
70 * Once the password has been fetched, it will be returned via the
71 * onPlaintextPasswordRetrieved event.
61 * @param {LoginPair} loginPair The LoginPair corresponding to the entry whose 72 * @param {LoginPair} loginPair The LoginPair corresponding to the entry whose
62 * password is to be returned. 73 * password is to be returned.
63 * @param {function(string):void} callback Callback which will be passed the 74 * @see https://developer.chrome.com/extensions/passwordsPrivate#method-requestP laintextPassword
64 * plaintext password.
65 * @see https://developer.chrome.com/extensions/passwordsPrivate#method-getPlain textPassword
66 */ 75 */
67 chrome.passwordsPrivate.getPlaintextPassword = function(loginPair, callback) {}; 76 chrome.passwordsPrivate.requestPlaintextPassword = function(loginPair) {};
68 77
69 /** 78 /**
70 * Fired when the saved passwords list has changed, meaning that an entry has 79 * Fired when the saved passwords list has changed, meaning that an entry has
71 * been added or removed. Note that this event fires as soon as a listener is 80 * been added or removed. Note that this event fires as soon as a listener is
72 * added. 81 * added.
73 * @type {!ChromeEvent} 82 * @type {!ChromeEvent}
74 * @see https://developer.chrome.com/extensions/passwordsPrivate#event-onSavedPa sswordsListChanged 83 * @see https://developer.chrome.com/extensions/passwordsPrivate#event-onSavedPa sswordsListChanged
75 */ 84 */
76 chrome.passwordsPrivate.onSavedPasswordsListChanged; 85 chrome.passwordsPrivate.onSavedPasswordsListChanged;
77 86
78 /** 87 /**
79 * Fired when the password exceptions list has changed, meaning that an entry 88 * Fired when the password exceptions list has changed, meaning that an entry
80 * has been added or removed. Note that this event fires as soon as a listener 89 * has been added or removed. Note that this event fires as soon as a listener
81 * is added. 90 * is added.
82 * @type {!ChromeEvent} 91 * @type {!ChromeEvent}
83 * @see https://developer.chrome.com/extensions/passwordsPrivate#event-onPasswor dExceptionsListChanged 92 * @see https://developer.chrome.com/extensions/passwordsPrivate#event-onPasswor dExceptionsListChanged
84 */ 93 */
85 chrome.passwordsPrivate.onPasswordExceptionsListChanged; 94 chrome.passwordsPrivate.onPasswordExceptionsListChanged;
86 95
96 /**
97 * Fired when a plaintext password has been fetched in response to a call to
98 * chrome.passwordsPrivate.requestPlaintextPassword().
99 * @type {!ChromeEvent}
100 * @see https://developer.chrome.com/extensions/passwordsPrivate#event-onPlainte xtPasswordRetrieved
101 */
102 chrome.passwordsPrivate.onPlaintextPasswordRetrieved;
87 103
104
Dan Beam 2015/06/02 18:22:25 why so spacious?
Kyle Horimoto 2015/06/04 21:43:24 Not sure how this happened, but removed the extra
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