mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-10 13:00:29 +03:00
be50806a18
This is to allow building some of these files from Ladybird. The Build directory for Ladybird does not include the "Services/" path.
32 lines
745 B
C++
32 lines
745 B
C++
/*
|
|
* Copyright (c) 2022, Tim Flynn <trflynn89@serenityos.org>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <LibCore/Stream.h>
|
|
#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::Stream::LocalSocket> socket, NonnullRefPtr<Client> client, unsigned session_id);
|
|
|
|
virtual void die() override;
|
|
|
|
private:
|
|
NonnullRefPtr<Client> m_client;
|
|
unsigned m_session_id { 0 };
|
|
};
|
|
|
|
}
|