// Copyright 2014 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// https://w3c.github.io/webappsec-credential-management/#credentialscontainer
[Exposed=Window, SecureContext]
interface CredentialsContainer {
[CallWith=ScriptState, RaisesException, MeasureAs=CredentialManagerGet] Promise<Credential?> get(optional CredentialRequestOptions options = {});
[CallWith=ScriptState, RaisesException, MeasureAs=CredentialManagerStore] Promise<Credential> store(Credential credential);
[CallWith=ScriptState, RaisesException, MeasureAs=CredentialManagerCreate] Promise<Credential?> create(optional CredentialCreationOptions options = {});
[CallWith=ScriptState, MeasureAs=CredentialManagerPreventSilentAccess] Promise<undefined> preventSilentAccess();
};