Skip to content

Truly independent web browser

596 B
Raw Blame
/*
 * Copyright (c) 2026, Tim Flynn <[email protected]>
 *
 * SPDX-License-Identifier: BSD-2-Clause
 */

#pragma once

#include <UI/Qt/WebUIPage.h>

namespace Ladybird {

class HistoryPage final : public WebUIPage {
public:
    HistoryPage(u64 web_ui_id, WebView::IsPrivate);

    virtual void received_message(String const& name, JsonValue const& data) override;

private:
    void load_history_entries(JsonValue const&);
    void remove_history_entry(JsonValue const&);
    void forget_history_site(JsonValue const&);

    WebView::IsPrivate m_is_private { WebView::IsPrivate::No };
};

}