| Index: net/url_request/url_fetcher_core.cc
|
| diff --git a/net/url_request/url_fetcher_core.cc b/net/url_request/url_fetcher_core.cc
|
| index d4fc8990ef92eae791999ef4b97d2ede5d25ccbc..d83f52f2ccbc15532d8c314e0142176ba4901b52 100644
|
| --- a/net/url_request/url_fetcher_core.cc
|
| +++ b/net/url_request/url_fetcher_core.cc
|
| @@ -932,16 +932,19 @@ void URLFetcherCore::InformDelegateDownloadProgress() {
|
| delegate_task_runner_->PostTask(
|
| FROM_HERE,
|
| base::Bind(
|
| - &URLFetcherCore::InformDelegateDownloadProgressInDelegateThread,
|
| - this, current_response_bytes_, total_response_bytes_));
|
| + &URLFetcherCore::InformDelegateDownloadProgressInDelegateThread, this,
|
| + current_response_bytes_, total_response_bytes_,
|
| + request_->GetTotalReceivedBytes()));
|
| }
|
|
|
| void URLFetcherCore::InformDelegateDownloadProgressInDelegateThread(
|
| int64_t current,
|
| - int64_t total) {
|
| + int64_t total,
|
| + int64_t current_network_bytes) {
|
| DCHECK(delegate_task_runner_->BelongsToCurrentThread());
|
| if (delegate_)
|
| - delegate_->OnURLFetchDownloadProgress(fetcher_, current, total);
|
| + delegate_->OnURLFetchDownloadProgress(fetcher_, current, total,
|
| + current_network_bytes);
|
| }
|
|
|
| void URLFetcherCore::AssertHasNoUploadData() const {
|
|
|