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

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

Issue 1894773002: Remove implicit update when adding a listener in passwords private API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@explicit-password-api-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.
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 // |callback|: Called with the list of saved passwords. 69 // |callback|: Called with the list of saved passwords.
70 static void getSavedPasswordList(PasswordListCallback callback); 70 static void getSavedPasswordList(PasswordListCallback callback);
71 71
72 // Returns the list of password exceptions. 72 // Returns the list of password exceptions.
73 // |callback|: Called with the list of password exceptions. 73 // |callback|: Called with the list of password exceptions.
74 static void getPasswordExceptionList(ExceptionListCallback callback); 74 static void getPasswordExceptionList(ExceptionListCallback callback);
75 }; 75 };
76 76
77 interface Events { 77 interface Events {
78 // Fired when the saved passwords list has changed, meaning that an entry 78 // Fired when the saved passwords list has changed, meaning that an entry
79 // has been added or removed. Note that this event fires as soon as a 79 // has been added or removed.
80 // listener is added.
81 // 80 //
82 // |entries|: The updated list of password entries. 81 // |entries|: The updated list of password entries.
83 static void onSavedPasswordsListChanged(PasswordUiEntry[] entries); 82 static void onSavedPasswordsListChanged(PasswordUiEntry[] entries);
84 83
85 // Fired when the password exceptions list has changed, meaning that an 84 // Fired when the password exceptions list has changed, meaning that an
86 // entry has been added or removed. Note that this event fires as soon as a 85 // entry has been added or removed.
87 // listener is added.
88 // 86 //
89 // |exceptions|: The updated list of password exceptions. 87 // |exceptions|: The updated list of password exceptions.
90 static void onPasswordExceptionsListChanged(DOMString[] exceptions); 88 static void onPasswordExceptionsListChanged(DOMString[] exceptions);
91 89
92 // Fired when a plaintext password has been fetched in response to a call to 90 // Fired when a plaintext password has been fetched in response to a call to
93 // chrome.passwordsPrivate.requestPlaintextPassword(). 91 // chrome.passwordsPrivate.requestPlaintextPassword().
94 // 92 //
95 // |loginPair|: The LoginPair whose password was found. 93 // |loginPair|: The LoginPair whose password was found.
96 // |plaintextPassword|: The plaintext password which was retrieved. 94 // |plaintextPassword|: The plaintext password which was retrieved.
97 static void onPlaintextPasswordRetrieved( 95 static void onPlaintextPasswordRetrieved(
98 PlaintextPasswordEventParameters dict); 96 PlaintextPasswordEventParameters dict);
99 }; 97 };
100 }; 98 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698