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 b3f360ef67f16bc83b2d1ad42185483d2d5bea41..9c269613e6952436c8cbd5ded1f309830c5816ab 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/log/net_log.h" |
| namespace net { |
| @@ -43,7 +44,7 @@ class NET_EXPORT UploadDataStream { |
| // Returns OK on success. Returns ERR_UPLOAD_FILE_CHANGED if the expected |
| // file modification time is set (usually not set, but set for sliced |
| // files) and the target file is changed. |
| - int Init(const CompletionCallback& callback); |
| + int Init(const CompletionCallback& callback, const BoundNetLog& net_log); |
| // When possible, reads up to |buf_len| bytes synchronously from the upload |
| // data stream to |buf| and returns the number of bytes read; otherwise, |
| @@ -107,7 +108,7 @@ class NET_EXPORT UploadDataStream { |
| // See Init(). If it returns ERR_IO_PENDING, OnInitCompleted must be called |
| // once it completes. If the upload is not chunked, SetSize must be called |
| // before it completes. |
| - virtual int InitInternal() = 0; |
| + virtual int InitInternal(const BoundNetLog& net_log) = 0; |
|
mmenke
2016/08/10 20:44:50
Is a BoundNetLog needed here? Doesn't look like a
maksims (do not use this acc)
2016/08/16 12:00:19
DevToolsNetworkUploadDataStream::InitInternal call
|
| // See Read(). For chunked uploads, must call SetIsFinalChunk if this is the |
| // final chunk. For non-chunked uploads, the UploadDataStream determins which |
| @@ -135,6 +136,8 @@ class NET_EXPORT UploadDataStream { |
| CompletionCallback callback_; |
| + BoundNetLog net_log_; |
| + |
| DISALLOW_COPY_AND_ASSIGN(UploadDataStream); |
| }; |