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

Issue 178843004: [wip] Add some more state to RenderViewHost's lifetime.

Created:
6 years, 10 months ago by sadrul
Modified:
6 years, 9 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam
Visibility:
Public.

Description

[wip] Add some more state to RenderViewHost's lifetime. Keep track of in-flight copy-requests for a RenderViewHost. If a RenderViewHost has pending copy-requests, then: * Do not decrement active-view-count on the SiteInstance when the RenderViewHost becomes inactive. * Hold back sending was-swapped-out IPC to the renderer. * Do not run the shutdown-on-swap callback. When all the copy-requests are completed in the RenderViewHost: * Check if the current state of the RenderViewHost is not active anymore. If it's not active, then send the was-swapped-out message. This should work because new copy-requests are not made if the RenderViewHost isn't in an active state. * If the current state is not active, then also decrement the active-view count on the SiteInstance. * If the state is in a pending-shutdown state, then run the callback. BUG=340682

Patch Set 1 #

Total comments: 2

Patch Set 2 : tot-merge-r254378 #

Patch Set 3 : fix-moar-tests? #

Patch Set 4 : moar #

Unified diffs Side-by-side diffs Delta from patch set Stats (+109 lines, -9 lines) Patch
M chrome/browser/renderer_host/render_process_host_chrome_browsertest.cc View 1 2 3 chunks +47 lines, -1 line 0 comments Download
M content/browser/frame_host/navigation_entry_screenshot_manager.cc View 1 2 chunks +3 lines, -4 lines 0 comments Download
M content/browser/renderer_host/render_view_host_impl.h View 1 2 2 chunks +11 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_view_host_impl.cc View 1 2 3 5 chunks +48 lines, -4 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
sadrul
Hi! This is an alternate approach to keep a swapped-out RenderViewHost alive for long enough ...
6 years, 10 months ago (2014-02-25 15:47:57 UTC) #1
Charlie Reis
I like that this is much simpler. I haven't looked closely yet, but I wanted ...
6 years, 10 months ago (2014-02-25 17:35:43 UTC) #2
clamy
The approach seems good, but I am concerned about the modifications in the reference count ...
6 years, 10 months ago (2014-02-26 16:50:56 UTC) #3
mfomitchev
https://chromiumcodereview.appspot.com/178843004/diff/1/content/browser/renderer_host/render_view_host_impl.cc File content/browser/renderer_host/render_view_host_impl.cc (right): https://chromiumcodereview.appspot.com/178843004/diff/1/content/browser/renderer_host/render_view_host_impl.cc#newcode1880 content/browser/renderer_host/render_view_host_impl.cc:1880: pending_shutdown_on_swap_out_.Run(); Can't we have a situation where this gets ...
6 years, 9 months ago (2014-03-24 18:49:09 UTC) #4
mfomitchev
6 years, 9 months ago (2014-03-24 18:49:59 UTC) #5

          

Powered by Google App Engine
This is Rietveld 408576698