mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 09:47:35 +00:00
Browser+LibWeb+WebContent: Add ability to inspect local storage
The storage inspector now has a new tab for local storage. The next step would be to persist local storage and receive real-time notifications for changes to update the table view.
This commit is contained in:
parent
f2b4c044db
commit
45a81f5a2c
14 changed files with 168 additions and 4 deletions
|
@ -7,6 +7,7 @@
|
|||
#pragma once
|
||||
|
||||
#include "CookiesModel.h"
|
||||
#include "LocalStorageModel.h"
|
||||
#include "Tab.h"
|
||||
#include <LibGUI/SortingProxyModel.h>
|
||||
#include <LibGUI/Widget.h>
|
||||
|
@ -22,12 +23,18 @@ public:
|
|||
void add_cookie(Web::Cookie::Cookie const& cookie);
|
||||
void clear_cookies();
|
||||
|
||||
void set_local_storage_entries(OrderedHashMap<String, String> entries);
|
||||
void clear_local_storage_entries();
|
||||
|
||||
private:
|
||||
StorageWidget();
|
||||
|
||||
RefPtr<GUI::TableView> m_cookies_table_view;
|
||||
RefPtr<CookiesModel> m_cookies_model;
|
||||
RefPtr<GUI::SortingProxyModel> m_sorting_model;
|
||||
RefPtr<GUI::SortingProxyModel> m_cookie_sorting_model;
|
||||
RefPtr<GUI::TableView> m_local_storage_table_view;
|
||||
RefPtr<LocalStorageModel> m_local_storage_model;
|
||||
RefPtr<GUI::SortingProxyModel> m_local_storage_sorting_model;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue