mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-24 02:03:06 -05:00
16a4949e33
If WebContent process got disconnected it is only necessary to remove associated window instead of terminating the entire session.
28 lines
611 B
C++
28 lines
611 B
C++
/*
|
|
* Copyright (c) 2022, Tim Flynn <trflynn89@serenityos.org>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <LibIPC/ConnectionFromClient.h>
|
|
#include <WebContent/WebDriverClientEndpoint.h>
|
|
#include <WebContent/WebDriverServerEndpoint.h>
|
|
|
|
namespace WebDriver {
|
|
|
|
class Client;
|
|
|
|
class WebContentConnection
|
|
: public IPC::ConnectionFromClient<WebDriverClientEndpoint, WebDriverServerEndpoint> {
|
|
C_OBJECT_ABSTRACT(WebContentConnection)
|
|
public:
|
|
WebContentConnection(NonnullOwnPtr<Core::LocalSocket> socket);
|
|
|
|
Function<void()> on_close;
|
|
|
|
virtual void die() override;
|
|
};
|
|
|
|
}
|