/* * Copyright (c) 2022, the SerenityOS developers. * * SPDX-License-Identifier: BSD-2-Clause */ #pragma once #include "CookiesModel.h" #include "StorageModel.h" #include "Tab.h" #include #include #include #include namespace Browser { class StorageWidget final : public GUI::Widget { C_OBJECT(StorageWidget); public: virtual ~StorageWidget() override = default; void set_cookies_entries(Vector entries); void clear_cookies(); Function on_update_cookie; void set_local_storage_entries(OrderedHashMap entries); void clear_local_storage_entries(); void set_session_storage_entries(OrderedHashMap entries); void clear_session_storage_entries(); private: StorageWidget(); void delete_cookie(Web::Cookie::Cookie); RefPtr m_cookies_table_view; RefPtr m_cookies_textbox; RefPtr m_cookies_model; RefPtr m_cookies_filtering_model; RefPtr m_cookies_context_menu; RefPtr m_local_storage_table_view; RefPtr m_local_storage_textbox; RefPtr m_local_storage_model; RefPtr m_local_storage_filtering_model; RefPtr m_session_storage_table_view; RefPtr m_session_storage_textbox; RefPtr m_session_storage_model; RefPtr m_session_storage_filtering_model; }; }