#include "third_party/blink/renderer/modules/credentialmanagement/identity_credential.h"
#include "base/metrics/histogram_macros.h"
#include "third_party/blink/renderer/bindings/core/v8/script_promise_resolver.h"
#include "third_party/blink/renderer/bindings/modules/v8/v8_credential_request_options.h"
#include "third_party/blink/renderer/bindings/modules/v8/v8_identity_credential_request_options.h"
#include "third_party/blink/renderer/core/dom/dom_exception.h"
#include "third_party/blink/renderer/core/frame/csp/content_security_policy.h"
#include "third_party/blink/renderer/modules/credentialmanagement/credential_manager_proxy.h"
#include "third_party/blink/renderer/modules/credentialmanagement/credential_manager_type_converters.h"
#include "third_party/blink/renderer/platform/bindings/exception_state.h"
namespace blink {
namespace {
DisconnectStatus;
RequestTokenStatus;
constexpr char kIdentityCredentialType[] = …;
enum class FedCmCspStatus { … };
void OnDisconnect(ScriptPromiseResolver<IDLUndefined>* resolver,
DisconnectStatus status) { … }
}
IdentityCredential* IdentityCredential::Create(const String& token,
bool is_auto_selected,
const String& config_url) { … }
bool IdentityCredential::IsRejectingPromiseDueToCSP(
ContentSecurityPolicy* policy,
ScriptPromiseResolverBase* resolver,
const KURL& provider_url) { … }
IdentityCredential::IdentityCredential(const String& token,
bool is_auto_selected,
const String& config_url)
: … { … }
bool IdentityCredential::IsIdentityCredential() const { … }
ScriptPromise<IDLUndefined> IdentityCredential::disconnect(
ScriptState* script_state,
const blink::IdentityCredentialDisconnectOptions* options,
ExceptionState& exception_state) { … }
}