From c2e2a964f2462394c32fbd5d7447da328208830b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Babiarz?= <5783815+Sauler@users.noreply.github.com> Date: Tue, 1 Mar 2022 17:10:06 +0100 Subject: Browser: Add storage inspector --- Userland/Applications/Browser/StorageWidget.h | 31 +++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 Userland/Applications/Browser/StorageWidget.h (limited to 'Userland/Applications/Browser/StorageWidget.h') diff --git a/Userland/Applications/Browser/StorageWidget.h b/Userland/Applications/Browser/StorageWidget.h new file mode 100644 index 0000000000..126af19ed7 --- /dev/null +++ b/Userland/Applications/Browser/StorageWidget.h @@ -0,0 +1,31 @@ +/* + * Copyright (c) 2022, the SerenityOS developers. + * + * SPDX-License-Identifier: BSD-2-Clause + */ + +#pragma once + +#include "CookiesModel.h" +#include "Tab.h" +#include +#include + +namespace Browser { + +class StorageWidget final : public GUI::Widget { + C_OBJECT(StorageWidget); + +public: + virtual ~StorageWidget() override = default; + void add_cookie(Web::Cookie::Cookie const& cookie); + void clear_cookies(); + +private: + StorageWidget(); + + RefPtr m_cookies_table_view; + RefPtr m_cookies_model; +}; + +} -- cgit v1.2.3