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

Issue 2905763002: Deduplicating CanReadRequestBody code. (Closed)

Created:
3 years, 7 months ago by Łukasz Anforowicz
Modified:
3 years, 6 months ago
Reviewers:
ncarter (slow), mmenke
CC:
chromium-reviews, creis+watch_chromium.org, nasko+codewatch_chromium.org, jam, Randy Smith (Not in Mondays), darin-cc_chromium.org, loading-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Deduplicating CanReadRequestBody code. The same validation of ResourceRequestBody needs to be done from - RenderFrameHostImpl::OnBeginNavigation (renderer-initiated navigations via PlzNavigate) - RenderFrameProxyHost::OnOpenURL (renderer-initiated navigations that navigate a remote frame; this is used with and without PlzNavigate). - ResourceDispatcherHostImpl::ShouldServiceRequest (before PlzNavigate this applies to navigations; after PlzNavigate this will only be used for XHRs) BUG=726067 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation Review-Url: https://codereview.chromium.org/2905763002 Cr-Commit-Position: refs/heads/master@{#475693} Committed: https://chromium.googlesource.com/chromium/src/+/5e8bef0e04a637592c3443eb58a32091449d987a

Patch Set 1 #

Patch Set 2 : Tweaking content/browser/loader/DEPS #

Total comments: 7

Patch Set 3 : Rebasing - now resource_request_body_browser_utils.* files are added in the "parent" CL @ https://c… #

Patch Set 4 : Rebasing... #

Unified diffs Side-by-side diffs Delta from patch set Stats (+14 lines, -67 lines) Patch
M content/browser/child_process_security_policy_impl.h View 1 2 3 2 chunks +6 lines, -9 lines 0 comments Download
M content/browser/frame_host/render_frame_host_impl.h View 1 2 3 1 chunk +0 lines, -4 lines 0 comments Download
M content/browser/frame_host/render_frame_host_impl.cc View 1 2 3 2 chunks +2 lines, -31 lines 0 comments Download
M content/browser/loader/resource_dispatcher_host_impl.cc View 1 2 3 1 chunk +6 lines, -23 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 37 (25 generated)
Łukasz Anforowicz
mmenke@ - could you PTAL at the question I had about content/browser/loader/DEPS (see below). nick@ ...
3 years, 7 months ago (2017-05-25 16:11:37 UTC) #8
mmenke
https://codereview.chromium.org/2905763002/diff/20001/content/browser/loader/DEPS File content/browser/loader/DEPS (right): https://codereview.chromium.org/2905763002/diff/20001/content/browser/loader/DEPS#newcode157 content/browser/loader/DEPS:157: "+content/browser/resource_request_body_browser_utils.h", On 2017/05/25 16:11:37, Łukasz A. wrote: > I ...
3 years, 7 months ago (2017-05-25 16:31:08 UTC) #11
Łukasz Anforowicz
https://codereview.chromium.org/2905763002/diff/20001/content/browser/loader/DEPS File content/browser/loader/DEPS (right): https://codereview.chromium.org/2905763002/diff/20001/content/browser/loader/DEPS#newcode157 content/browser/loader/DEPS:157: "+content/browser/resource_request_body_browser_utils.h", On 2017/05/25 16:31:08, mmenke wrote: > On 2017/05/25 ...
3 years, 7 months ago (2017-05-25 16:50:26 UTC) #12
mmenke
Yea, the DEPs change (And RDH change) LGTM. Didn't look at underlying logic to compare ...
3 years, 7 months ago (2017-05-25 17:20:25 UTC) #13
mmenke
Oh, and that comment is completely optional, just think the current code could leave me, ...
3 years, 7 months ago (2017-05-25 17:21:24 UTC) #14
Łukasz Anforowicz
FYI - I had to move introduction of resource_request_body_browser_utils.* into the parent CL (https://crrev.com/2908433003), so ...
3 years, 7 months ago (2017-05-25 20:02:33 UTC) #19
mmenke
On 2017/05/25 20:02:33, Łukasz A. wrote: > FYI - I had to move introduction of ...
3 years, 7 months ago (2017-05-25 20:05:57 UTC) #20
ncarter (slow)
lgtm
3 years, 6 months ago (2017-05-30 19:08:48 UTC) #27
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/2905763002/60001
3 years, 6 months ago (2017-05-30 19:43:59 UTC) #30
commit-bot: I haz the power
Try jobs failed on following builders: linux_site_isolation on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_site_isolation/builds/8248)
3 years, 6 months ago (2017-05-30 19:58:52 UTC) #32
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/2905763002/60001
3 years, 6 months ago (2017-05-30 20:33:55 UTC) #34
commit-bot: I haz the power
3 years, 6 months ago (2017-05-30 23:42:00 UTC) #37
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/5e8bef0e04a637592c3443eb58a3...

Powered by Google App Engine
This is Rietveld 408576698