| 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..437dbc594b2c4eb822df8380415a19d3696e0794 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,11 @@ class NET_EXPORT UploadDataStream {
|
| virtual const std::vector<std::unique_ptr<UploadElementReader>>*
|
| GetElementReaders() const;
|
|
|
| + // Returns the upload progress. If the stream was not initialized
|
| + // successfully, or has been reset and not yet re-initialized, returns an
|
| + // empty UploadProgress.
|
| + virtual UploadProgress GetUploadProgress() const;
|
| +
|
| protected:
|
| // Must be called by subclasses when InitInternal and ReadInternal complete
|
| // asynchronously.
|
|
|