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

Unified Diff: components/scheduler/renderer/renderer_scheduler.h

Issue 1914143002: Experimental 'purging and suspending' backgrounded tabs behind the flag (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address on reviews Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: components/scheduler/renderer/renderer_scheduler.h
diff --git a/components/scheduler/renderer/renderer_scheduler.h b/components/scheduler/renderer/renderer_scheduler.h
index 7bf5c7fe9e928370ffe302f3cfc7fcd2e32ca161..9b0a4a49997599b2dc069e5916fb1b1cf1609b13 100644
--- a/components/scheduler/renderer/renderer_scheduler.h
+++ b/components/scheduler/renderer/renderer_scheduler.h
@@ -128,6 +128,9 @@ class SCHEDULER_EXPORT RendererScheduler : public ChildScheduler {
// Must be called on the main thread.
virtual void OnRendererForegrounded() = 0;
+ // Tells the scheduler that the render process should be suspended.
Sami 2016/05/12 11:31:35 Please also add: This can only be done when the r
hajimehoshi 2016/05/13 06:07:45 Done.
+ virtual void SuspendRenderer() = 0;
+
// Tells the scheduler that a navigation task is pending. While any navigation
// tasks are pending, the scheduler will ensure that loading tasks are not
// blocked even if they are expensive. Must be called on the main thread.

Powered by Google App Engine
This is Rietveld 408576698