OLD | NEW |
---|---|
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 // https://w3c.github.io/webappsec/specs/credentialmanagement/#dictdef-credentia lrequestoptions | 5 // https://w3c.github.io/webappsec-credential-management/#dictdef-credentialrequ estoptions |
6 | |
7 enum CredentialMediationRequirement { | |
8 "silent", | |
9 "optional", | |
10 "required" | |
11 }; | |
6 | 12 |
7 dictionary CredentialRequestOptions { | 13 dictionary CredentialRequestOptions { |
8 FederatedCredentialRequestOptions federated; | 14 FederatedCredentialRequestOptions federated; |
9 | 15 |
10 boolean password = false; | 16 boolean password = false; |
11 boolean unmediated = false; | 17 // Defaults to false. This is not set here to detect when both 'unmediated' |
18 // and 'mediation' are user provided, which results in a warning if they | |
19 // contradict each other. | |
20 [DeprecateAs=CredentialManagerCredentialRequestOptionsUnmediated] boolean | |
21 unmediated; | |
22 // Defaults to "optional". This is not set here to detect when both | |
23 // 'unmediated' and 'mediation' are user provided, which results in a | |
24 // warning if they contradict each other. | |
25 // TODO(http://crbug.com/715077): Set the default here when 'unmediated' is | |
Mike West
2017/05/19 15:29:56
Nit: Whitespace alignment.
jdoerrie
2017/05/19 16:22:37
Done.
| |
26 // removed. | |
27 CredentialMediationRequirement mediation; | |
12 }; | 28 }; |
OLD | NEW |