1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 01:57:45 +00:00

Browser: Add method to get cookies list

This commit is contained in:
Rafał Babiarz 2022-03-01 17:05:42 +01:00 committed by Andreas Kling
parent 81c042a8cd
commit 5f5ee2020e
2 changed files with 12 additions and 0 deletions

View file

@ -29,6 +29,7 @@ public:
String get_cookie(const URL& url, Web::Cookie::Source source);
void set_cookie(const URL& url, const Web::Cookie::ParsedCookie& parsed_cookie, Web::Cookie::Source source);
void dump_cookies() const;
Vector<Web::Cookie::Cookie> get_all_cookies() const;
private:
static Optional<String> canonicalize_domain(const URL& url);