mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-23 09:46:04 -05:00
31 lines
589 B
C++
31 lines
589 B
C++
/*
|
|
* Copyright (c) 2022, the SerenityOS developers.
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include "CookiesModel.h"
|
|
#include "Tab.h"
|
|
#include <LibGUI/Widget.h>
|
|
#include <LibWeb/Cookie/Cookie.h>
|
|
|
|
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<GUI::TableView> m_cookies_table_view;
|
|
RefPtr<CookiesModel> m_cookies_model;
|
|
};
|
|
|
|
}
|