| 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..0401d387683d3ec6add665bb0e3fc7a0ad1d28ba 100644
|
| --- a/third_party/WebKit/Source/core/workers/MainThreadWorkletGlobalScope.h
|
| +++ b/third_party/WebKit/Source/core/workers/MainThreadWorkletGlobalScope.h
|
| @@ -10,6 +10,7 @@
|
| #include "core/dom/ExecutionContext.h"
|
| #include "core/workers/WorkletGlobalScope.h"
|
| #include "core/workers/WorkletPendingTasks.h"
|
| +#include "platform/WebTaskRunner.h"
|
| #include "public/platform/WebURLRequest.h"
|
|
|
| namespace blink {
|
| @@ -36,9 +37,16 @@ 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 |outside_settings_task_runner| (i.e., the
|
| + // parent frame's task runner).
|
| void FetchAndInvokeScript(const KURL& module_url_record,
|
| WebURLRequest::FetchCredentialsMode,
|
| + RefPtr<WebTaskRunner> outside_settings_task_runner,
|
| WorkletPendingTasks*);
|
| +
|
| void Terminate();
|
|
|
| // ExecutionContext
|
|
|