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

Unified Diff: content/child/web_url_loader_impl.cc

Issue 2163183002: Fix PerformanceResourceTiming transferSize field for sync XHR (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@resource_timing_sizes_worker_tests
Patch Set: Rebase Created 4 years, 5 months 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/web_url_loader_impl.h ('k') | content/child/web_url_loader_impl_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/web_url_loader_impl.cc
diff --git a/content/child/web_url_loader_impl.cc b/content/child/web_url_loader_impl.cc
index 918f69fc2a9dab5919d43a87fc2f837b6d003c14..cd0104333542bb72b0e91ff585fa65486a0d2de7 100644
--- a/content/child/web_url_loader_impl.cc
+++ b/content/child/web_url_loader_impl.cc
@@ -1134,7 +1134,8 @@ void WebURLLoaderImpl::PopulateURLRequestForRedirect(
void WebURLLoaderImpl::loadSynchronously(const WebURLRequest& request,
WebURLResponse& response,
WebURLError& error,
- WebData& data) {
+ WebData& data,
+ int64_t& encoded_data_length) {
TRACE_EVENT0("loading", "WebURLLoaderImpl::loadSynchronously");
SyncLoadResponse sync_load_response;
context_->Start(request, &sync_load_response);
@@ -1156,6 +1157,7 @@ void WebURLLoaderImpl::loadSynchronously(const WebURLRequest& request,
request.reportRawHeaders());
response.addToEncodedBodyLength(sync_load_response.encoded_body_length);
response.addToDecodedBodyLength(sync_load_response.data.size());
+ encoded_data_length = sync_load_response.encoded_data_length;
data.assign(sync_load_response.data.data(), sync_load_response.data.size());
}
« no previous file with comments | « content/child/web_url_loader_impl.h ('k') | content/child/web_url_loader_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698