mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-23 08:00:20 +00:00
7af5eef0dd
This commit does three things atomically: - switch over Core::Account+SystemServer+LoginServer to sid based socket names. - change socket names with %uid to %sid. - add/update necessary pledges and unveils. Userland: Switch over servers to sid based sockets Userland: Properly pledge and unveil for sid based sockets
30 lines
823 B
C++
30 lines
823 B
C++
/*
|
|
* Copyright (c) 2018-2021, Andreas Kling <kling@serenityos.org>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <InspectorServer/InspectorClientEndpoint.h>
|
|
#include <InspectorServer/InspectorServerEndpoint.h>
|
|
#include <LibIPC/ConnectionToServer.h>
|
|
|
|
namespace Inspector {
|
|
|
|
class InspectorServerClient final
|
|
: public IPC::ConnectionToServer<InspectorClientEndpoint, InspectorServerEndpoint>
|
|
, public InspectorClientEndpoint {
|
|
IPC_CLIENT_CONNECTION(InspectorServerClient, "/tmp/session/%sid/portal/inspector"sv)
|
|
|
|
public:
|
|
virtual ~InspectorServerClient() override = default;
|
|
|
|
private:
|
|
InspectorServerClient(NonnullOwnPtr<Core::Stream::LocalSocket> socket)
|
|
: IPC::ConnectionToServer<InspectorClientEndpoint, InspectorServerEndpoint>(*this, move(socket))
|
|
{
|
|
}
|
|
};
|
|
|
|
}
|