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

Unified Diff: third_party/WebKit/Source/platform/scheduler/child/web_scheduler.h

Issue 2885313003: [scheduler] Fix --disable-background-timer-throttling flag. (Closed)
Patch Set: fix test crash 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/platform/scheduler/renderer/renderer_scheduler_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/platform/scheduler/child/web_scheduler.h
diff --git a/third_party/WebKit/Source/platform/scheduler/child/web_scheduler.h b/third_party/WebKit/Source/platform/scheduler/child/web_scheduler.h
index b928f19f041cd46ee40c3c515ad282a479cf7975..d12283bef101e01252d63b0d81307d0f7177c7af 100644
--- a/third_party/WebKit/Source/platform/scheduler/child/web_scheduler.h
+++ b/third_party/WebKit/Source/platform/scheduler/child/web_scheduler.h
@@ -100,6 +100,15 @@ class PLATFORM_EXPORT WebScheduler {
virtual void RemovePendingNavigation(
scheduler::RendererScheduler::NavigatingFrameType) = 0;
+ // Test helpers.
+
+ // Return a reference to an underlying RendererScheduler object.
+ // Can be null if there is no underlying RendererScheduler
+ // (e.g. worker threads).
+ virtual scheduler::RendererScheduler* GetRendererSchedulerForTest() {
+ return nullptr;
+ }
+
#ifdef INSIDE_BLINK
// Helpers for posting bound functions as tasks.
typedef Function<void(double deadline_seconds)> IdleTask;
« no previous file with comments | « no previous file | third_party/WebKit/Source/platform/scheduler/renderer/renderer_scheduler_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698