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

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

Issue 2806623004: Worker: Introduce per-global-scope task scheduler (Closed)
Patch Set: remove WorkerTaskRunners 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/webthread_impl_for_worker_scheduler.h
diff --git a/third_party/WebKit/Source/platform/scheduler/child/webthread_impl_for_worker_scheduler.h b/third_party/WebKit/Source/platform/scheduler/child/webthread_impl_for_worker_scheduler.h
index 21107a57279ac84cc159b79c21841cc69f4f09eb..47c4e3e439a8691f65e6259d8f5b3f3d3861fc92 100644
--- a/third_party/WebKit/Source/platform/scheduler/child/webthread_impl_for_worker_scheduler.h
+++ b/third_party/WebKit/Source/platform/scheduler/child/webthread_impl_for_worker_scheduler.h
@@ -48,8 +48,15 @@ class BLINK_PLATFORM_EXPORT WebThreadImplForWorkerScheduler
// base::MessageLoop::DestructionObserver implementation.
void WillDestroyCurrentMessageLoop() override;
+ scheduler::WorkerScheduler* GetWorkerScheduler() {
+ return worker_scheduler_.get();
haraken 2017/04/13 07:03:36 It looks strange that: - webthread_impl_for_worke
nhiroki 2017/04/13 08:23:50 That MakeUnique creates Worker*GlobalScope*Schedul
+ }
+
protected:
base::Thread* GetThread() const { return thread_.get(); }
+ SchedulerTqmDelegate* task_runner_delegate() const {
+ return task_runner_delegate_.get();
+ }
private:
virtual std::unique_ptr<scheduler::WorkerScheduler> CreateWorkerScheduler();

Powered by Google App Engine
This is Rietveld 408576698