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

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

Issue 2812313002: [scheduler] Remove blink::scheduler::TaskQueue from public API. (Closed)
Patch Set: Rebased & addressed skyostil@'s comment 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 6ecca6daa22d7b98ffc4a434b3071afe10f95ea6..e4707783480562a4731763ff70ae8e2b2753f73d 100644
--- a/third_party/WebKit/Source/platform/scheduler/child/worker_scheduler.h
+++ b/third_party/WebKit/Source/platform/scheduler/child/worker_scheduler.h
@@ -9,9 +9,9 @@
#include "base/macros.h"
#include "base/message_loop/message_loop.h"
+#include "platform/scheduler/base/task_queue.h"
#include "platform/scheduler/child/scheduler_helper.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"
@@ -25,6 +25,10 @@ class BLINK_PLATFORM_EXPORT WorkerScheduler : public ChildScheduler {
static std::unique_ptr<WorkerScheduler> Create(
scoped_refptr<SchedulerTqmDelegate> main_task_runner);
+ // Blink should use WorkerScheduler::DefaultTaskQueue instead of
+ // ChildScheduler::DefaultTaskRunner.
+ virtual scoped_refptr<TaskQueue> DefaultTaskQueue() = 0;
+
// Must be called before the scheduler can be used. Does any post construction
// initialization needed such as initializing idle period detection.
virtual void Init() = 0;

Powered by Google App Engine
This is Rietveld 408576698