mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-03 17:02:56 +00:00
This is to prepare for an upcoming change where we will need to track replies to messages by ID. We will be able to add parameters to this structure without having to edit every single actor subclass header file.
28 lines
587 B
C++
28 lines
587 B
C++
/*
|
|
* Copyright (c) 2025, Tim Flynn <trflynn89@ladybird.org>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#include <LibDevTools/Actors/ThreadActor.h>
|
|
|
|
namespace DevTools {
|
|
|
|
NonnullRefPtr<ThreadActor> ThreadActor::create(DevToolsServer& devtools, String name)
|
|
{
|
|
return adopt_ref(*new ThreadActor(devtools, move(name)));
|
|
}
|
|
|
|
ThreadActor::ThreadActor(DevToolsServer& devtools, String name)
|
|
: Actor(devtools, move(name))
|
|
{
|
|
}
|
|
|
|
ThreadActor::~ThreadActor() = default;
|
|
|
|
void ThreadActor::handle_message(Message const& message)
|
|
{
|
|
send_unrecognized_packet_type_error(message);
|
|
}
|
|
|
|
}
|