Releasing CPU resources of hidden/minimized browser windows
BUG=310365
TEST=browser_test & tested visually (taskamanger, running YouTube, deleting active&inactive hidden tabs, ..)
Review URL: https://codereview.chromium.org/286943005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@272662 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/content/browser/web_contents/web_contents_impl.h b/content/browser/web_contents/web_contents_impl.h
index 8278efb..887efd1 100644
--- a/content/browser/web_contents/web_contents_impl.h
+++ b/content/browser/web_contents/web_contents_impl.h
@@ -164,6 +164,8 @@
return geolocation_dispatcher_host_.get();
}
+ bool should_normally_be_visible() { return should_normally_be_visible_; }
+
// WebContents ------------------------------------------------------
virtual WebContentsDelegate* GetDelegate() OVERRIDE;
virtual void SetDelegate(WebContentsDelegate* delegate) OVERRIDE;