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