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

Issue 1564963002: [on hold] Remove dependency on RenderViewHost from LoadState notifications

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

Description

Remove dependency on RenderViewHost from LoadState notifications This patch removes indirection from ResourceDispatcherHostImpl -> RenderViewHost -> RenderViewHostDelegate and instead calls the WebContents directly. BUG=472869

Patch Set 1 #

Patch Set 2 : Rebased on #368163 #

Patch Set 3 : de-dupe based on frame_id on IO thread, then by WebContents* on UI thread #

Patch Set 4 : Fix unittests #

Total comments: 4

Patch Set 5 : make LoadInfo CONTENT_EXPORT for tests #

Total comments: 22

Patch Set 6 : mmenke@ + nasko@ review #

Total comments: 4

Patch Set 7 : only notify navigations / uploads #

Unified diffs Side-by-side diffs Delta from patch set Stats (+118 lines, -128 lines) Patch
M content/browser/loader/resource_dispatcher_host_impl.h View 1 2 3 4 5 6 3 chunks +36 lines, -23 lines 0 comments Download
M content/browser/loader/resource_dispatcher_host_impl.cc View 1 2 3 4 5 6 6 chunks +49 lines, -26 lines 0 comments Download
M content/browser/loader/resource_dispatcher_host_unittest.cc View 1 2 3 4 5 6 6 chunks +23 lines, -51 lines 0 comments Download
M content/browser/loader/resource_request_info_impl.h View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M content/browser/loader/resource_request_info_impl.cc View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M content/browser/renderer_host/render_view_host_delegate.h View 1 2 3 4 1 chunk +0 lines, -6 lines 0 comments Download
M content/browser/renderer_host/render_view_host_impl.h View 1 2 3 4 1 chunk +0 lines, -6 lines 0 comments Download
M content/browser/renderer_host/render_view_host_impl.cc View 1 2 3 4 1 chunk +0 lines, -8 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.h View 1 2 3 4 5 2 chunks +6 lines, -4 lines 0 comments Download

Messages

