Bug 1701957 [wpt PR 28298] - Incorrect reference for hsl() test, a=testonly
[gecko.git] / dom / url / URLWorker.h
blobdb17262243cf26fa244dd9fd7f79cda7e642b7ce
1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* vim: set ts=8 sts=2 et sw=2 tw=80: */
3 /* This Source Code Form is subject to the terms of the Mozilla Public
4 * License, v. 2.0. If a copy of the MPL was not distributed with this
5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
7 #ifndef mozilla_dom_URLWorker_h
8 #define mozilla_dom_URLWorker_h
10 #include "URL.h"
11 #include "URLMainThread.h"
13 namespace mozilla {
15 namespace net {
16 class nsStandardURL;
19 namespace dom {
21 class URLWorker final {
22 public:
23 static already_AddRefed<URLWorker> Constructor(
24 const GlobalObject& aGlobal, const nsAString& aURL,
25 const Optional<nsAString>& aBase, ErrorResult& aRv);
27 static already_AddRefed<URLWorker> Constructor(const GlobalObject& aGlobal,
28 const nsAString& aURL,
29 const nsAString& aBase,
30 ErrorResult& aRv);
32 static void CreateObjectURL(const GlobalObject& aGlobal, Blob& aBlob,
33 nsAString& aResult, mozilla::ErrorResult& aRv);
35 static void RevokeObjectURL(const GlobalObject& aGlobal,
36 const nsAString& aUrl, ErrorResult& aRv);
38 static bool IsValidURL(const GlobalObject& aGlobal, const nsAString& aUrl,
39 ErrorResult& aRv);
42 } // namespace dom
43 } // namespace mozilla
45 #endif // mozilla_dom_URLWorker_h