static
| 211 | |
| 212 | // static |
| 213 | void ElectronApiSWIPCHandlerImpl::BindReceiver( |
| 214 | content::ChildProcessId render_process_id, |
| 215 | int64_t version_id, |
| 216 | mojo::PendingAssociatedReceiver<mojom::ElectronApiIPC> receiver) { |
| 217 | DCHECK_CURRENTLY_ON(content::BrowserThread::UI); |
| 218 | auto* render_process_host = |
| 219 | content::RenderProcessHost::FromID(render_process_id); |
| 220 | if (!render_process_host) { |
| 221 | return; |
| 222 | } |
| 223 | auto* service_worker_ipc_list = ServiceWorkerIPCList::Get( |
| 224 | render_process_host, /*create_if_not_exists=*/true); |
| 225 | service_worker_ipc_list->list.push_back( |
| 226 | std::make_unique<ElectronApiSWIPCHandlerImpl>( |
| 227 | render_process_host, version_id, std::move(receiver))); |
| 228 | } |
| 229 | |
| 230 | } // namespace electron |
no test coverage detected