Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(126)

Unified Diff: net/base/net_errors.h

Issue 1639953002: Network error interstitial update - add suggestions list (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Clean up styling Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: net/base/net_errors.h
diff --git a/net/base/net_errors.h b/net/base/net_errors.h
index 27a2e51c79fb43b7ee8d3ee2a6cb7290f4f7f2e9..7b114fb786ed318c24629d9c6567fd3f95c1bacc 100644
--- a/net/base/net_errors.h
+++ b/net/base/net_errors.h
@@ -36,6 +36,9 @@ NET_EXPORT std::string ErrorToString(int error);
// Same as above, but leaves off the leading "net::".
NET_EXPORT std::string ErrorToShortString(int error);
+// Returns a short string for HTTP error codes in the form of "HTTP_ERROR_123".
+NET_EXPORT std::string HttpErrorCodeToString(int error);
mmenke 2016/02/12 17:25:54 Do we really need this in net? Any reason not to
edwardjung 2016/02/15 15:53:49 I guess not. Confirmed with rachelis to change to
+
// Returns true if |error| is a certificate error code.
NET_EXPORT bool IsCertificateError(int error);

Powered by Google App Engine
This is Rietveld 408576698