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

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

Issue 2806623004: Worker: Introduce per-global-scope task scheduler (Closed)
Patch Set: wip 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/public/platform/scheduler/child/webthread_impl_for_worker_scheduler.h
diff --git a/third_party/WebKit/public/platform/scheduler/child/webthread_impl_for_worker_scheduler.h b/third_party/WebKit/public/platform/scheduler/child/webthread_impl_for_worker_scheduler.h
index 953c5c50412d24684d9d63b390cc4256345f6593..2635a5d31edb8cfc57ea2ac0451d7cb5bbc3b6f3 100644
--- a/third_party/WebKit/public/platform/scheduler/child/webthread_impl_for_worker_scheduler.h
+++ b/third_party/WebKit/public/platform/scheduler/child/webthread_impl_for_worker_scheduler.h
@@ -49,6 +49,10 @@ class BLINK_PLATFORM_EXPORT WebThreadImplForWorkerScheduler
// base::MessageLoop::DestructionObserver implementation.
void WillDestroyCurrentMessageLoop() override;
+ scheduler::WorkerScheduler* getWorkerScheduler() {
+ return worker_scheduler_.get();
+ }
+
protected:
base::Thread* thread() const { return thread_.get(); }

Powered by Google App Engine
This is Rietveld 408576698