1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 14:38:11 +00:00

LibWeb: Port WorkerLocation to new String

This commit is contained in:
Kenneth Myhra 2023-02-20 21:44:05 +01:00 committed by Sam Atkins
parent 511ce240f2
commit 9c5bdb0b86
3 changed files with 48 additions and 34 deletions

View file

@ -17,15 +17,15 @@ class WorkerLocation : public Bindings::PlatformObject {
public:
virtual ~WorkerLocation() override;
DeprecatedString href() const;
DeprecatedString origin() const;
DeprecatedString protocol() const;
DeprecatedString host() const;
DeprecatedString hostname() const;
DeprecatedString port() const;
DeprecatedString pathname() const;
DeprecatedString search() const;
DeprecatedString hash() const;
WebIDL::ExceptionOr<String> href() const;
WebIDL::ExceptionOr<String> origin() const;
WebIDL::ExceptionOr<String> protocol() const;
WebIDL::ExceptionOr<String> host() const;
WebIDL::ExceptionOr<String> hostname() const;
WebIDL::ExceptionOr<String> port() const;
WebIDL::ExceptionOr<String> pathname() const;
WebIDL::ExceptionOr<String> search() const;
WebIDL::ExceptionOr<String> hash() const;
private:
explicit WorkerLocation(WorkerGlobalScope&);