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

Side by Side Diff: third_party/WebKit/Source/modules/credentialmanager/CredentialRequestOptions.idl

Issue 2864493003: Deprecate CredentialRequestOptions.unmediated in favor mediation enum (Closed)
Patch Set: Rebase Created 3 years, 7 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 // 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
26 // removed.
27 CredentialMediationRequirement mediation;
12 }; 28 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698