#include "components/security_interstitials/content/ssl_blocking_page_base.h"
#include "components/safe_browsing/core/common/safe_browsing_prefs.h"
#include "components/security_interstitials/content/security_interstitial_controller_client.h"
#include "components/security_interstitials/core/controller_client.h"
#include "components/security_interstitials/core/metrics_helper.h"
#include "components/strings/grit/components_strings.h"
#include "components/user_prefs/user_prefs.h"
#include "content/public/browser/browser_context.h"
#include "content/public/browser/web_contents.h"
#include "ui/base/l10n/l10n_util.h"
namespace {
PrefService* GetPrefs(content::WebContents* web_contents) { … }
}
SSLBlockingPageBase::SSLBlockingPageBase(
content::WebContents* web_contents,
const net::SSLInfo& ssl_info,
const GURL& request_url,
bool overridable,
const base::Time& time_triggered,
bool can_show_enhanced_protection_message,
std::unique_ptr<
security_interstitials::SecurityInterstitialControllerClient>
controller_client)
: … { … }
SSLBlockingPageBase::~SSLBlockingPageBase() = default;
void SSLBlockingPageBase::OnInterstitialClosing() { … }
bool SSLBlockingPageBase::ShouldShowEnhancedProtectionMessage() { … }
void SSLBlockingPageBase::PopulateEnhancedProtectionMessage(
base::Value::Dict& load_time_data) { … }