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

Unified Diff: net/base/upload_data_stream.h

Issue 2298823002: Resetting the HttpRequestInfo pointers in HttpNetworkTransaction and streams (Closed)
Patch Set: Rebased, removed upload progress plumbing, feedback. (Rebased till refs/heads/master@{#417381}) Created 4 years, 3 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/upload_data_stream.h
diff --git a/net/base/upload_data_stream.h b/net/base/upload_data_stream.h
index 9c269613e6952436c8cbd5ded1f309830c5816ab..88ddfe6637430502ecebf73689f5a42f41f6d053 100644
--- a/net/base/upload_data_stream.h
+++ b/net/base/upload_data_stream.h
@@ -13,6 +13,7 @@
#include "base/macros.h"
#include "net/base/completion_callback.h"
#include "net/base/net_export.h"
+#include "net/base/upload_progress.h"
#include "net/log/net_log.h"
namespace net {
@@ -90,6 +91,10 @@ class NET_EXPORT UploadDataStream {
virtual const std::vector<std::unique_ptr<UploadElementReader>>*
GetElementReaders() const;
+ // Returns the upload progress. If the stream is not initialized
+ // succesfully, it returns empty UploadProgress.
+ virtual UploadProgress GetUploadProgress() const;
+
protected:
// Must be called by subclasses when InitInternal and ReadInternal complete
// asynchronously.

Powered by Google App Engine
This is Rietveld 408576698