| 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
|
|
|