|
Send the decoded size when response completed and stop summing in ResourceLoader::DidReceiveData()
When the size properties of PerformanceResourceTiming were introduced by
https://crrev.com/2105713002, both encodedBodySize and decodedBodySize were
summed up in ResourceLoader::DidReceiveData().
The CL https://crrev.com/2510333002 changed this to send encodedBodySize when
response completed. And currently only decodedBodySize is summed up in
ResourceLoader::DidReceiveData().
We are planning to directly pass the mojo data pipe to FetchResponseData when
fetch() API is used. If we do so, ResourceLoader::DidReceiveData() will not be
called. And it will not be guaranteed that the renderer process read the all
data before the RequestComplete IPC. This will be a problem because the size
properties are passed to the ResourceTimingInfo structure when the renderer
receives the RequestComplete IPC message.
So this cl change it to send the decodedBodySize when response completed same as
encodedBodySize.
And this is also useful to support the resource timing info for service worker
navigation preload response where we don't use ResourceLoader.
BUG= 712809
Review-Url: https://codereview.chromium.org/2835123005
Cr-Commit-Position: refs/heads/master@{#467744}
Committed: https://chromium.googlesource.com/chromium/src/+/e8442e6b8cab49e5e56f24d2779ee48cce71b2d5
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+181 lines, -125 lines) |
Patch |
|
M |
chrome/renderer/extensions/extension_localization_peer.h
|
View
|
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
|
M |
chrome/renderer/extensions/extension_localization_peer.cc
|
View
|
|
2 chunks |
+8 lines, -7 lines |
0 comments
|
Download
|
|
M |
chrome/renderer/extensions/extension_localization_peer_unittest.cc
|
View
|
|
7 chunks |
+21 lines, -17 lines |
0 comments
|
Download
|
|
M |
chrome/renderer/security_filter_peer.h
|
View
|
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
|
M |
chrome/renderer/security_filter_peer.cc
|
View
|
|
2 chunks |
+3 lines, -2 lines |
0 comments
|
Download
|
|
M |
content/browser/loader/async_resource_handler.cc
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
content/browser/loader/mojo_async_resource_handler.h
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
content/browser/loader/mojo_async_resource_handler.cc
|
View
|
|
2 chunks |
+4 lines, -1 line |
0 comments
|
Download
|
|
M |
content/child/resource_dispatcher.cc
|
View
|
|
2 chunks |
+3 lines, -1 line |
0 comments
|
Download
|
|
M |
content/child/resource_dispatcher_unittest.cc
|
View
|
|
1 chunk |
+6 lines, -4 lines |
0 comments
|
Download
|
|
M |
content/child/test_request_peer.h
|
View
|
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
|
M |
content/child/test_request_peer.cc
|
View
|
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
|
M |
content/child/url_response_body_consumer_unittest.cc
|
View
|
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
|
M |
content/child/web_url_loader_impl.cc
|
View
|
|
9 chunks |
+17 lines, -12 lines |
0 comments
|
Download
|
|
M |
content/child/web_url_loader_impl_unittest.cc
|
View
|
|
5 chunks |
+10 lines, -5 lines |
0 comments
|
Download
|
|
M |
content/common/resource_messages.h
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
content/common/resource_request_completion_status.h
|
View
|
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
|
M |
content/public/child/request_peer.h
|
View
|
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
|
M |
content/renderer/fetchers/resource_fetcher_impl.cc
|
View
|
|
1 chunk |
+4 lines, -2 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/loader/PingLoader.cpp
|
View
|
|
2 chunks |
+14 lines, -6 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/loader/resource/ImageResource.cpp
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/loader/resource/ImageResourceTest.cpp
|
View
|
|
9 chunks |
+13 lines, -9 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/platform/exported/WebURLLoaderTestDelegate.cpp
|
View
|
|
1 chunk |
+8 lines, -4 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/platform/exported/WebURLResponse.cpp
|
View
|
|
1 chunk |
+0 lines, -8 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/platform/loader/fetch/Resource.h
|
View
|
|
1 chunk |
+4 lines, -4 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/platform/loader/fetch/ResourceFetcherTest.cpp
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/platform/loader/fetch/ResourceLoader.h
|
View
|
|
1 chunk |
+4 lines, -2 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/platform/loader/fetch/ResourceLoader.cpp
|
View
|
|
5 chunks |
+12 lines, -7 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/platform/loader/fetch/ResourceResponse.h
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/platform/loader/fetch/ResourceResponse.cpp
|
View
|
|
1 chunk |
+4 lines, -4 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/platform/testing/weburl_loader_mock.cc
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/web/tests/sim/SimNetwork.h
|
View
|
|
1 chunk |
+4 lines, -2 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/web/tests/sim/SimNetwork.cpp
|
View
|
|
2 chunks |
+8 lines, -5 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/web/tests/sim/SimRequest.cpp
|
View
|
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
|
M |
third_party/WebKit/public/platform/WebURLLoaderClient.h
|
View
|
|
1 chunk |
+4 lines, -2 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/public/platform/WebURLLoaderTestDelegate.h
|
View
|
|
1 chunk |
+4 lines, -2 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/public/platform/WebURLResponse.h
|
View
|
|
1 chunk |
+0 lines, -6 lines |
0 comments
|
Download
|
Dependent Patchsets:
Total messages: 26 (18 generated)
|