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

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

Issue 1895773002: Move responsiblity of tab suspending from renderer to TabManager (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix time Created 4 years, 8 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 50f21f6a0741a27260a34842ec1f8d45aec999b5..0bf0b8d4bddc5d9ff58f8beb939d756653191af1 100644
--- a/components/scheduler/renderer/renderer_scheduler.h
+++ b/components/scheduler/renderer/renderer_scheduler.h
@@ -127,6 +127,8 @@ class SCHEDULER_EXPORT RendererScheduler : public ChildScheduler {
// Must be called on the main thread.
virtual void OnRendererForegrounded() = 0;
+ virtual void OnRendererSuspend() = 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