/* * Copyright (c) 2026-present, the Ladybird developers. * * SPDX-License-Identifier: BSD-2-Clause */ #pragma once #include #include #include #include #include #include #include #include #include namespace WebView { inline ByteString history_log_suggestions(Vector const& suggestions) { return ByteString::formatted("[{}]", ByteString::join(", "sv, suggestions)); } WEBVIEW_API bool history_debug_enabled(); WEBVIEW_API ByteString history_log_entries(TraversableSessionHistory const&); WEBVIEW_API ByteString history_log_entries(Vector const&, Optional current_entry_index = {}); WEBVIEW_API ByteString history_log_steps(Vector const&, Optional current_step_index = {}); WEBVIEW_API JsonObject history_json_entry(Web::HTML::SessionHistoryEntryDescriptor const&, bool current = false); WEBVIEW_API JsonArray history_json_entries(TraversableSessionHistory const&); WEBVIEW_API JsonArray history_json_entries(Vector const&, Optional current_entry_index = {}); WEBVIEW_API JsonArray history_json_steps(TraversableSessionHistory const&); WEBVIEW_API JsonArray history_json_steps(Vector const&, Optional current_step_index = {}); }