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

Issue 1659163006: Teach navigation throttles how to cancel requests in WillProcessResponse. (Closed)

Created:
4 years, 10 months ago by Mike West
Modified:
4 years, 10 months ago
Reviewers:
palmer, clamy, nasko
CC:
chromium-reviews, creis+watch_chromium.org, darin-cc_chromium.org, jam, loading-reviews_chromium.org, nasko+codewatch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Teach navigation throttles how to cancel requests in WillProcessResponse. This is the first step towards moving various response-time checks up from Blink into the browser. To support things like 'X-Frame-Options', we'll need to do throttle checks after we can evaluate headers. This patch starts us down that path by teaching NavigationHandleImpl, NavigationResourceThrottle, and NavigationThrottle about response-time checks. This patch shouldn't introduce any behavioral changes, as no NavigationThrottle actually uses the new functionality yet. We'll start using the new functionality with the patch at https://codereview.chromium.org/1617043002. BUG=555418, 574997 TBR=palmer@chromium.org CQ_INCLUDE_TRYBOTS=tryserver.chromium.linux:linux_site_isolation ------------------------------------------------------------------------ This will be a re-land of the patch from https://crrev.com/409b51d438ea3f99d37025372adaf4d730553857 which was reverted due to timeouts in the Windows builder. ------------------------------------------------------------------------ Committed: https://crrev.com/59145851ada35fbf11d3cc39b4f98d462afdca60 Cr-Commit-Position: refs/heads/master@{#373557}

Patch Set 1 #

Patch Set 2 : split #

Total comments: 1

Patch Set 3 : Disable the test on WIN. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+334 lines, -15 lines) Patch
M chrome/browser/ssl/ssl_browser_tests.cc View 1 2 2 chunks +55 lines, -2 lines 0 comments Download
M content/browser/frame_host/navigation_handle_impl.h View 3 chunks +15 lines, -0 lines 0 comments Download
M content/browser/frame_host/navigation_handle_impl.cc View 3 chunks +68 lines, -4 lines 0 comments Download
M content/browser/frame_host/navigation_handle_impl_unittest.cc View 30 chunks +161 lines, -4 lines 0 comments Download
M content/browser/loader/navigation_resource_throttle.cc View 4 chunks +21 lines, -5 lines 0 comments Download
M content/public/browser/navigation_throttle.h View 1 chunk +9 lines, -0 lines 0 comments Download
M content/public/browser/navigation_throttle.cc View 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 19 (10 generated)
Mike West
Hey clamy@ and nasko@! I'd like to reland this, but it's not at all clear ...
4 years, 10 months ago (2016-02-03 12:46:21 UTC) #2
nasko
On 2016/02/03 12:46:21, Mike West (OOO until 2nd) wrote: > Hey clamy@ and nasko@! I'd ...
4 years, 10 months ago (2016-02-03 22:44:56 UTC) #3
nasko
LGTM with a note. https://codereview.chromium.org/1659163006/diff/20001/content/public/browser/navigation_throttle.h File content/public/browser/navigation_throttle.h (right): https://codereview.chromium.org/1659163006/diff/20001/content/public/browser/navigation_throttle.h#newcode65 content/public/browser/navigation_throttle.h:65: virtual ThrottleCheckResult WillProcessResponse(); In general, ...
4 years, 10 months ago (2016-02-03 22:48:27 UTC) #4
Mike West
Thanks, nasko@. I've addressed your comments. TBRing palmer@ for the test change, as I assume ...
4 years, 10 months ago (2016-02-04 09:03:46 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1659163006/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1659163006/40001
4 years, 10 months ago (2016-02-04 09:04:16 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: linux_site_isolation on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_site_isolation/builds/875)
4 years, 10 months ago (2016-02-04 12:58:59 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1659163006/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1659163006/40001
4 years, 10 months ago (2016-02-04 17:21:23 UTC) #16
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 10 months ago (2016-02-04 17:39:36 UTC) #17
commit-bot: I haz the power
4 years, 10 months ago (2016-02-04 17:41:01 UTC) #19
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/59145851ada35fbf11d3cc39b4f98d462afdca60
Cr-Commit-Position: refs/heads/master@{#373557}

Powered by Google App Engine
This is Rietveld 408576698