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

Unified Diff: net/base/elements_upload_data_stream.h

Issue 2030353002: UploadDataStream now returns errors on failures (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased Created 4 years, 6 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
« no previous file with comments | « no previous file | net/base/elements_upload_data_stream.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/elements_upload_data_stream.h
diff --git a/net/base/elements_upload_data_stream.h b/net/base/elements_upload_data_stream.h
index 1d4934e14d12eb28baea5cd8a65c1fe6e00b0a69..296cfbb80520e90aa5d8da71e32a2ebfabe954d1 100644
--- a/net/base/elements_upload_data_stream.h
+++ b/net/base/elements_upload_data_stream.h
@@ -77,8 +77,8 @@ class NET_EXPORT ElementsUploadDataStream : public UploadDataStream {
// |upload_data_|.
size_t element_index_;
- // True if an error occcured during read operation.
- bool read_failed_;
+ // Set to actual error if read fails, otherwise set to net::OK.
+ int read_error_;
base::WeakPtrFactory<ElementsUploadDataStream> weak_ptr_factory_;
« no previous file with comments | « no previous file | net/base/elements_upload_data_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698