mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 10:57:35 +00:00
Browser: Add storage inspector
This commit is contained in:
parent
5f5ee2020e
commit
c2e2a964f2
10 changed files with 431 additions and 0 deletions
31
Userland/Applications/Browser/StorageWidget.h
Normal file
31
Userland/Applications/Browser/StorageWidget.h
Normal file
|
@ -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 <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;
|
||||
};
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue