mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-27 23:09:08 +00:00
Everywhere: Use unqualified AK::URL
Now possible in LibWeb now that there is no longer a Web::URL.
This commit is contained in:
parent
f9e5b43b7a
commit
9ce8189f21
Notes:
sideshowbarker
2024-07-16 20:12:13 +09:00
Author: https://github.com/shannonbooth
Commit: 9ce8189f21
Pull-request: https://github.com/SerenityOS/serenity/pull/23152
Reviewed-by: https://github.com/awesomekling ✅
156 changed files with 471 additions and 471 deletions
|
@ -15,13 +15,13 @@ namespace Web::HTML {
|
|||
|
||||
class ModuleLocationTuple {
|
||||
public:
|
||||
ModuleLocationTuple(AK::URL url, ByteString type)
|
||||
ModuleLocationTuple(URL url, ByteString type)
|
||||
: m_url(move(url))
|
||||
, m_type(move(type))
|
||||
{
|
||||
}
|
||||
|
||||
AK::URL const& url() const { return m_url; }
|
||||
URL const& url() const { return m_url; }
|
||||
ByteString const& type() const { return m_type; }
|
||||
|
||||
bool operator==(ModuleLocationTuple const& other) const
|
||||
|
@ -30,7 +30,7 @@ public:
|
|||
}
|
||||
|
||||
private:
|
||||
AK::URL m_url;
|
||||
URL m_url;
|
||||
ByteString m_type;
|
||||
};
|
||||
|
||||
|
@ -56,16 +56,16 @@ public:
|
|||
|
||||
using CallbackFunction = JS::NonnullGCPtr<JS::HeapFunction<void(Entry)>>;
|
||||
|
||||
bool is_fetching(AK::URL const& url, ByteString const& type) const;
|
||||
bool is_failed(AK::URL const& url, ByteString const& type) const;
|
||||
bool is_fetching(URL const& url, ByteString const& type) const;
|
||||
bool is_failed(URL const& url, ByteString const& type) const;
|
||||
|
||||
bool is(AK::URL const& url, ByteString const& type, EntryType) const;
|
||||
bool is(URL const& url, ByteString const& type, EntryType) const;
|
||||
|
||||
Optional<Entry> get(AK::URL const& url, ByteString const& type) const;
|
||||
Optional<Entry> get(URL const& url, ByteString const& type) const;
|
||||
|
||||
AK::HashSetResult set(AK::URL const& url, ByteString const& type, Entry);
|
||||
AK::HashSetResult set(URL const& url, ByteString const& type, Entry);
|
||||
|
||||
void wait_for_change(JS::Heap&, AK::URL const& url, ByteString const& type, Function<void(Entry)> callback);
|
||||
void wait_for_change(JS::Heap&, URL const& url, ByteString const& type, Function<void(Entry)> callback);
|
||||
|
||||
private:
|
||||
virtual void visit_edges(JS::Cell::Visitor&) override;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue