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

Side by Side Diff: components/password_manager/content/common/credential_manager.mojom

Issue 2895243002: Rename requireUserMediation to preventSilentAccess in the CM API. (Closed)
Patch Set: webkit tests Created 3 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 module password_manager.mojom; 5 module password_manager.mojom;
6 6
7 import "url/mojo/origin.mojom"; 7 import "url/mojo/origin.mojom";
8 import "url/mojo/url.mojom"; 8 import "url/mojo/url.mojom";
9 9
10 enum CredentialType { 10 enum CredentialType {
(...skipping 22 matching lines...) Expand all
33 string name; 33 string name;
34 url.mojom.Url icon; 34 url.mojom.Url icon;
35 string password; 35 string password;
36 url.mojom.Origin federation; 36 url.mojom.Origin federation;
37 }; 37 };
38 38
39 interface CredentialManager { 39 interface CredentialManager {
40 // Store credential. For navigator.credentials.store(). 40 // Store credential. For navigator.credentials.store().
41 Store(CredentialInfo credential) => (); 41 Store(CredentialInfo credential) => ();
42 42
43 // Require user mediation. For navigator.credentials.requireUserMediation(). 43 // Require user mediation. For navigator.credentials.requireUserMediation().
Mike West 2017/05/23 18:54:32 Nit: Replace here too.
vasilii 2017/05/24 10:02:13 Done.
44 RequireUserMediation() => (); 44 PreventSilentAccess() => ();
45 45
46 // Get Credential. For navigator.credentials.get(). 46 // Get Credential. For navigator.credentials.get().
47 // The result callback will return a non-null and valid CredentialInfo 47 // The result callback will return a non-null and valid CredentialInfo
48 // if succeeded, or null with a CredentialManagerError if failed. 48 // if succeeded, or null with a CredentialManagerError if failed.
49 Get(CredentialMediationRequirement mediation, 49 Get(CredentialMediationRequirement mediation,
50 bool include_passwords, 50 bool include_passwords,
51 array<url.mojom.Url> federations) 51 array<url.mojom.Url> federations)
52 => (CredentialManagerError error, CredentialInfo? credential); 52 => (CredentialManagerError error, CredentialInfo? credential);
53 }; 53 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698