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

Issue 2497223002: Introduce a new ResourceRequesterInfo type for NavigationPreload. (Closed)

Created:
4 years, 1 month ago by horo
Modified:
4 years ago
CC:
chromium-reviews, michaeln, jsbell+serviceworker_chromium.org, shimazu+serviceworker_chromium.org, serviceworker-reviews, jam, Randy Smith (Not in Mondays), nhiroki, kinuko+serviceworker, darin-cc_chromium.org, blink-worker-reviews_chromium.org, loading-reviews_chromium.org, horo+watch_chromium.org, kinuko+watch, tzik
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Introduce a new ResourceRequesterInfo type for NavigationPreload. Currently we use the ResourceRequesterInfo of the original navigation request in ServiceWorkerFetchDispatcher to send service worker navigation preload requests. But when BrowserSideNavigation (PlzNavigate) is enabled, the ResourceRequesterInfo of the original navigation request is not renderer type, but browser side navigation type. And we can't send the navigation preload request. To solve this problem, this CL introduces a new ResourceRequesterInfo type for service worker navigation preload requests. ResourceRequesterInfo::CreateForNavigationPreload() creates the new type info from the original navigation request info. This CL depends on https://codereview.chromium.org/2481093003/ which introduced ResourceRequesterInfo. BUG=649558 Committed: https://crrev.com/7aac46c0e9451b8214b21205638697f704cc0180 Cr-Commit-Position: refs/heads/master@{#436876}

Patch Set 1 #

Total comments: 4

Patch Set 2 : incorporated yhirano's comment #

Total comments: 2

Patch Set 3 : incorporated yhirano's comment #

Patch Set 4 : incorporated yhirano's comment #

Total comments: 9

Patch Set 5 : incorporated mmenke's comment #

Total comments: 2

Patch Set 6 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+129 lines, -27 lines) Patch
M content/browser/loader/DEPS View 1 2 3 4 2 chunks +2 lines, -0 lines 0 comments Download
M content/browser/loader/resource_dispatcher_host_impl.cc View 1 2 3 4 7 chunks +19 lines, -8 lines 0 comments Download
M content/browser/loader/resource_requester_info.h View 1 2 5 chunks +17 lines, -5 lines 0 comments Download
M content/browser/loader/resource_requester_info.cc View 1 2 3 4 2 chunks +42 lines, -0 lines 0 comments Download
M content/browser/loader/url_loader_factory_impl.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M content/browser/service_worker/service_worker_browsertest.cc View 1 2 3 4 5 3 chunks +38 lines, -0 lines 0 comments Download
M content/browser/service_worker/service_worker_fetch_dispatcher.cc View 1 2 3 4 5 1 chunk +9 lines, -9 lines 0 comments Download
M testing/buildbot/filters/browser-side-navigation.linux.content_browsertests.filter View 1 2 3 4 5 1 chunk +0 lines, -3 lines 0 comments Download

Messages

