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

Issue 1542743002: [RDHI] Refactored blocked_loaders_map_ to key by render frame route id (Closed)

Created:
5 years ago by Charlie Harrison
Modified:
4 years, 2 months ago
CC:
chromium-apps-reviews_chromium.org, chromium-reviews, creis+watch_chromium.org, Charlie Reis, darin-cc_chromium.org, extensions-reviews_chromium.org, jam, loading-reviews_chromium.org, nasko+codewatch_chromium.org, site-isolation-reviews_chromium.org, mmenke
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Refactored blocked_loaders_map_ to key by render frame route id This change is a necessary step to completely refactor out render view ids from the ResourceDispatcherHostImpl. This means that the interface to block, resume, or cancel requests now require passing in the frame routing id and the child id. The ResourceScheduler, SaveFile, and Downloads still use the RVID. BUG=472869 CQ_INCLUDE_TRYBOTS=tryserver.chromium.linux:linux_site_isolation Committed: https://crrev.com/a2280cd27bd434f6033d3ab0c70886c06e3882b0 Cr-Commit-Position: refs/heads/master@{#373380}

Patch Set 1 #

Patch Set 2 : fix unit tests #

Patch Set 3 : Add another call to RenderFrameHost::Init() #

Patch Set 4 : Add WebContentsObserver to notify frame deletion #

Patch Set 5 : fix tests #

Patch Set 6 : Fix cross site test (detached frame) for non-started request #

Patch Set 7 : ForEachFrame Notifier interface #

Patch Set 8 : just comments / minor restructuring (trybots previous) #

Total comments: 22

Patch Set 9 : Addressed Randy's comments #

Patch Set 10 : Better type safety (wrap those ints) #

Patch Set 11 : cleanup #

Total comments: 42

Patch Set 12 : Responded to nasko/rdsmith and added dependent patch set #

Patch Set 13 : cleanup #

Patch Set 14 : fix lambda return value #

Total comments: 22

Patch Set 15 : rebased on #369795 #

Patch Set 16 : merged onto #370424 #

Patch Set 17 : Replace FrameTree::ForEach with a for loop #

Total comments: 20

Patch Set 18 : Addressed comments (no architectural change) #

Patch Set 19 : break statements in switch #

Patch Set 20 : New, simpler API (default recurses frame tree) #

Total comments: 14

Patch Set 21 : Randy review #

Patch Set 22 : fix browsertest #

Total comments: 2

Patch Set 23 : Nasko review (name change + comments) #

Total comments: 3

Patch Set 24 : nasko nit #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+438 lines, -204 lines) Patch
M content/browser/browser_plugin/browser_plugin_guest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/frame_host/interstitial_page_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 2 chunks +15 lines, -34 lines 0 comments Download
M content/browser/frame_host/render_frame_host_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 2 chunks +2 lines, -0 lines 0 comments Download
M content/browser/frame_host/render_frame_host_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 3 chunks +6 lines, -3 lines 0 comments Download
M content/browser/loader/cross_site_resource_handler_browsertest.cc View 1 2 3 4 5 6 7 8 9 3 chunks +13 lines, -4 lines 0 comments Download
M content/browser/loader/global_routing_id.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +29 lines, -0 lines 0 comments Download
M content/browser/loader/resource_dispatcher_host_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 11 chunks +57 lines, -9 lines 0 comments Download
M content/browser/loader/resource_dispatcher_host_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 11 chunks +157 lines, -40 lines 0 comments Download
M content/browser/loader/resource_dispatcher_host_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 14 chunks +100 lines, -42 lines 0 comments Download
M content/browser/renderer_host/render_process_host_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +0 lines, -1 line 0 comments Download
M content/browser/renderer_host/render_process_host_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 1 chunk +0 lines, -4 lines 0 comments Download
M content/browser/renderer_host/render_widget_helper.h View 1 2 3 4 5 6 7 8 9 2 chunks +0 lines, -7 lines 0 comments Download
M content/browser/renderer_host/render_widget_helper.cc View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +5 lines, -19 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +0 lines, -2 lines 0 comments Download
M content/browser/security_exploit_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 1 chunk +1 line, -6 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 2 chunks +4 lines, -0 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 2 chunks +5 lines, -1 line 0 comments Download
M content/content_browser.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 1 chunk +1 line, -0 lines 0 comments Download
M content/public/browser/render_process_host.h View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -4 lines 0 comments Download
M content/public/browser/resource_dispatcher_host.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 3 chunks +11 lines, -8 lines 0 comments Download
A content/public/browser/resource_dispatcher_host.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 1 chunk +28 lines, -0 lines 0 comments Download
M content/public/test/mock_render_process_host.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +0 lines, -1 line 0 comments Download
M content/public/test/mock_render_process_host.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +0 lines, -3 lines 0 comments Download
M extensions/browser/app_window/app_window_contents.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 2 chunks +3 lines, -16 lines 1 comment Download

