#include "components/error_page/common/error.h"
#include "net/base/net_errors.h"
namespace error_page {
const char Error::kNetErrorDomain[] = …;
const char Error::kHttpErrorDomain[] = …;
const char Error::kDnsProbeErrorDomain[] = …;
const char Error::kLinkPreviewErrorDomain[] = …;
Error Error::NetError(const GURL& url,
int reason,
int extended_reason,
net::ResolveErrorInfo resolve_error_info,
bool stale_copy_in_cache) { … }
Error Error::HttpError(const GURL& url, int http_status_code) { … }
Error Error::DnsProbeError(const GURL& url,
int status,
bool stale_copy_in_cache) { … }
Error Error::LinkPreviewError(const GURL& url,
LinkPreviewErrorCode error_code) { … }
Error::~Error() = default;
Error::Error(const Error&) = default;
Error& Error::operator=(const Error&) = default;
Error::Error(const GURL& url,
const std::string& domain,
int reason,
int extended_reason,
net::ResolveErrorInfo resolve_error_info,
bool stale_copy_in_cache)
: … { … }
}