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

Issue 2316573002: PlzNavigate: Support ResourceTiming API (Closed)

Created:
4 years, 3 months ago by arthursonzogni
Modified:
4 years, 2 months ago
CC:
blink-reviews, blink-reviews-api_chromium.org, chromium-reviews, clamy, creis+watch_chromium.org, darin-cc_chromium.org, dglazkov+blink, gavinp+loader_chromium.org, Nate Chapin, loading-reviews+fetch_chromium.org, mlamouri+watch-content_chromium.org, nasko+codewatch_chromium.org, tyoshino+watch_chromium.org, Yoav Weiss
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

PlzNavigate: Support ResourceTiming API With browser-side-navigation, there are no trace of previous navigation responses in the redirect chain. This CL forward these informations to blink for making the Resource Timing API working. BUG=641912 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation Committed: https://crrev.com/d563574ba6b1beec7cf5fcdb994ffb3cc49ec64d Cr-Commit-Position: refs/heads/master@{#422797}

Patch Set 1 #

Total comments: 1

Patch Set 2 : Support resourceLoadInfo (encodedDataLength) #

Total comments: 6

Patch Set 3 : Move redirect response inside the final response. #

Total comments: 6

Patch Set 4 : Addressed comments. #

Total comments: 4

Patch Set 5 : Addressed comments (clamy@) #

Total comments: 2

Patch Set 6 : nit: ResourceResponseInfo->ResourceResponseInfos #

Total comments: 2

Patch Set 7 : Nit: navigationStart -> navigationStartSeconds #

Patch Set 8 : Nit + rebase + build fix #

Total comments: 1

Patch Set 9 : Addressed comments (@nasko) #

Patch Set 10 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+199 lines, -100 lines) Patch
M content/browser/frame_host/navigation_request.cc View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -0 lines 0 comments Download
M content/browser/loader/navigation_resource_handler.cc View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M content/child/web_url_loader_impl.h View 1 2 3 4 5 6 7 1 chunk +5 lines, -1 line 0 comments Download
M content/child/web_url_loader_impl.cc View 1 2 3 4 5 6 7 8 9 4 chunks +22 lines, -2 lines 0 comments Download
M content/child/web_url_loader_impl_unittest.cc View 1 2 3 4 5 6 7 1 chunk +4 lines, -4 lines 0 comments Download
M content/common/frame_messages.h View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M content/common/navigation_params.h View 1 2 3 4 5 6 7 8 9 2 chunks +4 lines, -0 lines 0 comments Download
M content/renderer/media/android/media_info_loader.h View 1 2 3 4 5 6 7 1 chunk +4 lines, -4 lines 0 comments Download
M content/renderer/media/android/media_info_loader.cc View 1 2 3 4 5 6 7 1 chunk +4 lines, -4 lines 0 comments Download
M content/renderer/media/android/media_info_loader_unittest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/pepper/pepper_url_loader_host.h View 1 1 chunk +1 line, -2 lines 0 comments Download
M content/renderer/pepper/pepper_url_loader_host.cc View 1 1 chunk +1 line, -2 lines 0 comments Download
M content/renderer/render_frame_impl.cc View 1 2 3 4 5 6 7 8 9 2 chunks +9 lines, -3 lines 0 comments Download
M media/blink/multibuffer_data_source_unittest.cc View 1 2 3 4 5 6 7 8 9 3 chunks +3 lines, -3 lines 0 comments Download
M media/blink/resource_multibuffer_data_provider.h View 1 1 chunk +4 lines, -4 lines 0 comments Download
M media/blink/resource_multibuffer_data_provider.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -2 lines 0 comments Download
M media/blink/resource_multibuffer_data_provider_unittest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/FlagExpectations/enable-browser-side-navigation View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -9 lines 0 comments Download
M third_party/WebKit/Source/core/fetch/ResourceFetcher.h View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -4 lines 0 comments Download
M third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp View 1 2 3 4 5 6 7 8 9 6 chunks +33 lines, -12 lines 0 comments Download
M third_party/WebKit/Source/core/fetch/ResourceFetcherTest.cpp View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/fetch/ResourceLoader.h View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/core/fetch/ResourceLoader.cpp View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/loader/PingLoader.cpp View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/timing/PerformanceResourceTiming.cpp View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/exported/WebURLRequest.cpp View 1 2 3 4 5 6 7 8 9 2 chunks +6 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/exported/WebURLResponse.cpp View 1 2 3 4 5 6 7 8 9 2 chunks +12 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/network/ResourceRequest.h View 1 2 3 4 5 6 7 8 9 4 chunks +9 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/network/ResourceRequest.cpp View 1 2 3 4 5 6 7 8 9 2 chunks +6 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/network/ResourceResponse.h View 1 2 3 4 5 6 7 8 9 5 chunks +21 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/network/ResourceResponse.cpp View 1 2 3 4 5 6 7 8 9 6 chunks +15 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/network/ResourceTimingInfo.h View 1 2 3 4 5 6 7 8 9 3 chunks +5 lines, -9 lines 0 comments Download
M third_party/WebKit/Source/platform/network/ResourceTimingInfo.cpp View 1 2 3 4 5 6 7 8 9 4 chunks +4 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/platform/testing/weburl_loader_mock.cc View 1 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/web/AssociatedURLLoader.cpp View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/web/AssociatedURLLoaderTest.cpp View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/public/platform/WebURLLoaderClient.h View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/public/platform/WebURLRequest.h View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/public/platform/WebURLResponse.h View 1 2 3 4 5 6 7 8 9 2 chunks +6 lines, -0 lines 0 comments Download

