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

Unified Diff: third_party/WebKit/Source/core/workers/WorkerBackingThread.h

Issue 2806623004: Worker: Introduce per-global-scope task scheduler (Closed)
Patch Set: remove unused header 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/core/workers/WorkerBackingThread.h
diff --git a/third_party/WebKit/Source/core/workers/WorkerBackingThread.h b/third_party/WebKit/Source/core/workers/WorkerBackingThread.h
index 7280c3f497fb396485dbaec11028b610f99628c5..1418c718a35ffe0a4321470a7b4c1197cff201cf 100644
--- a/third_party/WebKit/Source/core/workers/WorkerBackingThread.h
+++ b/third_party/WebKit/Source/core/workers/WorkerBackingThread.h
@@ -16,6 +16,10 @@
namespace blink {
+namespace scheduler {
+class WorkerGlobalScopeScheduler;
+} // namespace scheduler
+
class WebThread;
class WebThreadSupportingGC;
@@ -54,6 +58,9 @@ class CORE_EXPORT WorkerBackingThread final {
void Initialize();
void Shutdown();
+ std::unique_ptr<scheduler::WorkerGlobalScopeScheduler>
+ CreateGlobalScopeScheduler();
haraken 2017/04/17 14:49:52 Shall we inline the method in WorkerThread::Initia
nhiroki 2017/04/18 05:34:38 Done.
+
WebThreadSupportingGC& BackingThread() {
DCHECK(backing_thread_);
return *backing_thread_;

Powered by Google App Engine
This is Rietveld 408576698