ladybird/Userland/Libraries/LibWebView/PageInfo.h
Timothy Flynn 3332230cef LibWebView+WebContent+headless-browser: Make the page info IPCs async
The IPCs to request a page's text, layout tree, etc. are currently all
synchronous. This can result in a deadlock when WebContent also makes
a synchronous IPC call, as both ends will be waiting on each other.

This replaces the page info IPCs with a single, asynchronous IPC. This
new IPC is promise-based, much like our screenshot IPC.
2024-09-19 18:07:17 +02:00

23 lines
335 B
C++

/*
* Copyright (c) 2024, Tim Flynn <trflynn89@ladybird.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include <AK/EnumBits.h>
namespace WebView {
enum class PageInfoType {
Text = 1 << 0,
LayoutTree = 1 << 2,
PaintTree = 1 << 3,
GCGraph = 1 << 4,
};
AK_ENUM_BITWISE_OPERATORS(PageInfoType);
}