diff options
author | Timothy Flynn <trflynn89@pm.me> | 2021-04-11 23:49:33 -0400 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-04-12 08:57:44 +0200 |
commit | e0f9ed01c7024f16a24d90193f89a5a1cfe50902 (patch) | |
tree | 0c2051ace121a3324e4e67a2bac528badc1de61c /Userland/Applications/Browser/CookieJar.h | |
parent | db2418630990343a3ea48841fd95b05379ffd8e9 (diff) | |
download | serenity-e0f9ed01c7024f16a24d90193f89a5a1cfe50902.zip |
Browser: Process Secure and HttpOnly cookie attributes
Diffstat (limited to 'Userland/Applications/Browser/CookieJar.h')
-rw-r--r-- | Userland/Applications/Browser/CookieJar.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Userland/Applications/Browser/CookieJar.h b/Userland/Applications/Browser/CookieJar.h index 7e2463fb68..b397aed828 100644 --- a/Userland/Applications/Browser/CookieJar.h +++ b/Userland/Applications/Browser/CookieJar.h @@ -40,6 +40,8 @@ struct Cookie { Core::DateTime expiry_time {}; String domain {}; String path {}; + bool secure { false }; + bool http_only { false }; }; class CookieJar { @@ -57,8 +59,8 @@ private: static void on_max_age_attribute(Cookie& cookie, StringView attribute_value); static void on_domain_attribute(Cookie& cookie, StringView attribute_value); static void on_path_attribute(Cookie& cookie, StringView attribute_value); - static void on_secure_attribute(Cookie& cookie, StringView attribute_value); - static void on_http_only_attribute(Cookie& cookie, StringView attribute_value); + static void on_secure_attribute(Cookie& cookie); + static void on_http_only_attribute(Cookie& cookie); HashMap<String, Vector<Cookie>> m_cookies; }; |