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

Unified Diff: net/url_request/url_request_status.h

Issue 1467603002: URLRequestJob: change ReadRawData contract (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add done_reading_called_ to MockNetworkTransaction Created 5 years, 1 month 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
« no previous file with comments | « net/url_request/url_request_simple_job.cc ('k') | net/url_request/url_request_status.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_; }
« no previous file with comments | « net/url_request/url_request_simple_job.cc ('k') | net/url_request/url_request_status.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698