| 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 3d49ad233d242badf58232f4f1897b3740ef2330..20c7c7900b0dd5dccb2260d80679cd231d606556 100644
|
| --- a/net/url_request/url_fetcher_core.cc
|
| +++ b/net/url_request/url_fetcher_core.cc
|
| @@ -936,16 +936,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 {
|
|
|