/* * Copyright (c) 2022-2024, Tim Flynn * * SPDX-License-Identifier: BSD-2-Clause */ #pragma once #include #include #include #include namespace WebDriver { class Client; class WebContentConnection : public IPC::ConnectionFromClient { C_OBJECT_ABSTRACT(WebContentConnection) public: explicit WebContentConnection(IPC::Transport transport); Function on_close; Function on_driver_execution_complete; private: virtual void die() override; virtual void driver_execution_complete(Web::WebDriver::Response const&) override; }; }