summaryrefslogtreecommitdiff
path: root/Userland/Applications/Browser/StorageWidget.h
diff options
context:
space:
mode:
authorRafał Babiarz <5783815+Sauler@users.noreply.github.com>2022-03-01 17:10:06 +0100
committerAndreas Kling <kling@serenityos.org>2022-03-02 18:11:17 +0100
commitc2e2a964f2462394c32fbd5d7447da328208830b (patch)
tree47b4f3be15260ba4b36bcf9afe3100c0181e896e /Userland/Applications/Browser/StorageWidget.h
parent5f5ee2020e4a58d01b4bc47f3dfdc6ba44dda75b (diff)
downloadserenity-c2e2a964f2462394c32fbd5d7447da328208830b.zip
Browser: Add storage inspector
Diffstat (limited to 'Userland/Applications/Browser/StorageWidget.h')
-rw-r--r--Userland/Applications/Browser/StorageWidget.h31
1 files changed, 31 insertions, 0 deletions
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 <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;
+};
+
+}