Bug 1861467 - [wpt-sync] Update web-platform-tests to eedf737ce39c512d0ca3471f988972e...
[gecko.git] / dom / ipc / RemoteWebProgressRequest.h
blobcef1cb76f6cba77d2546347709f57ffe49aeae8f
1 /* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
5 #ifndef mozilla_dom_RemoteWebProgressRequest_h
6 #define mozilla_dom_RemoteWebProgressRequest_h
8 #include "nsIChannel.h"
9 #include "nsIClassifiedChannel.h"
11 namespace mozilla::dom {
13 class RemoteWebProgressRequest final : public nsIChannel,
14 public nsIClassifiedChannel {
15 public:
16 NS_DECL_ISUPPORTS
17 NS_DECL_NSICHANNEL
18 NS_DECL_NSICLASSIFIEDCHANNEL
19 NS_DECL_NSIREQUEST
21 RemoteWebProgressRequest(nsIURI* aURI, nsIURI* aOriginalURI,
22 const nsACString& aMatchedList)
23 : mURI(aURI), mOriginalURI(aOriginalURI), mMatchedList(aMatchedList) {}
25 protected:
26 ~RemoteWebProgressRequest() = default;
28 private:
29 nsCOMPtr<nsIURI> mURI;
30 nsCOMPtr<nsIURI> mOriginalURI;
31 nsCString mMatchedList;
34 } // namespace mozilla::dom
36 #endif // mozilla_dom_RemoteWebProgressRequest_h