mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-10 18:10:56 +09:00
LibDevTools: Automatically set the "from" field for server responses
The "from" field is required in every response. It is the name of the actor sending the message. This patch fills in the "from" field in the Actor base class so that subclasses don't have to.
This commit is contained in:
parent
a7b577126a
commit
4ce10f3bf4
Notes:
github-actions[bot]
2025-03-12 16:49:10 +00:00
Author: https://github.com/trflynn89
Commit: 4ce10f3bf4
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3904
19 changed files with 19 additions and 76 deletions
|
@ -42,7 +42,7 @@ public:
|
|||
WeakPtr<Actor> m_actor;
|
||||
};
|
||||
|
||||
void send_message(JsonValue, Optional<BlockToken> block_token = {});
|
||||
void send_message(JsonObject, Optional<BlockToken> block_token = {});
|
||||
void send_missing_parameter_error(StringView parameter);
|
||||
void send_unrecognized_packet_type_error(StringView type);
|
||||
void send_unknown_actor_error(StringView actor);
|
||||
|
@ -59,7 +59,7 @@ private:
|
|||
DevToolsServer& m_devtools;
|
||||
String m_name;
|
||||
|
||||
Vector<JsonValue> m_blocked_responses;
|
||||
Vector<JsonObject> m_blocked_responses;
|
||||
bool m_block_responses { false };
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue