#include "components/security_interstitials/core/safe_browsing_quiet_error_ui.h"
#include "base/i18n/time_formatting.h"
#include "base/metrics/histogram_macros.h"
#include "base/strings/escape.h"
#include "components/google/core/common/google_util.h"
#include "components/grit/components_resources.h"
#include "components/security_interstitials/core/common_string_util.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 "ui/base/l10n/l10n_util.h"
namespace security_interstitials {
SafeBrowsingQuietErrorUI::SafeBrowsingQuietErrorUI(
const GURL& request_url,
BaseSafeBrowsingErrorUI::SBInterstitialReason reason,
const BaseSafeBrowsingErrorUI::SBErrorDisplayOptions& display_options,
const std::string& app_locale,
const base::Time& time_triggered,
ControllerClient* controller,
const bool is_giant_webview)
: … { … }
SafeBrowsingQuietErrorUI::~SafeBrowsingQuietErrorUI() { … }
void SafeBrowsingQuietErrorUI::PopulateStringsForHtml(
base::Value::Dict& load_time_data) { … }
void SafeBrowsingQuietErrorUI::SetGiantWebViewForTesting(
bool is_giant_webview) { … }
void SafeBrowsingQuietErrorUI::HandleCommand(
SecurityInterstitialCommand command) { … }
void SafeBrowsingQuietErrorUI::PopulateMalwareLoadTimeData(
base::Value::Dict& load_time_data) { … }
void SafeBrowsingQuietErrorUI::PopulateHarmfulLoadTimeData(
base::Value::Dict& load_time_data) { … }
void SafeBrowsingQuietErrorUI::PopulatePhishingLoadTimeData(
base::Value::Dict& load_time_data) { … }
void SafeBrowsingQuietErrorUI::PopulateBillingLoadTimeData(
base::Value::Dict& load_time_data) { … }
int SafeBrowsingQuietErrorUI::GetHTMLTemplateId() const { … }
}