Bug 1572644 - Part 4: Add WorkletLoadContext and nsMainThreadPtrHandle to delegate WorkletFetchHandler on the worklet thread. r=jonco,yulia

Add nsMainThreadPtrHandle to delegate WorkletFetchHandler.
Add WorkletLoadContext to wrap nsMainThreadPtrHandle.



Depends on D166541

Differential Revision: https://phabricator.services.mozilla.com/D166542
This commit is contained in:
Yoshi Cheng-Hao Huang
2023-03-13 22:59:37 +00:00
parent 32b3d9b5ad
commit a800ffea91
6 changed files with 55 additions and 7 deletions

View File

@@ -36,6 +36,7 @@ namespace mozilla::dom {
class ScriptLoadContext;
class WorkerLoadContext;
class WorkletLoadContext;
} // namespace mozilla::dom
@@ -314,6 +315,8 @@ class ScriptLoadRequest
mozilla::dom::WorkerLoadContext* GetWorkerLoadContext();
mozilla::dom::WorkletLoadContext* GetWorkletLoadContext();
const ScriptKind mKind; // Whether this is a classic script or a module
// script.