LibURL: Add a Origin::is_opaque_file_origin helper

We will likely have some of these dotted around the place AD-HOC,
so let's make this a bit more readable when used.
This commit is contained in:
Shannon Booth 2026-02-28 22:35:23 +01:00 committed by Shannon Booth
parent 23e2408a0e
commit b6e5b960fd

View file

@ -124,6 +124,8 @@ public:
bool operator==(Origin const& other) const { return is_same_origin(other); }
bool is_opaque_file_origin() const { return is_opaque() && opaque_data().type == OpaqueData::Type::File; }
private:
struct Tuple {
Optional<String> scheme;