mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-25 17:25:08 +02:00
Hook ResourceLoader to emit network request lifecycle events through IPC to the UI process, where FrameActor creates NetworkEventActor instances that serialize requests using Firefox's Remote Debug Protocol. The Network panel now shows requests with method, URL, status, MIME type, size, and timing information. Several features remain stubbed (POST data, response content, cause detection) marked with FIXMEs.
27 lines
561 B
C++
27 lines
561 B
C++
/*
|
|
* Copyright (c) 2025, Tim Flynn <trflynn89@ladybird.org>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <LibDevTools/Actor.h>
|
|
|
|
namespace DevTools {
|
|
|
|
class DEVTOOLS_API NetworkParentActor final : public Actor {
|
|
public:
|
|
static constexpr auto base_name = "networkParent"sv;
|
|
|
|
static NonnullRefPtr<NetworkParentActor> create(DevToolsServer&, String name);
|
|
|
|
private:
|
|
NetworkParentActor(DevToolsServer&, String name);
|
|
virtual ~NetworkParentActor() override;
|
|
|
|
virtual void handle_message(Message const&) override;
|
|
};
|
|
|
|
}
|