mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-04 01:12: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.
34 lines
816 B
C++
34 lines
816 B
C++
/*
|
|
* Copyright (c) 2025, Tim Flynn <trflynn89@ladybird.org>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <AK/NonnullRefPtr.h>
|
|
#include <LibDevTools/Actor.h>
|
|
|
|
namespace DevTools {
|
|
|
|
class WatcherActor final : public Actor {
|
|
public:
|
|
static constexpr auto base_name = "watcher"sv;
|
|
|
|
static NonnullRefPtr<WatcherActor> create(DevToolsServer&, String name, WeakPtr<TabActor>);
|
|
virtual ~WatcherActor() override;
|
|
|
|
JsonObject serialize_description() const;
|
|
|
|
private:
|
|
WatcherActor(DevToolsServer&, String name, WeakPtr<TabActor>);
|
|
|
|
virtual void handle_message(Message const&) override;
|
|
|
|
WeakPtr<TabActor> m_tab;
|
|
WeakPtr<Actor> m_target;
|
|
WeakPtr<TargetConfigurationActor> m_target_configuration;
|
|
WeakPtr<ThreadConfigurationActor> m_thread_configuration;
|
|
};
|
|
|
|
}
|