Chromium Code Reviews| 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..8b34023b3cc2bdd56e87b6028879543ce797a484 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,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 |parent_frame_task_runner|. |
|
kinuko
2017/05/30 04:38:52
nit:
parent_frame_task_runner -> outside_settings_
nhiroki
2017/05/30 05:25:30
Done.
|
| void FetchAndInvokeScript(const KURL& module_url_record, |
| WebURLRequest::FetchCredentialsMode, |
| + RefPtr<WebTaskRunner> parent_frame_task_runner, |
| WorkletPendingTasks*); |
| + |
| void Terminate(); |
| // ExecutionContext |