#include "components/security_interstitials/content/https_only_mode_blocking_page.h"
#include "base/logging.h"
#include "base/notreached.h"
#include "base/strings/string_number_conversions.h"
#include "base/values.h"
#include "components/prefs/pref_registry_simple.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/controller_client.h"
#include "components/security_interstitials/core/https_only_mode_ui_util.h"
#include "components/security_interstitials/core/metrics_helper.h"
#include "components/security_interstitials/core/pref_names.h"
#include "components/strings/grit/components_strings.h"
#include "ui/base/l10n/l10n_util.h"
namespace security_interstitials {
const SecurityInterstitialPage::TypeID
HttpsOnlyModeBlockingPage::kTypeForTesting = …;
const char HttpsOnlyModeBlockingPage::kLearnMoreLink[] = …;
HttpsOnlyModeBlockingPage::HttpsOnlyModeBlockingPage(
content::WebContents* web_contents,
const GURL& request_url,
std::unique_ptr<SecurityInterstitialControllerClient> controller_client,
const security_interstitials::https_only_mode::HttpInterstitialState&
interstitial_state,
bool use_new_interstitial)
: … { … }
HttpsOnlyModeBlockingPage::~HttpsOnlyModeBlockingPage() = default;
void HttpsOnlyModeBlockingPage::OnInterstitialClosing() { … }
SecurityInterstitialPage::TypeID
HttpsOnlyModeBlockingPage::GetTypeForTesting() { … }
void HttpsOnlyModeBlockingPage::CommandReceived(const std::string& command) { … }
void HttpsOnlyModeBlockingPage::PopulateInterstitialStrings(
base::Value::Dict& load_time_data) { … }
}