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

Issue 15476003: Move TransferNavigationResourceThrottle into CrossSiteResourceHandler. (Closed)

Created:
7 years, 7 months ago by Charlie Reis
Modified:
7 years, 2 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam, chromium-site-isolation-reviews_chromium.org
Visibility:
Public.

Description

Move TransferNavigationResourceThrottle into CrossSiteResourceHandler. We now transfer requests to a new process when they are ready to commit, rather than each time a redirect occurs. This simplifies the ResourceDispatcherHost logic, and it prepares for a future CL to intercept all navigations in the browser process. BUG=238331 TEST=No more than one process swap for repeated redirects. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=226284

Patch Set 1 : Early draft #

Patch Set 2 : Fix same-site error case (failing tests) #

Patch Set 3 : Rebase. #

Patch Set 4 : Fix clang compile. #

Patch Set 5 : Clean up comments, etc #

Patch Set 6 : Remove unnecessary state. #

Patch Set 7 : Rebase on top of http://crrev.com/206354 #

Patch Set 8 : Clean up #

Total comments: 9

Patch Set 9 : Fix review comments. #

Patch Set 10 : Get tests to pass #

Total comments: 12

Patch Set 11 : Minor test changes #

Patch Set 12 : Fix bug in RVHM. #

Patch Set 13 : Rebase for ResourceHandler fix. #

Patch Set 14 : Minor cleanup #

Patch Set 15 : Fix indent #

Total comments: 2

Patch Set 16 : Remove null check on cross_site_handler(). #

Unified diffs Side-by-side diffs Delta from patch set Stats (+345 lines, -280 lines) Patch
M content/browser/loader/cross_site_resource_handler.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +3 lines, -3 lines 0 comments Download
M content/browser/loader/cross_site_resource_handler.cc View 1 2 3 4 5 6 7 8 9 10 11 12 8 chunks +67 lines, -25 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 4 chunks +8 lines, -17 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 13 chunks +136 lines, -54 lines 0 comments Download
M content/browser/loader/resource_loader.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +3 lines, -2 lines 0 comments Download
M content/browser/loader/transfer_navigation_resource_throttle.h View 1 chunk +0 lines, -38 lines 0 comments Download
D content/browser/loader/transfer_navigation_resource_throttle.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +0 lines, -93 lines 0 comments Download
M content/browser/renderer_host/render_view_host_delegate.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +7 lines, -2 lines 0 comments Download
M content/browser/web_contents/render_view_host_manager.h View 1 2 3 4 5 6 7 8 9 10 11 12 4 chunks +33 lines, -6 lines 0 comments Download
M content/browser/web_contents/render_view_host_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 12 6 chunks +63 lines, -22 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 1 chunk +24 lines, -15 lines 0 comments Download
M content/browser/web_contents/web_contents_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -1 line 0 comments Download
M content/content_browser.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +0 lines, -2 lines 0 comments Download

Messages

Total messages: 24 (0 generated)
Charlie Reis
Darin, can you take a high-level look at this draft? It's not passing tests yet ...
7 years, 7 months ago (2013-05-21 00:16:58 UTC) #1
Charlie Reis
Ok, this change is much simpler now that http://crrev.com/206354 has landed. Matt, can you take ...
7 years, 6 months ago (2013-06-14 23:32:48 UTC) #2
Matt Perry
Mostly looks good. https://codereview.chromium.org/15476003/diff/45001/content/browser/loader/resource_dispatcher_host_unittest.cc File content/browser/loader/resource_dispatcher_host_unittest.cc (right): https://codereview.chromium.org/15476003/diff/45001/content/browser/loader/resource_dispatcher_host_unittest.cc#newcode1754 content/browser/loader/resource_dispatcher_host_unittest.cc:1754: transfer_request_msg, second_filter.get(), &msg_was_ok); Why doesn't this ...
7 years, 6 months ago (2013-06-18 22:58:51 UTC) #3
darin (slow to review)
I reviewed this patch and didn't have any concerns. LGTM once Matt is happy.
7 years, 6 months ago (2013-06-18 23:03:35 UTC) #4
Charlie Reis
Thanks! Still stuck on the test, but maybe it's a bit clearer now. https://codereview.chromium.org/15476003/diff/45001/content/browser/loader/resource_dispatcher_host_unittest.cc File ...
7 years, 6 months ago (2013-06-19 00:17:01 UTC) #5
Matt Perry
Thanks, things are looking cleaner. https://codereview.chromium.org/15476003/diff/45001/content/browser/loader/resource_dispatcher_host_unittest.cc File content/browser/loader/resource_dispatcher_host_unittest.cc (right): https://codereview.chromium.org/15476003/diff/45001/content/browser/loader/resource_dispatcher_host_unittest.cc#newcode1754 content/browser/loader/resource_dispatcher_host_unittest.cc:1754: transfer_request_msg, second_filter.get(), &msg_was_ok); On ...
7 years, 6 months ago (2013-06-19 00:28:41 UTC) #6
Charlie Reis
https://codereview.chromium.org/15476003/diff/45001/content/browser/loader/resource_dispatcher_host_unittest.cc File content/browser/loader/resource_dispatcher_host_unittest.cc (right): https://codereview.chromium.org/15476003/diff/45001/content/browser/loader/resource_dispatcher_host_unittest.cc#newcode1754 content/browser/loader/resource_dispatcher_host_unittest.cc:1754: transfer_request_msg, second_filter.get(), &msg_was_ok); On 2013/06/19 00:28:42, Matt Perry wrote: ...
7 years, 6 months ago (2013-06-19 01:09:24 UTC) #7
Matt Perry
https://codereview.chromium.org/15476003/diff/45001/content/browser/loader/resource_dispatcher_host_unittest.cc File content/browser/loader/resource_dispatcher_host_unittest.cc (right): https://codereview.chromium.org/15476003/diff/45001/content/browser/loader/resource_dispatcher_host_unittest.cc#newcode1754 content/browser/loader/resource_dispatcher_host_unittest.cc:1754: transfer_request_msg, second_filter.get(), &msg_was_ok); On 2013/06/19 01:09:24, creis wrote: > ...
7 years, 6 months ago (2013-06-19 01:20:56 UTC) #8
Charlie Reis
Hey Matt-- can you take another look? I was able to get the test to ...
7 years, 5 months ago (2013-07-08 18:28:43 UTC) #9
Matt Perry
https://codereview.chromium.org/15476003/diff/76001/content/browser/loader/resource_dispatcher_host_unittest.cc File content/browser/loader/resource_dispatcher_host_unittest.cc (right): https://codereview.chromium.org/15476003/diff/76001/content/browser/loader/resource_dispatcher_host_unittest.cc#newcode1736 content/browser/loader/resource_dispatcher_host_unittest.cc:1736: base::MessageLoop::current()->RunUntilIdle(); deprecated - use RunLoop::RunUntilIdle() https://codereview.chromium.org/15476003/diff/76001/content/browser/loader/resource_dispatcher_host_unittest.cc#newcode1773 content/browser/loader/resource_dispatcher_host_unittest.cc:1773: // We ...
7 years, 5 months ago (2013-07-08 21:38:56 UTC) #10
Charlie Reis
Thanks, though I'm still a bit stuck. Trying to wrap my head around how ResourceLoader ...
7 years, 5 months ago (2013-07-08 22:49:30 UTC) #11
Matt Perry
https://codereview.chromium.org/15476003/diff/76001/content/browser/loader/resource_dispatcher_host_unittest.cc File content/browser/loader/resource_dispatcher_host_unittest.cc (right): https://codereview.chromium.org/15476003/diff/76001/content/browser/loader/resource_dispatcher_host_unittest.cc#newcode1736 content/browser/loader/resource_dispatcher_host_unittest.cc:1736: base::MessageLoop::current()->RunUntilIdle(); On 2013/07/08 22:49:31, creis wrote: > On 2013/07/08 ...
7 years, 5 months ago (2013-07-08 22:59:34 UTC) #12
Charlie Reis
Note: I tracked down one silly bug in render_view_host_manager.cc (checking for the wrong value of ...
7 years, 5 months ago (2013-07-09 00:08:43 UTC) #13
Matt Perry
I don't know enough to say whether the unittest is exposing a bug, so LGTM. ...
7 years, 5 months ago (2013-07-09 00:22:33 UTC) #14
Charlie Reis
https://codereview.chromium.org/15476003/diff/76001/content/browser/loader/resource_dispatcher_host_unittest.cc File content/browser/loader/resource_dispatcher_host_unittest.cc (right): https://codereview.chromium.org/15476003/diff/76001/content/browser/loader/resource_dispatcher_host_unittest.cc#newcode1773 content/browser/loader/resource_dispatcher_host_unittest.cc:1773: // We expect fewer messages in this response than ...
7 years, 5 months ago (2013-07-09 23:54:43 UTC) #15
Charlie Reis
On 2013/07/09 23:54:43, creis wrote: > Ugh, I just confirmed there's a real bug here. ...
7 years, 2 months ago (2013-09-30 22:41:58 UTC) #16
Matt Perry
I think this makes sense. LGTM
7 years, 2 months ago (2013-09-30 23:09:23 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/creis@chromium.org/15476003/137001
7 years, 2 months ago (2013-10-01 01:41:04 UTC) #18
darin (slow to review)
https://codereview.chromium.org/15476003/diff/137001/content/browser/loader/resource_loader.cc File content/browser/loader/resource_loader.cc (right): https://codereview.chromium.org/15476003/diff/137001/content/browser/loader/resource_loader.cc#newcode174 content/browser/loader/resource_loader.cc:174: info->cross_site_handler()->ResumeResponse(); what happens if the cross_site_handler() is null here? ...
7 years, 2 months ago (2013-10-01 03:54:15 UTC) #19
commit-bot: I haz the power
Retried try job too often on win7_aura for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win7_aura&number=84410
7 years, 2 months ago (2013-10-01 12:53:31 UTC) #20
Charlie Reis
Sorry I missed this last night while it was in the CQ, but it didn't ...
7 years, 2 months ago (2013-10-01 17:15:10 UTC) #21
darin (slow to review)
LGTM
7 years, 2 months ago (2013-10-01 17:34:46 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/creis@chromium.org/15476003/164001
7 years, 2 months ago (2013-10-01 17:36:08 UTC) #23
commit-bot: I haz the power
7 years, 2 months ago (2013-10-01 20:12:57 UTC) #24
Message was sent while issue was closed.
Change committed as 226284

Powered by Google App Engine
This is Rietveld 408576698