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

Unified Diff: third_party/WebKit/public/platform/scheduler/renderer/renderer_scheduler.h

Issue 2860263002: NOT FOR COMMIT: Move background pausing to the WebView level
Patch Set: Created 3 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: third_party/WebKit/public/platform/scheduler/renderer/renderer_scheduler.h
diff --git a/third_party/WebKit/public/platform/scheduler/renderer/renderer_scheduler.h b/third_party/WebKit/public/platform/scheduler/renderer/renderer_scheduler.h
index 0f0a7d8f4b0ec4cbf3c6d1288436adfda5c303e8..e9d0bd68789fd0acace43ac22809deb34d53d72f 100644
--- a/third_party/WebKit/public/platform/scheduler/renderer/renderer_scheduler.h
+++ b/third_party/WebKit/public/platform/scheduler/renderer/renderer_scheduler.h
@@ -118,17 +118,6 @@ class BLINK_PLATFORM_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. This can
- // only be done when the renderer is backgrounded. The renderer will be
- // automatically resumed when foregrounded.
- virtual void SuspendRenderer() = 0;
-
- // Tells the scheduler that the render process should be resumed. This can
- // only be done when the renderer is suspended. TabManager (in the future,
- // MemoryCoordinator) will suspend the renderer again if continuously
- // backgrounded.
- virtual void ResumeRenderer() = 0;
-
enum class NavigatingFrameType { kMainFrame, kChildFrame };
// Tells the scheduler that a navigation task is pending. While any main-frame
@@ -160,10 +149,6 @@ class BLINK_PLATFORM_EXPORT RendererScheduler : public ChildScheduler {
// if the suspension count is zero and the current schduler policy allows it.
virtual void ResumeTimerQueue() = 0;
- // Sets whether to allow suspension of timers after the backgrounded signal is
- // received via OnRendererBackgrounded. Defaults to disabled.
- virtual void SetTimerQueueSuspensionWhenBackgroundedEnabled(bool enabled) = 0;
-
// Sets the default blame context to which top level work should be
// attributed in this renderer. |blame_context| must outlive this scheduler.
virtual void SetTopLevelBlameContext(

Powered by Google App Engine
This is Rietveld 408576698