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

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

Issue 1405643004: Remove passwordsPrivate.canPasswordAccountBeManaged (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@480552_clean-up-PasswordLinkInSettings
Patch Set: Fixed histograms Created 5 years, 2 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 18 matching lines...) Expand all
29 29
30 // Dictionary passed to listeners for the onPlaintextPasswordRetrieved event. 30 // Dictionary passed to listeners for the onPlaintextPasswordRetrieved event.
31 dictionary PlaintextPasswordEventParameters { 31 dictionary PlaintextPasswordEventParameters {
32 // The LoginPair associated with the retrieved password. 32 // The LoginPair associated with the retrieved password.
33 LoginPair loginPair; 33 LoginPair loginPair;
34 34
35 // The password in plaintext. 35 // The password in plaintext.
36 DOMString plaintextPassword; 36 DOMString plaintextPassword;
37 }; 37 };
38 38
39 callback CanAccountBeManagedCallback = void(boolean canAccountBeManaged);
40
41 interface Functions { 39 interface Functions {
42 // Determines whether account's passwords can be managed via
43 // https://passwords.google.com/settings/passwords.
44 //
45 // |callback|: Callback which will be passed the boolean of whether the
46 // account can be managed.
47 static void canPasswordAccountBeManaged(
48 CanAccountBeManagedCallback callback);
49
50 // Removes the saved password corresponding to |loginPair|. If no saved 40 // Removes the saved password corresponding to |loginPair|. If no saved
51 // password for this pair exists, this function is a no-op. 41 // password for this pair exists, this function is a no-op.
52 // 42 //
53 // |loginPair|: The LoginPair corresponding to the entry to remove. 43 // |loginPair|: The LoginPair corresponding to the entry to remove.
54 static void removeSavedPassword(LoginPair loginPair); 44 static void removeSavedPassword(LoginPair loginPair);
55 45
56 // Removes the saved password exception corresponding to |exceptionUrl|. If 46 // Removes the saved password exception corresponding to |exceptionUrl|. If
57 // no exception with this URL exists, this function is a no-op. 47 // no exception with this URL exists, this function is a no-op.
58 // 48 //
59 // |exceptionUrl|: The URL corresponding to the exception to remove. 49 // |exceptionUrl|: The URL corresponding to the exception to remove.
(...skipping 26 matching lines...) Expand all
86 76
87 // Fired when a plaintext password has been fetched in response to a call to 77 // Fired when a plaintext password has been fetched in response to a call to
88 // chrome.passwordsPrivate.requestPlaintextPassword(). 78 // chrome.passwordsPrivate.requestPlaintextPassword().
89 // 79 //
90 // |loginPair|: The LoginPair whose password was found. 80 // |loginPair|: The LoginPair whose password was found.
91 // |plaintextPassword|: The plaintext password which was retrieved. 81 // |plaintextPassword|: The plaintext password which was retrieved.
92 static void onPlaintextPasswordRetrieved( 82 static void onPlaintextPasswordRetrieved(
93 PlaintextPasswordEventParameters dict); 83 PlaintextPasswordEventParameters dict);
94 }; 84 };
95 }; 85 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698