/* * Copyright (c) 2022-2024, Tim Flynn * * SPDX-License-Identifier: BSD-2-Clause */ #include #include namespace WebDriver { WebContentConnection::WebContentConnection(NonnullOwnPtr transport) : IPC::ConnectionFromClient(*this, move(transport), 1) { } void WebContentConnection::die() { if (on_close) on_close(); } void WebContentConnection::driver_execution_complete(Web::WebDriver::Response response) { if (on_driver_execution_complete) on_driver_execution_complete(move(response)); } }