Chromium Code Reviews| 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. |
|
mmenke
2016/09/12 19:35:31
Maybe replace the second sentence with "If the str
mmenke
2016/09/12 19:35:31
Rather unexciting, but we should probably have a t
shivanisha
2016/09/14 20:40:25
Updated the comment.
Added tests in http_stream_pa
|
| + virtual UploadProgress GetUploadProgress() const; |
| + |
| protected: |
| // Must be called by subclasses when InitInternal and ReadInternal complete |
| // asynchronously. |