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

Browser+LibWeb: Add hooks for getting and setting cookies

This commit is contained in:
Timothy Flynn 2021-04-11 10:53:15 -04:00 committed by Andreas Kling
parent f0cdb2bf50
commit e54837add5
4 changed files with 26 additions and 0 deletions

View file

@ -48,6 +48,8 @@ public:
Function<void(DOM::Document*)> on_set_document;
Function<void(const URL&, const String&)> on_get_source;
Function<void(const String& method, const String& line)> on_js_console_output;
Function<String(const URL& url)> on_get_cookie;
Function<void(const URL& url, const String& cookie)> on_set_cookie;
};
}