Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1808)

Unified Diff: content/child/test_request_peer.cc

Issue 2591383003: Implement SetDefersLoading on content::URLLoaderClientImpl (Closed)
Patch Set: fix Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/child/test_request_peer.h ('k') | content/child/url_loader_client_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/test_request_peer.cc
diff --git a/content/child/test_request_peer.cc b/content/child/test_request_peer.cc
index 25200d5321a9eddf1ed1ae3e3fbf1b1fb5bd5f40..47add960f213df15dd5ea5eaa7ec9c1aa6ccf277 100644
--- a/content/child/test_request_peer.cc
+++ b/content/child/test_request_peer.cc
@@ -68,6 +68,8 @@ void TestRequestPeer::OnTransferSizeUpdated(int transfer_size_diff) {
if (context_->cancelled)
return;
context_->total_encoded_data_length += transfer_size_diff;
+ if (context_->defer_on_transfer_size_updated)
+ dispatcher_->SetDefersLoading(context_->request_id, true);
}
void TestRequestPeer::OnCompletedRequest(int error_code,
« no previous file with comments | « content/child/test_request_peer.h ('k') | content/child/url_loader_client_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698