#include "chrome/browser/enterprise/connectors/interstitials/enterprise_warn_page.h"
#include <utility>
#include "base/strings/strcat.h"
#include "base/strings/utf_string_conversions.h"
#include "chrome/browser/enterprise/connectors/interstitials/enterprise_interstitial_util.h"
#include "components/grit/components_resources.h"
#include "components/safe_browsing/content/browser/base_ui_manager.h"
#include "components/safe_browsing/core/common/features.h"
#include "components/safe_browsing/core/common/proto/realtimeapi.pb.h"
#include "components/security_interstitials/content/security_interstitial_controller_client.h"
#include "components/security_interstitials/core/common_string_util.h"
#include "components/security_interstitials/core/urls.h"
#include "components/strings/grit/components_strings.h"
#include "content/public/browser/navigation_entry.h"
#include "content/public/browser/web_contents.h"
#include "net/base/net_errors.h"
#include "ui/base/l10n/l10n_util.h"
MetricsHelper;
const security_interstitials::SecurityInterstitialPage::TypeID
EnterpriseWarnPage::kTypeForTesting = …;
EnterpriseWarnPage::EnterpriseWarnPage(
safe_browsing::BaseUIManager* ui_manager,
content::WebContents* web_contents,
const GURL& request_url,
const safe_browsing::SafeBrowsingBlockingPage::UnsafeResourceList&
unsafe_resources,
std::unique_ptr<
security_interstitials::SecurityInterstitialControllerClient>
controller_client)
: … { … }
EnterpriseWarnPage::~EnterpriseWarnPage() = default;
security_interstitials::SecurityInterstitialPage::TypeID
EnterpriseWarnPage::GetTypeForTesting() { … }
void EnterpriseWarnPage::PopulateInterstitialStrings(
base::Value::Dict& load_time_data) { … }
void EnterpriseWarnPage::OnInterstitialClosing() { … }
void EnterpriseWarnPage::CommandReceived(const std::string& command) { … }
int EnterpriseWarnPage::GetHTMLTemplateId() { … }
std::string EnterpriseWarnPage::GetCustomMessageForTesting() { … }
void EnterpriseWarnPage::PopulateStringsForSharedHTML(
base::Value::Dict& load_time_data) { … }