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:
parent
23e2408a0e
commit
b6e5b960fd
1 changed files with 2 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue