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

Issue 15682009: Eliminate SwapOut message parameters, keeping state in RVHM instead. (Closed)

Created:
7 years, 6 months ago by Charlie Reis
Modified:
7 years, 6 months ago
Reviewers:
Tom Sepez, sky, nasko
CC:
chromium-reviews, joi+watch-content_chromium.org, James Cook, darin (slow to review)
Visibility:
Public.

Description

Eliminate SwapOut message parameters, keeping state in RVHM instead. We no longer need to process SwapOut messages on the IO thread, and we no longer pass browser-internal request IDs to the renderer to be echoed back. This paves the way to support transferring navigations using CrossSiteResourceHandler. BUG=238331 TEST=No behavior change. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=206354

Patch Set 1 #

Patch Set 2 : Fix bug, prepare for review. #

Patch Set 3 : Fix merge conflicts #

Total comments: 4

Patch Set 4 : Fix comments (except moving pending_nav_params) #

Patch Set 5 : Move pending_nav_params_ to RVHM #

Total comments: 6

Patch Set 6 : Fix nits #

Patch Set 7 : Diagnose Android test failure #

Patch Set 8 : Attempt to fix failing Android test. #

Patch Set 9 : Another workaround for Android #

Patch Set 10 : Try fischman's build file fix #

Patch Set 11 : Rebase to get Android build fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+196 lines, -252 lines) Patch
M chrome/browser/unload_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +3 lines, -4 lines 0 comments Download
M content/browser/cross_site_request_manager.h View 1 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/loader/cross_site_resource_handler.cc View 1 2 3 4 2 chunks +2 lines, -1 line 0 comments Download
M content/browser/loader/resource_dispatcher_host_impl.h View 1 2 4 chunks +3 lines, -15 lines 0 comments Download
M content/browser/loader/resource_dispatcher_host_impl.cc View 1 2 3 4 5 6 7 8 9 10 4 chunks +11 lines, -44 lines 0 comments Download
M content/browser/renderer_host/render_process_host_impl.h View 1 2 3 chunks +5 lines, -2 lines 0 comments Download
M content/browser/renderer_host/render_process_host_impl.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +3 lines, -3 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 1 chunk +5 lines, -5 lines 0 comments Download
M content/browser/renderer_host/render_view_host_impl.h View 1 2 3 5 chunks +17 lines, -22 lines 0 comments Download
M content/browser/renderer_host/render_view_host_impl.cc View 1 2 3 4 5 6 7 8 9 10 5 chunks +17 lines, -20 lines 0 comments Download
M content/browser/renderer_host/render_view_host_unittest.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download
M content/browser/renderer_host/render_widget_helper.h View 1 2 3 4 5 6 7 8 9 10 3 chunks +5 lines, -4 lines 0 comments Download
M content/browser/renderer_host/render_widget_helper.cc View 1 2 2 chunks +7 lines, -7 lines 0 comments Download
M content/browser/renderer_host/test_render_view_host.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download
M content/browser/web_contents/render_view_host_manager.h View 1 2 3 4 4 chunks +24 lines, -2 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 8 chunks +60 lines, -32 lines 0 comments Download
M content/browser/web_contents/render_view_host_manager_unittest.cc View 1 2 3 4 5 6 7 8 9 10 6 chunks +10 lines, -13 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +3 lines, -0 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 3 chunks +4 lines, -4 lines 0 comments Download
M content/common/view_messages.h View 1 2 3 4 5 6 7 8 9 10 3 chunks +5 lines, -32 lines 0 comments Download
M content/public/browser/render_process_host.h View 1 chunk +0 lines, -6 lines 0 comments Download
M content/public/test/mock_render_process_host.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +0 lines, -2 lines 0 comments Download
M content/public/test/mock_render_process_host.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +0 lines, -4 lines 0 comments Download
M content/renderer/render_view_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +4 lines, -21 lines 0 comments Download
M content/renderer/render_view_impl.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +1 line, -2 lines 0 comments Download
M content/renderer/render_view_impl.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +2 lines, -3 lines 0 comments Download
M content/test/test_web_contents.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 17 (0 generated)
Charlie Reis
Nasko, can you take a look? This mainly changes the IPC flow for running the ...
7 years, 6 months ago (2013-06-05 00:13:30 UTC) #1
Charlie Reis
On 2013/06/05 00:13:30, creis wrote: > Nasko, can you take a look? This mainly changes ...
7 years, 6 months ago (2013-06-05 17:03:07 UTC) #2
nasko
As we discussed, it will be best if we can contain all the cross-site navigation ...
7 years, 6 months ago (2013-06-05 18:17:07 UTC) #3
nasko
On 2013/06/05 17:03:07, creis wrote: > On 2013/06/05 00:13:30, creis wrote: > > Nasko, can ...
7 years, 6 months ago (2013-06-05 18:20:00 UTC) #4
Charlie Reis
Thanks. I've moved PendingNavigationParams to RenderViewHostManager. PTAL. https://codereview.chromium.org/15682009/diff/11001/content/browser/web_contents/render_view_host_manager.cc File content/browser/web_contents/render_view_host_manager.cc (right): https://codereview.chromium.org/15682009/diff/11001/content/browser/web_contents/render_view_host_manager.cc#newcode193 content/browser/web_contents/render_view_host_manager.cc:193: render_view_host_->is_waiting_for_beforeunload_ack(); On ...
7 years, 6 months ago (2013-06-05 23:03:34 UTC) #5
nasko
LGTM with a couple of nits. Also, the CL title still says state is kept ...
7 years, 6 months ago (2013-06-06 15:41:49 UTC) #6
Charlie Reis
Thanks, fixed. Unfortunately, this is still causing WebContentsImplTest.FrameTreeShape to crash, even when starting from r204338 ...
7 years, 6 months ago (2013-06-06 16:33:09 UTC) #7
Charlie Reis
In patch set 8, I'm trying a workaround where we commit a page in the ...
7 years, 6 months ago (2013-06-07 04:56:47 UTC) #8
Charlie Reis
On 2013/06/07 04:56:47, creis wrote: > In patch set 8, I'm trying a workaround where ...
7 years, 6 months ago (2013-06-07 14:28:49 UTC) #9
Charlie Reis
Also, cc'ing Darin for FYI on this CL in general. This is the first step ...
7 years, 6 months ago (2013-06-07 14:30:12 UTC) #10
Charlie Reis
Ok, I've rebased to pick up the fix for http://crbug.com/247807. sky: Can you look at ...
7 years, 6 months ago (2013-06-12 22:10:28 UTC) #11
Tom Sepez
Messages LGTM.
7 years, 6 months ago (2013-06-12 22:16:44 UTC) #12
Charlie Reis
Darin, maybe you can look at unload_browsertest.cc if Scott doesn't get a chance? Would be ...
7 years, 6 months ago (2013-06-12 23:20:58 UTC) #13
sky
unload_browsertest LGTM
7 years, 6 months ago (2013-06-13 16:10:18 UTC) #14
Charlie Reis
Thanks, Scott. Moving Darin back to CC as FYI.
7 years, 6 months ago (2013-06-14 05:52:54 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/creis@chromium.org/15682009/92001
7 years, 6 months ago (2013-06-14 05:53:21 UTC) #16
commit-bot: I haz the power
7 years, 6 months ago (2013-06-14 07:27:29 UTC) #17
Message was sent while issue was closed.
Change committed as 206354

Powered by Google App Engine
This is Rietveld 408576698