mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-15 16:48:24 +03:00
8ae62c57ee
Hogging "id" and "name" makes it impossible to use these as message parameter names, which seems silly. :^)
18 lines
319 B
C++
18 lines
319 B
C++
#pragma once
|
|
|
|
#include <AK/String.h>
|
|
#include <AK/ByteBuffer.h>
|
|
|
|
class IMessage {
|
|
public:
|
|
virtual ~IMessage();
|
|
|
|
virtual int endpoint_magic() const = 0;
|
|
virtual int message_id() const = 0;
|
|
virtual String message_name() const = 0;
|
|
virtual ByteBuffer encode() const = 0;
|
|
|
|
protected:
|
|
IMessage();
|
|
};
|