Total messages: 112 (80 generated)
horo
yhirano@ Could you please review this?
4 years ago (2016-11-30 08:19:09 UTC) #37
yhirano
https://codereview.chromium.org/2497223002/diff/140001/content/browser/loader/resource_requester_info.h File content/browser/loader/resource_requester_info.h (right): https://codereview.chromium.org/2497223002/diff/140001/content/browser/loader/resource_requester_info.h#newcode124 content/browser/loader/resource_requester_info.h:124: // navigation type requester. This comment should be fixed. ...
4 years ago (2016-12-01 09:40:02 UTC) #48
horo
https://codereview.chromium.org/2497223002/diff/140001/content/browser/loader/resource_requester_info.h File content/browser/loader/resource_requester_info.h (right): https://codereview.chromium.org/2497223002/diff/140001/content/browser/loader/resource_requester_info.h#newcode124 content/browser/loader/resource_requester_info.h:124: // navigation type requester. On 2016/12/01 09:40:02, yhirano wrote: ...
4 years ago (2016-12-01 10:37:35 UTC) #51
yhirano
lgtm https://codereview.chromium.org/2497223002/diff/160001/content/browser/loader/resource_requester_info.h File content/browser/loader/resource_requester_info.h (right): https://codereview.chromium.org/2497223002/diff/160001/content/browser/loader/resource_requester_info.h#newcode123 content/browser/loader/resource_requester_info.h:123: // this method is available for renderer type ...
4 years ago (2016-12-01 10:40:39 UTC) #52
horo
Thank you! https://codereview.chromium.org/2497223002/diff/160001/content/browser/loader/resource_requester_info.h File content/browser/loader/resource_requester_info.h (right): https://codereview.chromium.org/2497223002/diff/160001/content/browser/loader/resource_requester_info.h#newcode123 content/browser/loader/resource_requester_info.h:123: // this method is available for renderer ...
4 years ago (2016-12-01 10:43:54 UTC) #53
horo
Thank you!
4 years ago (2016-12-01 10:43:56 UTC) #54
horo
mmenke@ Could you please review content/browser/loader/*?
4 years ago (2016-12-01 10:45:34 UTC) #56
mmenke
https://codereview.chromium.org/2497223002/diff/200001/content/browser/loader/resource_dispatcher_host_impl.cc File content/browser/loader/resource_dispatcher_host_impl.cc (right): https://codereview.chromium.org/2497223002/diff/200001/content/browser/loader/resource_dispatcher_host_impl.cc#newcode1281 content/browser/loader/resource_dispatcher_host_impl.cc:1281: DCHECK(requester_info->IsRenderer()); Think this is worth an explanation (Preloads have ...
4 years ago (2016-12-01 15:26:11 UTC) #61
mmenke
https://codereview.chromium.org/2497223002/diff/200001/content/browser/loader/resource_dispatcher_host_impl.cc File content/browser/loader/resource_dispatcher_host_impl.cc (right): https://codereview.chromium.org/2497223002/diff/200001/content/browser/loader/resource_dispatcher_host_impl.cc#newcode1386 content/browser/loader/resource_dispatcher_host_impl.cc:1386: DCHECK(requester_info->IsRenderer()); On 2016/12/01 15:26:11, mmenke wrote: > I don't ...
4 years ago (2016-12-01 15:26:52 UTC) #62
horo
https://codereview.chromium.org/2497223002/diff/200001/content/browser/loader/resource_dispatcher_host_impl.cc File content/browser/loader/resource_dispatcher_host_impl.cc (right): https://codereview.chromium.org/2497223002/diff/200001/content/browser/loader/resource_dispatcher_host_impl.cc#newcode1281 content/browser/loader/resource_dispatcher_host_impl.cc:1281: DCHECK(requester_info->IsRenderer()); On 2016/12/01 15:26:11, mmenke wrote: > Think this ...
4 years ago (2016-12-02 03:41:53 UTC) #65
mmenke
LGTM. https://codereview.chromium.org/2497223002/diff/220001/content/browser/loader/resource_dispatcher_host_impl.cc File content/browser/loader/resource_dispatcher_host_impl.cc (right): https://codereview.chromium.org/2497223002/diff/220001/content/browser/loader/resource_dispatcher_host_impl.cc#newcode1391 content/browser/loader/resource_dispatcher_host_impl.cc:1391: if (requester_info->IsRenderer()) { Should we be killing wherever ...
4 years ago (2016-12-02 15:11:46 UTC) #72
horo
Thank you. https://codereview.chromium.org/2497223002/diff/220001/content/browser/loader/resource_dispatcher_host_impl.cc File content/browser/loader/resource_dispatcher_host_impl.cc (right): https://codereview.chromium.org/2497223002/diff/220001/content/browser/loader/resource_dispatcher_host_impl.cc#newcode1391 content/browser/loader/resource_dispatcher_host_impl.cc:1391: if (requester_info->IsRenderer()) { On 2016/12/02 15:11:45, mmenke ...
4 years ago (2016-12-02 15:29:18 UTC) #73
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/2497223002/220001
4 years ago (2016-12-02 15:29:50 UTC) #76
mmenke
On 2016/12/02 15:29:18, horo wrote: > Thank you. > > https://codereview.chromium.org/2497223002/diff/220001/content/browser/loader/resource_dispatcher_host_impl.cc > File content/browser/loader/resource_dispatcher_host_impl.cc (right): ...
4 years ago (2016-12-02 15:31:16 UTC) #77
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/317441)
4 years ago (2016-12-02 15:36:40 UTC) #79
horo
On 2016/12/02 15:31:16, mmenke wrote: > On 2016/12/02 15:29:18, horo wrote: > > Thank you. ...
4 years ago (2016-12-02 16:21:33 UTC) #80
horo
avi@ Could you please review this CL? This CL added "content/public/browser/resource_context.h" and "content/public/common/browser_side_navigation_policy.h" to content/browser/loader/DEPS. ...
4 years ago (2016-12-02 16:26:40 UTC) #82
horo
Ah, avi@ is ooo. kinuko@ Could you please review this CL? On 2016/12/02 16:26:40, horo ...
4 years ago (2016-12-05 23:58:42 UTC) #84
kinuko
lgtm
4 years ago (2016-12-06 03:34:29 UTC) #85
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/2497223002/220001
4 years ago (2016-12-06 03:44:28 UTC) #87
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/319108)
4 years ago (2016-12-06 03:52:40 UTC) #89
horo
clamy@ Could you please review this? > ** Presubmit ERRORS ** > Missing LGTM from ...
4 years ago (2016-12-06 03:57:38 UTC) #91
clamy
Thanks! Lgtm
4 years ago (2016-12-06 12:15:28 UTC) #92
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/2497223002/220001
4 years ago (2016-12-06 12:57:40 UTC) #94
commit-bot: I haz the power
Failed to apply patch for testing/buildbot/filters/browser-side-navigation.linux.content_browsertests.filter: While running git apply --index -p1; error: patch failed: ...
4 years ago (2016-12-06 16:10:16 UTC) #96
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/2497223002/240001
4 years ago (2016-12-06 16:21:12 UTC) #99
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/193424)
4 years ago (2016-12-06 18:08:10 UTC) #101
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/2497223002/240001
4 years ago (2016-12-06 22:37:02 UTC) #103
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/351197)
4 years ago (2016-12-07 02:21:43 UTC) #105
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/2497223002/240001
4 years ago (2016-12-07 03:02:15 UTC) #107
commit-bot: I haz the power
Committed patchset #6 (id:240001)
4 years ago (2016-12-07 05:55:41 UTC) #110
commit-bot: I haz the power
4 years ago (2016-12-07 05:57:59 UTC) #112
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/7aac46c0e9451b8214b21205638697f704cc0180
Cr-Commit-Position: refs/heads/master@{#436876}

Powered by Google App Engine
This is Rietveld 408576698