tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

RemoteWebProgressRequest.h (1049B)


      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/. */
      4 
      5 #ifndef mozilla_dom_RemoteWebProgressRequest_h
      6 #define mozilla_dom_RemoteWebProgressRequest_h
      7 
      8 #include "nsIChannel.h"
      9 #include "nsIClassifiedChannel.h"
     10 
     11 namespace mozilla::dom {
     12 
     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
     20 
     21  RemoteWebProgressRequest(nsIURI* aURI, nsIURI* aOriginalURI,
     22                           const nsACString& aMatchedList)
     23      : mURI(aURI), mOriginalURI(aOriginalURI), mMatchedList(aMatchedList) {}
     24 
     25 protected:
     26  ~RemoteWebProgressRequest() = default;
     27 
     28 private:
     29  nsCOMPtr<nsIURI> mURI;
     30  nsCOMPtr<nsIURI> mOriginalURI;
     31  nsCString mMatchedList;
     32 };
     33 
     34 }  // namespace mozilla::dom
     35 
     36 #endif  // mozilla_dom_RemoteWebProgressRequest_h