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

Issue 2758993002: Move the functions which block, resume and cancel requests for a frame route id out of ResourceDisp… (Closed)

Created:
3 years, 9 months ago by ananta
Modified:
3 years, 9 months ago
Reviewers:
jam
CC:
chromium-reviews, extensions-reviews_chromium.org, creis+watch_chromium.org, nasko+codewatch_chromium.org, jam, Randy Smith (Not in Mondays), darin-cc_chromium.org, loading-reviews_chromium.org, chromium-apps-reviews_chromium.org, mmenke
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Move the functions which block, resume and cancel requests for a frame route id out of ResourceDispatcherHost The functions BlockRequestsForFrameFromUI, ResumeBlockedRequestsForFrameFromUI and CancelBlockedRequestsForFrameFromUI have been moved to the RenderFrameHost class. The FromUI suffix has been dropped. The implementations of these functions live in render_frame_host_impl.cc. I also moved/renamed the helpers like NotifyForEachFrameFromUI, etc to render_frame_host_impl.cc The remaining reference to RFH/FTN in RDHI is in the LogResourceRequestTimeOnUI() function. Will address that in a subsequent patchset. This is part of the changes to make the content/browser/loader folder not depend on extraneous content, which will facilitate this code becoming part of the network service. BUG=598073 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation Review-Url: https://codereview.chromium.org/2758993002 Cr-Commit-Position: refs/heads/master@{#458567} Committed: https://chromium.googlesource.com/chromium/src/+/a0a1b3df67b6a958b8dd7007cc8edcae18a4d9bb

Patch Set 1 #

Patch Set 2 : Fix build error #

Patch Set 3 : Remove DCHECK for RDHI on the same lines as the old code #

Total comments: 4

Patch Set 4 : Address review comments #

Patch Set 5 : Fix include #

Patch Set 6 : Rebased to tip #

Unified diffs Side-by-side diffs Delta from patch set Stats (+85 lines, -156 lines) Patch
M content/browser/frame_host/interstitial_page_impl.cc View 1 2 3 4 2 chunks +4 lines, -4 lines 0 comments Download
M content/browser/frame_host/render_frame_host_impl.h View 1 2 3 4 5 2 chunks +5 lines, -0 lines 0 comments Download
M content/browser/frame_host/render_frame_host_impl.cc View 1 2 3 4 5 3 chunks +64 lines, -1 line 0 comments Download
M content/browser/loader/resource_dispatcher_host_impl.h View 1 2 chunks +0 lines, -12 lines 0 comments Download
M content/browser/loader/resource_dispatcher_host_impl.cc View 2 chunks +0 lines, -95 lines 0 comments Download
M content/browser/security_exploit_browsertest.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M content/public/browser/BUILD.gn View 1 chunk +0 lines, -1 line 0 comments Download
M content/public/browser/render_frame_host.h View 1 2 3 4 5 1 chunk +9 lines, -0 lines 0 comments Download
M content/public/browser/resource_dispatcher_host.h View 2 chunks +0 lines, -11 lines 0 comments Download
D content/public/browser/resource_dispatcher_host.cc View 1 chunk +0 lines, -27 lines 0 comments Download
M extensions/browser/app_window/app_window_contents.cc View 1 2 3 3 chunks +2 lines, -4 lines 0 comments Download

Messages

Total messages: 31 (25 generated)
ananta
Please see if this approach is reasonable. Thanks
3 years, 9 months ago (2017-03-18 00:52:21 UTC) #3
jam
https://codereview.chromium.org/2758993002/diff/40001/content/public/browser/render_frame_host.h File content/public/browser/render_frame_host.h (right): https://codereview.chromium.org/2758993002/diff/40001/content/public/browser/render_frame_host.h#newcode64 content/public/browser/render_frame_host.h:64: static void BlockRequestsForFrame(RenderFrameHost* root_frame_host); why are these static instead ...
3 years, 9 months ago (2017-03-20 21:56:09 UTC) #16
ananta
https://codereview.chromium.org/2758993002/diff/40001/content/public/browser/render_frame_host.h File content/public/browser/render_frame_host.h (right): https://codereview.chromium.org/2758993002/diff/40001/content/public/browser/render_frame_host.h#newcode64 content/public/browser/render_frame_host.h:64: static void BlockRequestsForFrame(RenderFrameHost* root_frame_host); On 2017/03/20 21:56:09, jam wrote: ...
3 years, 9 months ago (2017-03-20 23:03:14 UTC) #17
jam
lgtm
3 years, 9 months ago (2017-03-21 20:31:29 UTC) #26
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/2758993002/100001
3 years, 9 months ago (2017-03-21 21:44:08 UTC) #28
commit-bot: I haz the power
3 years, 9 months ago (2017-03-21 21:53:53 UTC) #31
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://chromium.googlesource.com/chromium/src/+/a0a1b3df67b6a958b8dd7007cc8e...

Powered by Google App Engine
This is Rietveld 408576698