Total messages: 43 (10 generated)
Charlie Harrison
PTAL. This is part of the effort to keep render_view_ids out of ResourceDispatcherHost. Unfortunately, this ...
4 years, 11 months ago (2016-01-07 22:40:06 UTC) #2
Charlie Reis
[+site-isolation-reviews@ as FYI]
4 years, 11 months ago (2016-01-08 00:45:00 UTC) #3
Charlie Harrison
Let's revisit this CL, in light of the fact that FrameIOData is not going to ...
4 years, 7 months ago (2016-05-17 15:13:22 UTC) #5
clamy
I did not have time to review it today, but I will try to have ...
4 years, 7 months ago (2016-05-17 15:22:44 UTC) #6
Charlie Harrison
On 2016/05/17 15:22:44, clamy wrote: > I did not have time to review it today, ...
4 years, 7 months ago (2016-05-17 15:24:52 UTC) #7
Charlie Harrison
Alright I've updated the logic + tests to now 1. De-dupe load states by frame ...
4 years, 7 months ago (2016-05-17 21:22:12 UTC) #8
mmenke
Driveby question. Clearly I just don't have enough reviews on my plate already. https://codereview.chromium.org/1564963002/diff/60001/content/browser/loader/resource_dispatcher_host_impl.cc File ...
4 years, 7 months ago (2016-05-17 21:25:37 UTC) #10
Charlie Harrison
https://codereview.chromium.org/1564963002/diff/60001/content/browser/loader/resource_dispatcher_host_impl.cc File content/browser/loader/resource_dispatcher_host_impl.cc (right): https://codereview.chromium.org/1564963002/diff/60001/content/browser/loader/resource_dispatcher_host_impl.cc#newcode2499 content/browser/loader/resource_dispatcher_host_impl.cc:2499: contents_map[web_contents] = &load_info.second; On 2016/05/17 21:25:36, mmenke wrote: > ...
4 years, 7 months ago (2016-05-17 21:35:28 UTC) #11
mmenke
https://codereview.chromium.org/1564963002/diff/60001/content/browser/loader/resource_dispatcher_host_impl.cc File content/browser/loader/resource_dispatcher_host_impl.cc (right): https://codereview.chromium.org/1564963002/diff/60001/content/browser/loader/resource_dispatcher_host_impl.cc#newcode2499 content/browser/loader/resource_dispatcher_host_impl.cc:2499: contents_map[web_contents] = &load_info.second; On 2016/05/17 21:35:28, csharrison wrote: > ...
4 years, 7 months ago (2016-05-17 21:44:05 UTC) #12
Charlie Harrison
https://codereview.chromium.org/1564963002/diff/60001/content/browser/loader/resource_dispatcher_host_impl.cc File content/browser/loader/resource_dispatcher_host_impl.cc (right): https://codereview.chromium.org/1564963002/diff/60001/content/browser/loader/resource_dispatcher_host_impl.cc#newcode2499 content/browser/loader/resource_dispatcher_host_impl.cc:2499: contents_map[web_contents] = &load_info.second; On 2016/05/17 21:44:04, mmenke wrote: > ...
4 years, 7 months ago (2016-05-17 21:53:27 UTC) #13
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1564963002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1564963002/60001
4 years, 6 months ago (2016-05-31 13:13:34 UTC) #15
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: win_chromium_compile_dbg_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_compile_dbg_ng/builds/198424)
4 years, 6 months ago (2016-05-31 14:19:30 UTC) #17
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1564963002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1564963002/80001
4 years, 6 months ago (2016-05-31 19:31:22 UTC) #19
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 6 months ago (2016-05-31 20:16:41 UTC) #21
Charlie Harrison
creis@, clamy@ WDYT?
4 years, 6 months ago (2016-05-31 20:19:50 UTC) #22
Charlie Reis
Seems ok at a quick glance, but there's enough about "more interesting" loads and iterating ...
4 years, 6 months ago (2016-05-31 22:11:49 UTC) #24
clamy
Thanks for doing this! This seems ok to me. Just checking: this won't be working ...
4 years, 6 months ago (2016-06-01 13:59:34 UTC) #25
mmenke
A couple nits. https://codereview.chromium.org/1564963002/diff/80001/content/browser/loader/resource_dispatcher_host_impl.cc File content/browser/loader/resource_dispatcher_host_impl.cc (right): https://codereview.chromium.org/1564963002/diff/80001/content/browser/loader/resource_dispatcher_host_impl.cc#newcode2482 content/browser/loader/resource_dispatcher_host_impl.cc:2482: // load state per WebContents. Suggest ...
4 years, 6 months ago (2016-06-01 15:19:32 UTC) #26
nasko
https://codereview.chromium.org/1564963002/diff/80001/content/browser/loader/resource_dispatcher_host_impl.cc File content/browser/loader/resource_dispatcher_host_impl.cc (right): https://codereview.chromium.org/1564963002/diff/80001/content/browser/loader/resource_dispatcher_host_impl.cc#newcode2507 content/browser/loader/resource_dispatcher_host_impl.cc:2507: it.second->upload_size); On 2016/06/01 15:19:32, mmenke (OOO May 30-31) wrote: ...
4 years, 6 months ago (2016-06-01 16:54:00 UTC) #27
mmenke
https://codereview.chromium.org/1564963002/diff/80001/content/browser/loader/resource_dispatcher_host_impl.cc File content/browser/loader/resource_dispatcher_host_impl.cc (right): https://codereview.chromium.org/1564963002/diff/80001/content/browser/loader/resource_dispatcher_host_impl.cc#newcode2507 content/browser/loader/resource_dispatcher_host_impl.cc:2507: it.second->upload_size); On 2016/06/01 16:54:00, nasko (slow) wrote: > On ...
4 years, 6 months ago (2016-06-01 16:58:49 UTC) #28
Charlie Harrison
Okay here's the rundown on load state stuff. There's a few important things the WebContents ...
4 years, 6 months ago (2016-06-02 14:22:28 UTC) #29
mmenke
https://codereview.chromium.org/1564963002/diff/80001/content/browser/loader/resource_dispatcher_host_impl.h File content/browser/loader/resource_dispatcher_host_impl.h (right): https://codereview.chromium.org/1564963002/diff/80001/content/browser/loader/resource_dispatcher_host_impl.h#newcode349 content/browser/loader/resource_dispatcher_host_impl.h:349: LoadInfo(const LoadInfo& info); On 2016/06/02 14:22:28, csharrison wrote: > ...
4 years, 6 months ago (2016-06-02 15:20:17 UTC) #30
mmenke
On 2016/06/02 14:22:28, csharrison wrote: > Okay here's the rundown on load state stuff. There's ...
4 years, 6 months ago (2016-06-02 15:24:45 UTC) #31
Charlie Harrison
On 2016/06/02 15:24:45, mmenke wrote: > On 2016/06/02 14:22:28, csharrison wrote: > > Okay here's ...
4 years, 6 months ago (2016-06-02 16:23:24 UTC) #32
mmenke
On 2016/06/02 16:23:24, csharrison wrote: > On 2016/06/02 15:24:45, mmenke wrote: > > On 2016/06/02 ...
4 years, 6 months ago (2016-06-02 18:14:01 UTC) #33
Charlie Harrison
On 2016/06/02 18:14:01, mmenke wrote: > On 2016/06/02 16:23:24, csharrison wrote: > > On 2016/06/02 ...
4 years, 6 months ago (2016-06-02 18:16:39 UTC) #34
nasko
On 2016/06/02 14:22:28, csharrison wrote: > Okay here's the rundown on load state stuff. There's ...
4 years, 6 months ago (2016-06-02 21:58:20 UTC) #35
nasko
On 2016/06/02 18:16:39, csharrison wrote: > On 2016/06/02 18:14:01, mmenke wrote: > > On 2016/06/02 ...
4 years, 6 months ago (2016-06-02 22:03:55 UTC) #36
nasko
Couple of nits on the latest PS. https://codereview.chromium.org/1564963002/diff/100001/content/browser/loader/resource_dispatcher_host_impl.cc File content/browser/loader/resource_dispatcher_host_impl.cc (right): https://codereview.chromium.org/1564963002/diff/100001/content/browser/loader/resource_dispatcher_host_impl.cc#newcode2500 content/browser/loader/resource_dispatcher_host_impl.cc:2500: // Re-run ...
4 years, 6 months ago (2016-06-02 22:04:22 UTC) #37
Charlie Harrison
I think I'm going to some of the proposed refactors to a follow up CL ...
4 years, 6 months ago (2016-06-06 15:39:53 UTC) #38
mmenke
Didn't do a full review on this, so not signing off, but I consider my ...
4 years, 6 months ago (2016-06-06 15:42:07 UTC) #39
Charlie Harrison
nasko@, can you take another look? I'm deferring the more serious refactoring because initial prototypes ...
4 years, 6 months ago (2016-06-17 10:45:50 UTC) #40
mmenke
3 years, 6 months ago (2017-06-12 15:13:00 UTC) #42
On 2016/06/17 10:45:50, Charlie Harrison wrote:
> nasko@, can you take another look? I'm deferring the more serious refactoring
> because initial prototypes didn't look great.

Removing myself from this CL.  Feel free to add me back if you pick it up again.

Powered by Google App Engine
This is Rietveld 408576698