Messages

Total messages: 53 (8 generated)
Charlie Harrison
I'd love some high level comments on this change. Some comments of my own: - ...
4 years, 12 months ago (2015-12-28 15:37:32 UTC) #4
Randy Smith (Not in Mondays)
On 2015/12/28 15:37:32, csharrison wrote: > I'd love some high level comments on this change. ...
4 years, 11 months ago (2015-12-29 23:04:45 UTC) #5
Randy Smith (Not in Mondays)
Whoops, also had little comments as I read through. https://codereview.chromium.org/1542743002/diff/140001/content/browser/loader/global_routing_id.h File content/browser/loader/global_routing_id.h (right): https://codereview.chromium.org/1542743002/diff/140001/content/browser/loader/global_routing_id.h#newcode45 content/browser/loader/global_routing_id.h:45: ...
4 years, 11 months ago (2015-12-29 23:11:37 UTC) #6
Charlie Harrison
Addressed some inline comments. I think in a later patch I'll put the routing type ...
4 years, 11 months ago (2015-12-30 20:51:49 UTC) #7
Randy Smith (Not in Mondays)
Responses to comments inline. Given that you asked for high level comments, I'm assuming that ...
4 years, 11 months ago (2016-01-04 21:24:48 UTC) #8
Charlie Harrison
So I ended up refactoring this a bit. Some changes: 1. RDHI interface now takes ...
4 years, 11 months ago (2016-01-04 22:07:43 UTC) #9
Randy Smith (Not in Mondays)
So my primary focus in this review is on the architecture of LoaderIOThreadNotifier, and I ...
4 years, 11 months ago (2016-01-06 21:56:30 UTC) #10
nasko
Some preliminary comments, still going through the CL and only reviewed half of it. https://codereview.chromium.org/1542743002/diff/200001/content/browser/loader/global_routing_id.h ...
4 years, 11 months ago (2016-01-07 00:43:09 UTC) #11
nasko
Few more comments. https://codereview.chromium.org/1542743002/diff/200001/content/browser/browser_plugin/browser_plugin_guest.cc File content/browser/browser_plugin/browser_plugin_guest.cc (right): https://codereview.chromium.org/1542743002/diff/200001/content/browser/browser_plugin/browser_plugin_guest.cc#newcode794 content/browser/browser_plugin/browser_plugin_guest.cc:794: GetWebContents()->GetMainFrame()->Init(); Uh, this is unfortunate. Can ...
4 years, 11 months ago (2016-01-07 19:58:40 UTC) #12
Charlie Harrison
Thank you both for the reviews. I ended up putting the static methods in ResourceDispatcherHost/Impl, ...
4 years, 11 months ago (2016-01-07 22:47:06 UTC) #13
nasko
Sending the comments I have since I looked at patch set 14 earlier this week. ...
4 years, 11 months ago (2016-01-16 00:15:58 UTC) #14
nasko
Yay, done reviewing this one! https://codereview.chromium.org/1542743002/diff/320001/content/browser/loader/global_routing_id.h File content/browser/loader/global_routing_id.h (right): https://codereview.chromium.org/1542743002/diff/320001/content/browser/loader/global_routing_id.h#newcode41 content/browser/loader/global_routing_id.h:41: // Same as GlobalRoutingID ...
4 years, 11 months ago (2016-01-20 22:22:10 UTC) #15
Randy Smith (Not in Mondays)
I'm still chewing on the architecture of RDH/LIOTN. On the bright side, once we nail ...
4 years, 11 months ago (2016-01-20 23:23:19 UTC) #16
Charlie Harrison
On 2016/01/20 23:23:19, Randy Smith - Not in Fridays wrote: > I'm still chewing on ...
4 years, 11 months ago (2016-01-21 00:56:06 UTC) #17
Charlie Harrison
On 2016/01/21 00:56:06, csharrison wrote: > On 2016/01/20 23:23:19, Randy Smith - Not in Fridays ...
4 years, 11 months ago (2016-01-21 14:47:30 UTC) #18
Charlie Harrison
Responded to comments without making architectural changes. Hopefully will decide w/ Randy tomorrow how to ...
4 years, 11 months ago (2016-01-21 18:52:56 UTC) #19
Randy Smith (Not in Mondays)
On 2016/01/21 18:52:56, csharrison wrote: > Responded to comments without making architectural changes. Hopefully will ...
4 years, 11 months ago (2016-01-22 17:38:59 UTC) #20
Charlie Harrison
On 2016/01/22 17:38:59, Randy Smith - Not in Fridays wrote: > On 2016/01/21 18:52:56, csharrison ...
4 years, 11 months ago (2016-01-25 16:13:47 UTC) #21
Randy Smith (Not in Mondays)
On 2016/01/25 16:13:47, csharrison wrote: > On 2016/01/22 17:38:59, Randy Smith - Not in Fridays ...
4 years, 11 months ago (2016-01-26 20:32:12 UTC) #22
Charlie Harrison
On 2016/01/26 20:32:12, Randy Smith - Not in Fridays wrote: > On 2016/01/25 16:13:47, csharrison ...
4 years, 11 months ago (2016-01-26 20:48:10 UTC) #23
Randy Smith (Not in Mondays)
On 2016/01/26 20:48:10, csharrison wrote: > On 2016/01/26 20:32:12, Randy Smith - Not in Fridays ...
4 years, 11 months ago (2016-01-26 20:49:51 UTC) #24
nasko
On 2016/01/26 20:49:51, Randy Smith - Not in Fridays wrote: > On 2016/01/26 20:48:10, csharrison ...
4 years, 11 months ago (2016-01-27 18:31:39 UTC) #25
Randy Smith (Not in Mondays)
On 2016/01/27 18:31:39, nasko wrote: > On 2016/01/26 20:49:51, Randy Smith - Not in Fridays ...
4 years, 11 months ago (2016-01-27 19:13:57 UTC) #26
nasko
On 2016/01/27 19:13:57, Randy Smith - Not in Fridays wrote: > On 2016/01/27 18:31:39, nasko ...
4 years, 11 months ago (2016-01-27 19:28:37 UTC) #27
Charlie Harrison
On 2016/01/27 19:28:37, nasko wrote: > On 2016/01/27 19:13:57, Randy Smith - Not in Fridays ...
4 years, 11 months ago (2016-01-27 19:31:18 UTC) #28
Randy Smith (Not in Mondays)
On 2016/01/27 19:31:18, csharrison wrote: > On 2016/01/27 19:28:37, nasko wrote: > > On 2016/01/27 ...
4 years, 11 months ago (2016-01-27 20:17:02 UTC) #29
Charlie Harrison
On 2016/01/27 20:17:02, Randy Smith - Not in Fridays wrote: > On 2016/01/27 19:31:18, csharrison ...
4 years, 11 months ago (2016-01-27 20:28:28 UTC) #30
Randy Smith (Not in Mondays)
On 2016/01/27 20:28:28, csharrison wrote: > On 2016/01/27 20:17:02, Randy Smith - Not in Fridays ...
4 years, 11 months ago (2016-01-27 20:31:59 UTC) #31
Charlie Harrison
On 2016/01/27 at 20:31:59, rdsmith wrote: > On 2016/01/27 20:28:28, csharrison wrote: > > On ...
4 years, 10 months ago (2016-01-29 19:36:27 UTC) #33
Randy Smith (Not in Mondays)
This looks good; thank you. Mostly nits below. https://codereview.chromium.org/1542743002/diff/380001/content/browser/loader/resource_dispatcher_host_impl.cc File content/browser/loader/resource_dispatcher_host_impl.cc (right): https://codereview.chromium.org/1542743002/diff/380001/content/browser/loader/resource_dispatcher_host_impl.cc#newcode493 content/browser/loader/resource_dispatcher_host_impl.cc:493: void ...
4 years, 10 months ago (2016-02-01 21:19:20 UTC) #34
Charlie Harrison
Thanks for the review! https://codereview.chromium.org/1542743002/diff/380001/content/browser/loader/resource_dispatcher_host_impl.cc File content/browser/loader/resource_dispatcher_host_impl.cc (right): https://codereview.chromium.org/1542743002/diff/380001/content/browser/loader/resource_dispatcher_host_impl.cc#newcode493 content/browser/loader/resource_dispatcher_host_impl.cc:493: void NotifyForEachFrameOnIO( On 2016/02/01 21:19:20, ...
4 years, 10 months ago (2016-02-01 23:05:39 UTC) #35
Randy Smith (Not in Mondays)
LGTM (you can do what you like with the comment below). https://codereview.chromium.org/1542743002/diff/380001/content/browser/loader/resource_dispatcher_host_impl.cc File content/browser/loader/resource_dispatcher_host_impl.cc (right): ...
4 years, 10 months ago (2016-02-02 20:47:06 UTC) #36
Charlie Harrison
Thanks :) https://codereview.chromium.org/1542743002/diff/420001/content/browser/web_contents/web_contents_impl.cc File content/browser/web_contents/web_contents_impl.cc (right): https://codereview.chromium.org/1542743002/diff/420001/content/browser/web_contents/web_contents_impl.cc#newcode1853 content/browser/web_contents/web_contents_impl.cc:1853: // have a chance to create more ...
4 years, 10 months ago (2016-02-02 20:51:59 UTC) #37
nasko
Uhh, I realized I didn't send my comments : (. https://codereview.chromium.org/1542743002/diff/380001/content/browser/loader/resource_dispatcher_host_impl.h File content/browser/loader/resource_dispatcher_host_impl.h (right): https://codereview.chromium.org/1542743002/diff/380001/content/browser/loader/resource_dispatcher_host_impl.h#newcode117 ...
4 years, 10 months ago (2016-02-02 21:26:30 UTC) #38
Charlie Harrison
Thanks, Nasko! https://codereview.chromium.org/1542743002/diff/380001/content/browser/loader/resource_dispatcher_host_impl.h File content/browser/loader/resource_dispatcher_host_impl.h (right): https://codereview.chromium.org/1542743002/diff/380001/content/browser/loader/resource_dispatcher_host_impl.h#newcode117 content/browser/loader/resource_dispatcher_host_impl.h:117: // Blocks (and does not start) all ...
4 years, 10 months ago (2016-02-02 21:44:23 UTC) #39
nasko
LGTM with last couple of nits. https://codereview.chromium.org/1542743002/diff/440001/content/public/browser/resource_dispatcher_host.h File content/public/browser/resource_dispatcher_host.h (right): https://codereview.chromium.org/1542743002/diff/440001/content/public/browser/resource_dispatcher_host.h#newcode36 content/public/browser/resource_dispatcher_host.h:36: // blocked (not ...
4 years, 10 months ago (2016-02-03 18:44:00 UTC) #40
Randy Smith (Not in Mondays)
On 2016/02/03 18:44:00, nasko wrote: > LGTM with last couple of nits. > > https://codereview.chromium.org/1542743002/diff/440001/content/public/browser/resource_dispatcher_host.h ...
4 years, 10 months ago (2016-02-03 18:58:31 UTC) #41
Charlie Harrison
My take on the FromUI naming choice: My plan was for all static methods to ...
4 years, 10 months ago (2016-02-03 19:20:21 UTC) #42
Charlie Harrison
+ rdevlin@ for app window stuff. Thanks!
4 years, 10 months ago (2016-02-03 19:21:31 UTC) #44
Devlin
extensions lgtm https://codereview.chromium.org/1542743002/diff/460001/extensions/browser/app_window/app_window_contents.cc File extensions/browser/app_window/app_window_contents.cc (right): https://codereview.chromium.org/1542743002/diff/460001/extensions/browser/app_window/app_window_contents.cc#newcode92 extensions/browser/app_window/app_window_contents.cc:92: content::ResourceDispatcherHost::ResumeBlockedRequestsForFrameFromUI( Yay type checking! I had a ...
4 years, 10 months ago (2016-02-03 21:02:56 UTC) #45
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1542743002/460001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1542743002/460001
4 years, 10 months ago (2016-02-03 21:12:59 UTC) #48
nasko
On 2016/02/03 19:20:21, csharrison wrote: > My take on the FromUI naming choice: > > ...
4 years, 10 months ago (2016-02-03 21:45:09 UTC) #49
Charlie Harrison
On 2016/02/03 21:45:09, nasko wrote: > On 2016/02/03 19:20:21, csharrison wrote: > > My take ...
4 years, 10 months ago (2016-02-03 21:48:22 UTC) #50
commit-bot: I haz the power
Committed patchset #24 (id:460001)
4 years, 10 months ago (2016-02-03 23:21:23 UTC) #51
commit-bot: I haz the power
4 years, 10 months ago (2016-02-03 23:22:41 UTC) #53
Message was sent while issue was closed.
Patchset 24 (id:??) landed as
https://crrev.com/a2280cd27bd434f6033d3ab0c70886c06e3882b0
Cr-Commit-Position: refs/heads/master@{#373380}

Powered by Google App Engine
This is Rietveld 408576698