Messages

Total messages: 67 (43 generated)
arthursonzogni
Hi jochen@ and nasko@, I make the Resource Timing API working with PlzNavigate. Basically, I ...
4 years, 3 months ago (2016-09-06 09:09:10 UTC) #3
arthursonzogni
https://codereview.chromium.org/2316573002/diff/1/third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp File third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp (right): https://codereview.chromium.org/2316573002/diff/1/third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp#newcode648 third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp:648: long long encodedDataLength = 0; Oops, I didn't see ...
4 years, 3 months ago (2016-09-06 10:00:48 UTC) #4
arthursonzogni
I fixed the problem with encoded_data_length. I will add an owner of media/ and CC ...
4 years, 3 months ago (2016-09-06 14:59:53 UTC) #5
jochen (gone - plz use gerrit)
Nate is a better review for the blink side of this.
4 years, 3 months ago (2016-09-06 15:03:16 UTC) #7
arthursonzogni
Hi Nate, Could you please take a look at the blink part ? Thanks!
4 years, 3 months ago (2016-09-06 15:17:36 UTC) #8
Nate Chapin
https://codereview.chromium.org/2316573002/diff/20001/third_party/WebKit/Source/platform/network/ResourceRequest.h File third_party/WebKit/Source/platform/network/ResourceRequest.h (right): https://codereview.chromium.org/2316573002/diff/20001/third_party/WebKit/Source/platform/network/ResourceRequest.h#newcode247 third_party/WebKit/Source/platform/network/ResourceRequest.h:247: const std::vector<WebURLResponse>& previousResponses() const { return m_responses; } Conceptually, ...
4 years, 3 months ago (2016-09-06 22:03:42 UTC) #9
arthursonzogni
Hi Nate, Thanks for you comments! I moved the redirect ResourceResponse into the final ResourceResponse. ...
4 years, 3 months ago (2016-09-08 13:01:09 UTC) #11
Nate Chapin
blink parts are looking pretty good. Just a few smaller things. https://codereview.chromium.org/2316573002/diff/40001/third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp File third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp (right): ...
4 years, 3 months ago (2016-09-08 18:41:14 UTC) #12
arthursonzogni
Thank you Nate. My last patch solves your comments. https://codereview.chromium.org/2316573002/diff/40001/third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp File third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp (right): https://codereview.chromium.org/2316573002/diff/40001/third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp#newcode618 third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp:618: ...
4 years, 3 months ago (2016-09-09 12:45:33 UTC) #13
Nate Chapin
blink LGTM
4 years, 3 months ago (2016-09-09 16:27:14 UTC) #14
nasko
Hey Camille, Would you be able to review this CL? I have a few others ...
4 years, 3 months ago (2016-09-09 21:17:34 UTC) #15
clamy
Thanks! The code in content/ looks mostly good, a few comments below. https://codereview.chromium.org/2316573002/diff/60001/content/common/navigation_params.h File content/common/navigation_params.h ...
4 years, 3 months ago (2016-09-12 15:46:33 UTC) #17
arthursonzogni
Thanks for your comments! https://codereview.chromium.org/2316573002/diff/60001/content/common/navigation_params.h File content/common/navigation_params.h (right): https://codereview.chromium.org/2316573002/diff/60001/content/common/navigation_params.h#newcode249 content/common/navigation_params.h:249: // Any ResourceResponseInfo that occured ...
4 years, 3 months ago (2016-09-17 00:58:32 UTC) #19
clamy
Thanks! Lgtm https://codereview.chromium.org/2316573002/diff/100001/content/common/navigation_params.h File content/common/navigation_params.h (right): https://codereview.chromium.org/2316573002/diff/100001/content/common/navigation_params.h#newcode249 content/common/navigation_params.h:249: // The ResourceResponseInfo received during redirects. nit:s/ResourceResponseInfo/ResourceResponseInfos ...
4 years, 3 months ago (2016-09-19 12:10:47 UTC) #20
arthursonzogni
Thanks! Now, I can add reviewers for the remaining files that aren't LGTM. ____ Hi ...
4 years, 3 months ago (2016-09-19 13:15:37 UTC) #22
jochen (gone - plz use gerrit)
lgtm with naming nit https://codereview.chromium.org/2316573002/diff/120001/third_party/WebKit/Source/platform/exported/WebURLRequest.cpp File third_party/WebKit/Source/platform/exported/WebURLRequest.cpp (right): https://codereview.chromium.org/2316573002/diff/120001/third_party/WebKit/Source/platform/exported/WebURLRequest.cpp#newcode472 third_party/WebKit/Source/platform/exported/WebURLRequest.cpp:472: void WebURLRequest::setNavigationStartTime(double navigationStart) please add ...
4 years, 3 months ago (2016-09-19 14:55:33 UTC) #23
jam
lgtm
4 years, 3 months ago (2016-09-19 17:04:06 UTC) #24
arthursonzogni
Thanks jochen@ and jam@! https://codereview.chromium.org/2316573002/diff/120001/third_party/WebKit/Source/platform/exported/WebURLRequest.cpp File third_party/WebKit/Source/platform/exported/WebURLRequest.cpp (right): https://codereview.chromium.org/2316573002/diff/120001/third_party/WebKit/Source/platform/exported/WebURLRequest.cpp#newcode472 third_party/WebKit/Source/platform/exported/WebURLRequest.cpp:472: void WebURLRequest::setNavigationStartTime(double navigationStart) On 2016/09/19 ...
4 years, 3 months ago (2016-09-20 11:02:34 UTC) #25
jochen (gone - plz use gerrit)
yes please :)
4 years, 3 months ago (2016-09-20 11:13:42 UTC) #26
nasko
LGTM and apologies for the delay. https://codereview.chromium.org/2316573002/diff/240001/content/common/frame_messages.h File content/common/frame_messages.h (right): https://codereview.chromium.org/2316573002/diff/240001/content/common/frame_messages.h#newcode375 content/common/frame_messages.h:375: IPC_STRUCT_TRAITS_MEMBER(redirect_response_infos) Very minor ...
4 years, 3 months ago (2016-09-21 20:39:40 UTC) #51
arthursonzogni
On 2016/09/21 20:39:40, nasko (slow) wrote: > LGTM and apologies for the delay. > > ...
4 years, 2 months ago (2016-09-27 13:38:49 UTC) #53
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2316573002/310001
4 years, 2 months ago (2016-10-04 15:03:29 UTC) #64
commit-bot: I haz the power
Committed patchset #10 (id:310001)
4 years, 2 months ago (2016-10-04 15:10:24 UTC) #65
commit-bot: I haz the power
4 years, 2 months ago (2016-10-04 15:13:48 UTC) #67
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/d563574ba6b1beec7cf5fcdb994ffb3cc49ec64d
Cr-Commit-Position: refs/heads/master@{#422797}

Powered by Google App Engine
This is Rietveld 408576698