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

Side by Side 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: 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.
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 static void removePasswordException(DOMString exceptionUrl); 53 static void removePasswordException(DOMString exceptionUrl);
54 54
55 // Returns the plaintext password corresponding to |loginPair|. Note that on 55 // Returns the plaintext password corresponding to |loginPair|. Note that on
56 // some operating systems, this call may result in an OS-level 56 // some operating systems, this call may result in an OS-level
57 // reauthentication. Once the password has been fetched, it will be returned 57 // reauthentication. Once the password has been fetched, it will be returned
58 // via the onPlaintextPasswordRetrieved event. 58 // via the onPlaintextPasswordRetrieved event.
59 // 59 //
60 // |loginPair|: The LoginPair corresponding to the entry whose password 60 // |loginPair|: The LoginPair corresponding to the entry whose password
61 // is to be returned. 61 // is to be returned.
62 static void requestPlaintextPassword(LoginPair loginPair); 62 static void requestPlaintextPassword(LoginPair loginPair);
63
64 // Returns the list of saved passwords using the
65 // |onSavedPasswordsListChanged| event.
66 static void requestSavedPasswordList();
Devlin 2016/04/16 00:41:49 I thought we automatically sent these when a liste
Devlin 2016/04/16 00:43:34 I guess I should have looked at part 2 of this ser
stevenjb 2016/04/18 18:48:18 I agree. The signature can match that of the event
67
68 // Returns the list of password exceptions using the
69 // |onPasswordExceptionsListChanged| event.
70 static void requestPasswordExceptionList();
63 }; 71 };
64 72
65 interface Events { 73 interface Events {
66 // Fired when the saved passwords list has changed, meaning that an entry 74 // Fired when the saved passwords list has changed, meaning that an entry
67 // has been added or removed. Note that this event fires as soon as a 75 // has been added or removed. Note that this event fires as soon as a
68 // listener is added. 76 // listener is added.
69 // 77 //
70 // |entries|: The updated list of password entries. 78 // |entries|: The updated list of password entries.
71 static void onSavedPasswordsListChanged(PasswordUiEntry[] entries); 79 static void onSavedPasswordsListChanged(PasswordUiEntry[] entries);
72 80
73 // Fired when the password exceptions list has changed, meaning that an 81 // Fired when the password exceptions list has changed, meaning that an
74 // entry has been added or removed. Note that this event fires as soon as a 82 // entry has been added or removed. Note that this event fires as soon as a
75 // listener is added. 83 // listener is added.
76 // 84 //
77 // |exceptions|: The updated list of password exceptions. 85 // |exceptions|: The updated list of password exceptions.
78 static void onPasswordExceptionsListChanged(DOMString[] exceptions); 86 static void onPasswordExceptionsListChanged(DOMString[] exceptions);
79 87
80 // Fired when a plaintext password has been fetched in response to a call to 88 // Fired when a plaintext password has been fetched in response to a call to
81 // chrome.passwordsPrivate.requestPlaintextPassword(). 89 // chrome.passwordsPrivate.requestPlaintextPassword().
82 // 90 //
83 // |loginPair|: The LoginPair whose password was found. 91 // |loginPair|: The LoginPair whose password was found.
84 // |plaintextPassword|: The plaintext password which was retrieved. 92 // |plaintextPassword|: The plaintext password which was retrieved.
85 static void onPlaintextPasswordRetrieved( 93 static void onPlaintextPasswordRetrieved(
86 PlaintextPasswordEventParameters dict); 94 PlaintextPasswordEventParameters dict);
87 }; 95 };
88 }; 96 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698