#include "components/security_interstitials/core/ssl_error_ui.h"
#include "base/i18n/time_formatting.h"
#include "build/build_config.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/security_interstitials/core/ssl_error_options_mask.h"
#include "components/ssl_errors/error_classification.h"
#include "components/ssl_errors/error_info.h"
#include "components/strings/grit/components_strings.h"
#include "ui/base/l10n/l10n_util.h"
namespace security_interstitials {
namespace {
const char kHelpPath[] = …;
bool IsMasked(int options, SSLErrorOptionsMask mask) { … }
}
SSLErrorUI::SSLErrorUI(const GURL& request_url,
int cert_error,
const net::SSLInfo& ssl_info,
int display_options,
const base::Time& time_triggered,
const GURL& support_url,
ControllerClient* controller)
: … { … }
SSLErrorUI::~SSLErrorUI() { … }
void SSLErrorUI::PopulateStringsForHTML(base::Value::Dict& load_time_data) { … }
const net::SSLInfo& SSLErrorUI::ssl_info() const { … }
const base::Time& SSLErrorUI::time_triggered() const { … }
ControllerClient* SSLErrorUI::controller() const { … }
int SSLErrorUI::cert_error() const { … }
void SSLErrorUI::PopulateOverridableStrings(base::Value::Dict& load_time_data) { … }
void SSLErrorUI::PopulateNonOverridableStrings(
base::Value::Dict& load_time_data) { … }
void SSLErrorUI::HandleCommand(SecurityInterstitialCommand command) { … }
}