#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "components/ssl_errors/error_info.h"
#include <stddef.h>
#include "base/i18n/message_formatter.h"
#include "base/notreached.h"
#include "base/strings/escape.h"
#include "base/strings/utf_string_conversions.h"
#include "components/strings/grit/components_strings.h"
#include "net/base/net_errors.h"
#include "net/cert/cert_status_flags.h"
#include "net/ssl/ssl_info.h"
#include "ui/base/l10n/l10n_util.h"
#include "url/gurl.h"
UTF8ToUTF16;
namespace ssl_errors {
ErrorInfo::ErrorInfo(const std::u16string& details,
const std::u16string& short_description)
: … { … }
ErrorInfo ErrorInfo::CreateError(ErrorType error_type,
net::X509Certificate* cert,
const GURL& request_url) { … }
ErrorInfo::~ErrorInfo() { … }
ErrorInfo::ErrorType ErrorInfo::NetErrorToErrorType(int net_error) { … }
void ErrorInfo::GetErrorsForCertStatus(
const scoped_refptr<net::X509Certificate>& cert,
net::CertStatus cert_status,
const GURL& url,
std::vector<ErrorInfo>* errors) { … }
}