#include "chrome/browser/ui/views/safe_browsing/prompt_for_scanning_modal_dialog.h"
#include <memory>
#include "base/feature_list.h"
#include "base/functional/bind.h"
#include "base/strings/string_util.h"
#include "base/strings/utf_string_conversions.h"
#include "chrome/browser/ui/views/chrome_layout_provider.h"
#include "chrome/common/url_constants.h"
#include "chrome/grit/generated_resources.h"
#include "components/constrained_window/constrained_window_views.h"
#include "components/safe_browsing/core/common/features.h"
#include "components/strings/grit/components_strings.h"
#include "content/public/browser/web_contents.h"
#include "ui/base/l10n/l10n_util.h"
#include "ui/base/metadata/metadata_impl_macros.h"
#include "ui/base/mojom/dialog_button.mojom.h"
#include "ui/base/mojom/ui_base_types.mojom-shared.h"
#include "ui/base/page_transition_types.h"
#include "ui/base/ui_base_types.h"
#include "ui/base/window_open_disposition.h"
#include "ui/base/window_open_disposition_utils.h"
#include "ui/views/controls/button/md_text_button.h"
#include "ui/views/controls/styled_label.h"
#include "ui/views/window/dialog_delegate.h"
namespace safe_browsing {
void PromptForScanningModalDialog::ShowForWebContents(
content::WebContents* web_contents,
const std::u16string& filename,
base::OnceClosure accept_callback,
base::OnceClosure open_now_callback) { … }
PromptForScanningModalDialog::PromptForScanningModalDialog(
content::WebContents* web_contents,
const std::u16string& filename,
base::OnceClosure accept_callback,
base::OnceClosure open_now_callback)
: … { … }
PromptForScanningModalDialog::~PromptForScanningModalDialog() = default;
bool PromptForScanningModalDialog::IsDialogButtonEnabled(
ui::mojom::DialogButton button) const { … }
bool PromptForScanningModalDialog::ShouldShowCloseButton() const { … }
BEGIN_METADATA(…)
}