/* * Copyright (c) 2022, Tim Flynn * * SPDX-License-Identifier: BSD-2-Clause */ #include #include namespace WebDriver { WebContentConnection::WebContentConnection(NonnullOwnPtr socket, NonnullRefPtr client, unsigned session_id) : IPC::ConnectionFromClient(*this, move(socket), 1) , m_client(move(client)) , m_session_id(session_id) { } void WebContentConnection::die() { dbgln_if(WEBDRIVER_DEBUG, "Session {} was closed remotely. Shutting down...", m_session_id); m_client->close_session(m_session_id); } }