Chromium Code Reviews| 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 [RuntimeEnabled=CredentialRequestOptionsMediation] | |
|
vasilii
2017/05/18 16:16:12
What is the motivation for this?
jdoerrie
2017/05/19 09:03:18
I added this so that we are not blocked by the int
| |
| 8 enum CredentialMediationRequirement { | |
| 9 "silent", | |
| 10 "optional", | |
| 11 "required" | |
| 12 }; | |
| 6 | 13 |
| 7 dictionary CredentialRequestOptions { | 14 dictionary CredentialRequestOptions { |
| 8 FederatedCredentialRequestOptions federated; | 15 FederatedCredentialRequestOptions federated; |
| 9 | 16 |
| 10 boolean password = false; | 17 boolean password = false; |
| 11 boolean unmediated = false; | 18 // Defaults to false. This is not set here to detect when both 'unmediated' |
| 19 // and 'mediation' are user provided, which results in an error. | |
| 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 an | |
| 24 // error. | |
| 25 [RuntimeEnabled=CredentialRequestOptionsMediation] CredentialMediationRequir ement mediation; | |
| 12 }; | 26 }; |
| OLD | NEW |