Index: net/url_request/url_request_status.h |
diff --git a/net/url_request/url_request_status.h b/net/url_request/url_request_status.h |
index 44a5d22bf04cdbfe736f08f80e42c22a1111acbe..694c51004cf22fe4f5f8f53b95b30068589f3f5e 100644 |
--- a/net/url_request/url_request_status.h |
+++ b/net/url_request/url_request_status.h |
@@ -5,6 +5,7 @@ |
#ifndef NET_URL_REQUEST_URL_REQUEST_STATUS_H_ |
#define NET_URL_REQUEST_URL_REQUEST_STATUS_H_ |
+#include "net/base/net_errors.h" |
#include "net/base/net_export.h" |
namespace net { |
@@ -41,6 +42,13 @@ class NET_EXPORT URLRequestStatus { |
// deprecated. See https://crbug.com/490311. |
static URLRequestStatus FromError(int error); |
+ // Returns a Error corresponding to |status_|. |
+ // OK for OK |
+ // ERR_IO_PENDING for IO_PENDING |
+ // ERR_ABORTED for CANCELLED |
+ // Error for FAILED |
+ Error ToNetError() const; |
+ |
Status status() const { return status_; } |
int error() const { return error_; } |