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

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

Issue 2806623004: Worker: Introduce per-global-scope task scheduler (Closed)
Patch Set: address review comments Created 3 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: third_party/WebKit/Source/platform/scheduler/child/worker_scheduler.h
diff --git a/third_party/WebKit/Source/platform/scheduler/child/worker_scheduler.h b/third_party/WebKit/Source/platform/scheduler/child/worker_scheduler.h
index 5fc53ec067042b450e4ca95a8970bd522282d78c..8e3e4428f2df4902a0648405a3d577d32ec161f9 100644
--- a/third_party/WebKit/Source/platform/scheduler/child/worker_scheduler.h
+++ b/third_party/WebKit/Source/platform/scheduler/child/worker_scheduler.h
@@ -10,6 +10,7 @@
#include "base/macros.h"
#include "base/message_loop/message_loop.h"
#include "public/platform/WebCommon.h"
+#include "public/platform/scheduler/base/task_queue.h"
#include "public/platform/scheduler/child/child_scheduler.h"
#include "public/platform/scheduler/child/single_thread_idle_task_runner.h"
@@ -27,6 +28,9 @@ class BLINK_PLATFORM_EXPORT WorkerScheduler : public ChildScheduler {
// initialization needed such as initializing idle period detection.
virtual void Init() = 0;
+ virtual scoped_refptr<TaskQueue> NewUnthrottledTaskRunner(
+ TaskQueue::QueueType queue_type) = 0;
+
protected:
WorkerScheduler();
DISALLOW_COPY_AND_ASSIGN(WorkerScheduler);

Powered by Google App Engine
This is Rietveld 408576698