Index: components/password_manager/content/common/credential_manager.mojom |
diff --git a/components/password_manager/content/common/credential_manager.mojom b/components/password_manager/content/common/credential_manager.mojom |
index cc4981d8bc872909595a332add777a334da00e32..cea374c736e9bc256283cbfd94f50c5691de1840 100644 |
--- a/components/password_manager/content/common/credential_manager.mojom |
+++ b/components/password_manager/content/common/credential_manager.mojom |
@@ -13,6 +13,12 @@ enum CredentialType { |
FEDERATED |
}; |
+enum CredentialMediationRequirement { |
+ kSilent, |
+ kOptional, |
+ kRequired |
+}; |
+ |
enum CredentialManagerError { |
SUCCESS, |
DISABLED, |
@@ -40,7 +46,7 @@ interface CredentialManager { |
// Get Credential. For navigator.credentials.get(). |
// The result callback will return a non-null and valid CredentialInfo |
// if succeeded, or null with a CredentialManagerError if failed. |
- Get(bool zero_click_only, |
+ Get(CredentialMediationRequirement mediation, |
bool include_passwords, |
array<url.mojom.Url> federations) |
=> (CredentialManagerError error, CredentialInfo? credential); |