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

Unified Diff: third_party/WebKit/public/platform/WebFrameScheduler.h

Issue 2527143002: Suspend frame schedulers on a page suspension (Closed)
Patch Set: fix Created 4 years, 1 month 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
« no previous file with comments | « third_party/WebKit/Source/platform/scheduler/renderer/web_frame_scheduler_impl_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/public/platform/WebFrameScheduler.h
diff --git a/third_party/WebKit/public/platform/WebFrameScheduler.h b/third_party/WebKit/public/platform/WebFrameScheduler.h
index d8be1dfebe62f6b88942e2bfe2f24d407dec5d7d..40e3e2296d0fae75d04eb7848209e8b369a71d63 100644
--- a/third_party/WebKit/public/platform/WebFrameScheduler.h
+++ b/third_party/WebKit/public/platform/WebFrameScheduler.h
@@ -27,6 +27,10 @@ class BLINK_PLATFORM_EXPORT WebFrameScheduler {
// visible.
virtual void setPageVisible(bool) {}
+ // Set whether this frame is suspended. The scheduler runs
+ // unthrottledTaskRunner only on a suspended frame.
Sami 2016/11/30 17:16:19 nit: this makes it sound like unthrottledTaskRunne
tzik 2016/12/01 06:39:02 Done.
+ virtual void setSuspended(bool) {}
+
// Set whether this frame is cross origin w.r.t. the top level frame. Cross
// origin frames may use a different scheduling policy from same origin
// frames.
« no previous file with comments | « third_party/WebKit/Source/platform/scheduler/renderer/web_frame_scheduler_impl_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698