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

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

Issue 2910953002: Worklet: Enqueue tasks into outsideSetting's event loop (Closed)
Patch Set: add comments Created 3 years, 7 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/MainThreadWorkletGlobalScope.h
diff --git a/third_party/WebKit/Source/core/workers/MainThreadWorkletGlobalScope.h b/third_party/WebKit/Source/core/workers/MainThreadWorkletGlobalScope.h
index 7c5ffaebbb1115510e628b739ce2b487e68e11cf..7d1658a11b6e8ede524264f63fa5747f4cd0ab27 100644
--- a/third_party/WebKit/Source/core/workers/MainThreadWorkletGlobalScope.h
+++ b/third_party/WebKit/Source/core/workers/MainThreadWorkletGlobalScope.h
@@ -16,6 +16,7 @@ namespace blink {
class ConsoleMessage;
class LocalFrame;
+class ParentFrameTaskRunners;
class CORE_EXPORT MainThreadWorkletGlobalScope
: public WorkletGlobalScope,
@@ -36,9 +37,15 @@ class CORE_EXPORT MainThreadWorkletGlobalScope
void ReportDeprecation(UseCounter::Feature) override;
WorkerThread* GetThread() const final;
+ // Implementation of the "fetch and invoke a worklet script" algorithm:
+ // https://drafts.css-houdini.org/worklets/#fetch-and-invoke-a-worklet-script
+ // When script evaluation is done or any exception happens, it's notified to
+ // the given WorkletPendingTasks via the parent frame task runners.
void FetchAndInvokeScript(const KURL& module_url_record,
WebURLRequest::FetchCredentialsMode,
+ ParentFrameTaskRunners*,
WorkletPendingTasks*);
+
void Terminate();
// ExecutionContext

Powered by Google App Engine
This is Rietveld 408576698