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

Side by Side Diff: chrome/common/extensions/api/passwords_private.idl

Issue 1907813002: Make the URLs in the password exceptions list clickable. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@remove-implicit-update.gitbr
Patch Set: feedback 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 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 // Use the <code>chrome.passwordsPrivate</code> API to add or remove password 5 // Use the <code>chrome.passwordsPrivate</code> API to add or remove password
6 // data from the settings UI. 6 // data from the settings UI.
7 namespace passwordsPrivate { 7 namespace passwordsPrivate {
8 // Pair of origin URL and login saved for that URL. 8 // Pair of origin URL and login saved for that URL.
9 dictionary LoginPair { 9 dictionary LoginPair {
10 // The human-readable origin for the URL where the password is used. 10 // The human-readable origin for the URL where the password is used.
11 DOMString originUrl; 11 DOMString originUrl;
12 12
13 // The username used in conjunction with the saved password. 13 // The username used in conjunction with the saved password.
14 DOMString username; 14 DOMString username;
15 }; 15 };
16 16
17 // Entry used to display a password in the settings UI. 17 // Entry used to display a password in the settings UI.
18 dictionary PasswordUiEntry { 18 dictionary PasswordUiEntry {
19 // The login information for this entry. 19 // The login information for this entry.
20 LoginPair loginPair; 20 LoginPair loginPair;
21 21
22 // The URL that should be linked to when clicking in the UI. 22 // The complete URL of the page that the password is saved for.
23 DOMString linkUrl; 23 DOMString linkUrl;
24 24
25 // The number of characters in the password; used to display placeholder 25 // The number of characters in the password; used to display placeholder
26 // dots in the UI. 26 // dots in the UI.
27 long numCharactersInPassword; 27 long numCharactersInPassword;
28 28
29 // Text shown if the password was obtained via a federated identity. 29 // Text shown if the password was obtained via a federated identity.
30 DOMString? federationText; 30 DOMString? federationText;
31 }; 31 };
32 32
33 dictionary ExceptionPair {
34 // The human-readable URL where passwords will not be saved.
35 DOMString exceptionUrl;
36
37 // The complete URL of the page that the exception was created for.
38 DOMString linkUrl;
39 };
40
33 // Dictionary passed to listeners for the onPlaintextPasswordRetrieved event. 41 // Dictionary passed to listeners for the onPlaintextPasswordRetrieved event.
34 dictionary PlaintextPasswordEventParameters { 42 dictionary PlaintextPasswordEventParameters {
35 // The LoginPair associated with the retrieved password. 43 // The LoginPair associated with the retrieved password.
36 LoginPair loginPair; 44 LoginPair loginPair;
37 45
38 // The password in plaintext. 46 // The password in plaintext.
39 DOMString plaintextPassword; 47 DOMString plaintextPassword;
40 }; 48 };
41 49
42 callback PasswordListCallback = void(PasswordUiEntry[] entries); 50 callback PasswordListCallback = void(PasswordUiEntry[] entries);
43 callback ExceptionListCallback = void(DOMString[] exceptions); 51 callback ExceptionListCallback = void(ExceptionPair[] exceptions);
44 52
45 interface Functions { 53 interface Functions {
46 // Removes the saved password corresponding to |loginPair|. If no saved 54 // Removes the saved password corresponding to |loginPair|. If no saved
47 // password for this pair exists, this function is a no-op. 55 // password for this pair exists, this function is a no-op.
48 // 56 //
49 // |loginPair|: The LoginPair corresponding to the entry to remove. 57 // |loginPair|: The LoginPair corresponding to the entry to remove.
50 static void removeSavedPassword(LoginPair loginPair); 58 static void removeSavedPassword(LoginPair loginPair);
51 59
52 // Removes the saved password exception corresponding to |exceptionUrl|. If 60 // Removes the saved password exception corresponding to |exceptionUrl|. If
53 // no exception with this URL exists, this function is a no-op. 61 // no exception with this URL exists, this function is a no-op.
(...skipping 24 matching lines...) Expand all
78 // Fired when the saved passwords list has changed, meaning that an entry 86 // Fired when the saved passwords list has changed, meaning that an entry
79 // has been added or removed. 87 // has been added or removed.
80 // 88 //
81 // |entries|: The updated list of password entries. 89 // |entries|: The updated list of password entries.
82 static void onSavedPasswordsListChanged(PasswordUiEntry[] entries); 90 static void onSavedPasswordsListChanged(PasswordUiEntry[] entries);
83 91
84 // Fired when the password exceptions list has changed, meaning that an 92 // Fired when the password exceptions list has changed, meaning that an
85 // entry has been added or removed. 93 // entry has been added or removed.
86 // 94 //
87 // |exceptions|: The updated list of password exceptions. 95 // |exceptions|: The updated list of password exceptions.
88 static void onPasswordExceptionsListChanged(DOMString[] exceptions); 96 static void onPasswordExceptionsListChanged(ExceptionPair[] exceptions);
89 97
90 // Fired when a plaintext password has been fetched in response to a call to 98 // Fired when a plaintext password has been fetched in response to a call to
91 // chrome.passwordsPrivate.requestPlaintextPassword(). 99 // chrome.passwordsPrivate.requestPlaintextPassword().
92 // 100 //
93 // |loginPair|: The LoginPair whose password was found. 101 // |loginPair|: The LoginPair whose password was found.
94 // |plaintextPassword|: The plaintext password which was retrieved. 102 // |plaintextPassword|: The plaintext password which was retrieved.
95 static void onPlaintextPasswordRetrieved( 103 static void onPlaintextPasswordRetrieved(
96 PlaintextPasswordEventParameters dict); 104 PlaintextPasswordEventParameters dict);
97 }; 105 };
98 }; 106 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698