LibURL: Implement Site concept

This commit is contained in:
Sam Atkins 2024-11-27 16:47:14 +00:00 committed by Andreas Kling
commit b83f015c70
Notes: github-actions[bot] 2024-11-30 11:23:42 +00:00
6 changed files with 146 additions and 1 deletions

View file

@ -8,6 +8,7 @@
#pragma once
#include <AK/ByteString.h>
#include <LibURL/Forward.h>
#include <LibURL/Host.h>
namespace URL {
@ -74,6 +75,9 @@ public:
return false;
}
// https://html.spec.whatwg.org/multipage/browsers.html#same-site
bool is_same_site(Origin const&) const;
// https://html.spec.whatwg.org/multipage/origin.html#ascii-serialisation-of-an-origin
String serialize() const;