web_cache::WebCacheManager::ObserveActivity has the following comment:
// The cache manager assigns more cache resources to active renderer. When a
// renderer is active, it should inform the cache manager to receive more
// cache resources.
//
// When a renderer moves from being inactive to being active, the cache
// manager may decide to adjust its resource allocation, but it will delay
// the recalculation, allowing ObserveActivity to return quickly.
Right now web_cache::WebCacheManager::ObserveActivity is called in response to CoreTabHelper::WasShown (a WebContentsObserver override). The problem is that ObserveActivity is *only* called for main frame's renderer process (ignoring renderers handling OOPIFs).
Comment 1 by lukasza@chromium.org
, Oct 2 2017Owner: thakis@chromium.org