Name Description Size
moz.build 712
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. 967
SharedWorker.cpp 14071
SharedWorker.h DOM binding. Holds a SharedWorkerChild. Must exist on the main thread because we only allow top-level windows to create SharedWorkers. 2572
SharedWorkerChild.cpp 4754
SharedWorkerChild.h Held by SharedWorker bindings to remotely control sharedworker lifecycle and receive error and termination reports. 1570
SharedWorkerManager.cpp 10469
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. 5349
SharedWorkerParent.cpp 4154
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. 2192
SharedWorkerService.cpp static 8611
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). 2357