mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-22 08:00:45 +00:00
39 lines
917 B
C++
39 lines
917 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>
|
|
#include <LibDevTools/Forward.h>
|
|
|
|
namespace DevTools {
|
|
|
|
struct ProcessDescription {
|
|
u64 id { 0 };
|
|
bool is_parent { false };
|
|
bool is_windowless_parent { false };
|
|
};
|
|
|
|
class DEVTOOLS_API ProcessActor final : public Actor {
|
|
public:
|
|
static constexpr auto base_name = "process"sv;
|
|
|
|
static NonnullRefPtr<ProcessActor> create(DevToolsServer&, String name, ProcessDescription);
|
|
virtual ~ProcessActor() override;
|
|
|
|
ProcessDescription const& description() const { return m_description; }
|
|
JsonObject serialize_description() const;
|
|
|
|
private:
|
|
ProcessActor(DevToolsServer&, String name, ProcessDescription);
|
|
|
|
virtual void handle_message(Message const&) override;
|
|
|
|
ProcessDescription m_description;
|
|
};
|
|
|
|
}
|