#include "chrome/browser/ui/views/digital_credentials/digital_identity_safety_interstitial_controller_desktop.h"
#include <string>
#include "base/metrics/histogram_functions.h"
#include "base/scoped_observation.h"
#include "chrome/browser/digital_credentials/digital_identity_interstitial_closed_reason.h"
#include "chrome/browser/ui/digital_credentials/digital_identity_safety_interstitial_controller.h"
#include "chrome/grit/generated_resources.h"
#include "components/constrained_window/constrained_window_views.h"
#include "components/url_formatter/elide_url.h"
#include "components/web_modal/web_contents_modal_dialog_manager.h"
#include "content/public/browser/digital_identity_interstitial_type.h"
#include "content/public/browser/digital_identity_provider.h"
#include "ui/base/l10n/l10n_util.h"
#include "ui/base/models/dialog_model.h"
#include "ui/base/mojom/dialog_button.mojom.h"
#include "ui/views/widget/widget.h"
DialogButton;
InterstitialType;
RequestStatusForMetrics;
WebContentsModalDialogManager;
DigitalIdentitySafetyInterstitialControllerDesktop::CloseOnNavigationObserver::
CloseOnNavigationObserver() = default;
DigitalIdentitySafetyInterstitialControllerDesktop::CloseOnNavigationObserver::
~CloseOnNavigationObserver() { … }
void DigitalIdentitySafetyInterstitialControllerDesktop::
CloseOnNavigationObserver::Observe(content::WebContents& web_contents) { … }
void DigitalIdentitySafetyInterstitialControllerDesktop::
CloseOnNavigationObserver::OnWillClose() { … }
DigitalIdentitySafetyInterstitialControllerDesktop::
DigitalIdentitySafetyInterstitialControllerDesktop() = default;
DigitalIdentitySafetyInterstitialControllerDesktop::
~DigitalIdentitySafetyInterstitialControllerDesktop() = default;
content::DigitalIdentityProvider::DigitalIdentityInterstitialAbortCallback
DigitalIdentitySafetyInterstitialControllerDesktop::ShowInterstitial(
content::WebContents& web_contents,
const url::Origin& rp_origin,
InterstitialType interstitial_type,
content::DigitalIdentityProvider::DigitalIdentityInterstitialCallback
callback) { … }
void DigitalIdentitySafetyInterstitialControllerDesktop::Abort() { … }
void DigitalIdentitySafetyInterstitialControllerDesktop::ShowInterstitialImpl(
content::WebContents& web_contents,
bool was_request_aborted) { … }
void DigitalIdentitySafetyInterstitialControllerDesktop::OnDialogClosed(
DigitalIdentityInterstitialClosedReason closed_reason) { … }