mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 15:40:19 +00:00
Userland: Mark subclasses of IPC::{Client,Server}Connection final
This commit is contained in:
parent
c1c252ddb2
commit
a345a1f4a1
Notes:
sideshowbarker
2024-07-18 17:30:41 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/a345a1f4a15
10 changed files with 14 additions and 11 deletions
|
@ -14,7 +14,7 @@
|
||||||
|
|
||||||
#define LANGUAGE_CLIENT(language_name_, socket_name) \
|
#define LANGUAGE_CLIENT(language_name_, socket_name) \
|
||||||
namespace language_name_ { \
|
namespace language_name_ { \
|
||||||
class ServerConnection : public HackStudio::ServerConnection { \
|
class ServerConnection final : public HackStudio::ServerConnection { \
|
||||||
C_OBJECT(ServerConnection) \
|
C_OBJECT(ServerConnection) \
|
||||||
public: \
|
public: \
|
||||||
static const char* language_name() { return #language_name_; } \
|
static const char* language_name() { return #language_name_; } \
|
||||||
|
|
|
@ -18,8 +18,7 @@
|
||||||
|
|
||||||
namespace LanguageServers {
|
namespace LanguageServers {
|
||||||
|
|
||||||
class ClientConnection
|
class ClientConnection : public IPC::ClientConnection<LanguageClientEndpoint, LanguageServerEndpoint> {
|
||||||
: public IPC::ClientConnection<LanguageClientEndpoint, LanguageServerEndpoint> {
|
|
||||||
public:
|
public:
|
||||||
explicit ClientConnection(NonnullRefPtr<Core::LocalSocket>, int client_id);
|
explicit ClientConnection(NonnullRefPtr<Core::LocalSocket>, int client_id);
|
||||||
~ClientConnection() override;
|
~ClientConnection() override;
|
||||||
|
|
|
@ -14,7 +14,8 @@ namespace Audio {
|
||||||
|
|
||||||
class Buffer;
|
class Buffer;
|
||||||
|
|
||||||
class ClientConnection : public IPC::ServerConnection<AudioClientEndpoint, AudioServerEndpoint>
|
class ClientConnection final
|
||||||
|
: public IPC::ServerConnection<AudioClientEndpoint, AudioServerEndpoint>
|
||||||
, public AudioClientEndpoint {
|
, public AudioClientEndpoint {
|
||||||
C_OBJECT(ClientConnection)
|
C_OBJECT(ClientConnection)
|
||||||
public:
|
public:
|
||||||
|
|
|
@ -34,7 +34,8 @@ auto Launcher::Details::from_details_str(const String& details_str) -> NonnullRe
|
||||||
return details;
|
return details;
|
||||||
}
|
}
|
||||||
|
|
||||||
class LaunchServerConnection : public IPC::ServerConnection<LaunchClientEndpoint, LaunchServerEndpoint>
|
class LaunchServerConnection final
|
||||||
|
: public IPC::ServerConnection<LaunchClientEndpoint, LaunchServerEndpoint>
|
||||||
, public LaunchClientEndpoint {
|
, public LaunchClientEndpoint {
|
||||||
C_OBJECT(LaunchServerConnection)
|
C_OBJECT(LaunchServerConnection)
|
||||||
private:
|
private:
|
||||||
|
|
|
@ -12,7 +12,8 @@
|
||||||
|
|
||||||
namespace GUI {
|
namespace GUI {
|
||||||
|
|
||||||
class ClipboardServerConnection : public IPC::ServerConnection<ClipboardClientEndpoint, ClipboardServerEndpoint>
|
class ClipboardServerConnection final
|
||||||
|
: public IPC::ServerConnection<ClipboardClientEndpoint, ClipboardServerEndpoint>
|
||||||
, public ClipboardClientEndpoint {
|
, public ClipboardClientEndpoint {
|
||||||
C_OBJECT(ClipboardServerConnection);
|
C_OBJECT(ClipboardServerConnection);
|
||||||
|
|
||||||
|
|
|
@ -11,7 +11,8 @@
|
||||||
|
|
||||||
namespace GUI {
|
namespace GUI {
|
||||||
|
|
||||||
class NotificationServerConnection : public IPC::ServerConnection<NotificationClientEndpoint, NotificationServerEndpoint>
|
class NotificationServerConnection final
|
||||||
|
: public IPC::ServerConnection<NotificationClientEndpoint, NotificationServerEndpoint>
|
||||||
, public NotificationClientEndpoint {
|
, public NotificationClientEndpoint {
|
||||||
C_OBJECT(NotificationServerConnection)
|
C_OBJECT(NotificationServerConnection)
|
||||||
|
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
|
|
||||||
namespace GUI {
|
namespace GUI {
|
||||||
|
|
||||||
class WindowManagerServerConnection
|
class WindowManagerServerConnection final
|
||||||
: public IPC::ServerConnection<WindowManagerClientEndpoint, WindowManagerServerEndpoint>
|
: public IPC::ServerConnection<WindowManagerClientEndpoint, WindowManagerServerEndpoint>
|
||||||
, public WindowManagerClientEndpoint {
|
, public WindowManagerClientEndpoint {
|
||||||
C_OBJECT(WindowManagerServerConnection)
|
C_OBJECT(WindowManagerServerConnection)
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
|
|
||||||
namespace GUI {
|
namespace GUI {
|
||||||
|
|
||||||
class WindowServerConnection
|
class WindowServerConnection final
|
||||||
: public IPC::ServerConnection<WindowClientEndpoint, WindowServerEndpoint>
|
: public IPC::ServerConnection<WindowClientEndpoint, WindowServerEndpoint>
|
||||||
, public WindowClientEndpoint {
|
, public WindowClientEndpoint {
|
||||||
C_OBJECT(WindowServerConnection)
|
C_OBJECT(WindowServerConnection)
|
||||||
|
|
|
@ -15,7 +15,7 @@ namespace Protocol {
|
||||||
|
|
||||||
class Request;
|
class Request;
|
||||||
|
|
||||||
class RequestClient
|
class RequestClient final
|
||||||
: public IPC::ServerConnection<RequestClientEndpoint, RequestServerEndpoint>
|
: public IPC::ServerConnection<RequestClientEndpoint, RequestServerEndpoint>
|
||||||
, public RequestClientEndpoint {
|
, public RequestClientEndpoint {
|
||||||
C_OBJECT(RequestClient);
|
C_OBJECT(RequestClient);
|
||||||
|
|
|
@ -15,7 +15,7 @@ namespace Protocol {
|
||||||
|
|
||||||
class WebSocket;
|
class WebSocket;
|
||||||
|
|
||||||
class WebSocketClient
|
class WebSocketClient final
|
||||||
: public IPC::ServerConnection<WebSocketClientEndpoint, WebSocketServerEndpoint>
|
: public IPC::ServerConnection<WebSocketClientEndpoint, WebSocketServerEndpoint>
|
||||||
, public WebSocketClientEndpoint {
|
, public WebSocketClientEndpoint {
|
||||||
C_OBJECT(WebSocketClient);
|
C_OBJECT(WebSocketClient);
|
||||||
|
|
Loading…
Reference in a new issue