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); |