Name Description Size Coverage
moz.build 705 -
PSharedWorker.ipdl Protocol for SharedWorker bindings to communicate with per-worker SharedWorkerManager instances in the parent via SharedWorkerChild / SharedWorkerParent and SharedWorkerService getting/creating the SharedWorkerManager if it doesn't already exist. Main-thread to PBackground. 1104 -
SharedWorker.cpp 15167 -
SharedWorker.h DOM binding. Holds a SharedWorkerChild. Must exist on the main thread because we only allow top-level windows to create SharedWorkers. 3061 100 %
SharedWorkerChild.cpp 5482 -
SharedWorkerChild.h Held by SharedWorker bindings to remotely control sharedworker lifecycle and receive error and termination reports. 1656 67 %
SharedWorkerManager.cpp 11246 -
SharedWorkerManager.h PBackground instance that corresponds to a single logical Shared Worker that exists somewhere in the process tree. Referenced/owned by multiple SharedWorkerParent instances on the PBackground thread. Holds/owns a single RemoteWorkerController to interact with the actual shared worker thread, wherever it is located. Creates the RemoteWorkerController via RemoteWorkerController::Create which uses RemoteWorkerManager::Launch under the hood. 5448 -
SharedWorkerOp.cpp 8229 -
SharedWorkerOp.h 1139 -
SharedWorkerOpArgs.ipdlh 1255 -
SharedWorkerParent.cpp 4965 -
SharedWorkerParent.h PBackground actor that relays life-cycle events (freeze/thaw, suspend/resume, close) to the PBackground SharedWorkerManager and relays error/termination back to the child. 2337 100 %
SharedWorkerService.cpp static 10628 -
SharedWorkerService.h PBackground service that creates and tracks the per-worker SharedWorkerManager instances, allowing rendezvous between SharedWorkerParent instances and the SharedWorkerManagers they want to talk to (1:1). 2460 -