tor-browser

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

nsChromeProtocolHandler.h (1260B)


      1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
      2 /* This Source Code Form is subject to the terms of the Mozilla Public
      3 * License, v. 2.0. If a copy of the MPL was not distributed with this
      4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
      5 
      6 #ifndef nsChromeProtocolHandler_h___
      7 #define nsChromeProtocolHandler_h___
      8 
      9 #include "nsIProtocolHandler.h"
     10 #include "nsWeakReference.h"
     11 
     12 #define NS_CHROMEPROTOCOLHANDLER_CID          \
     13  {/* 61ba33c0-3031-11d3-8cd0-0060b0fc14a3 */ \
     14   0x61ba33c0,                                \
     15   0x3031,                                    \
     16   0x11d3,                                    \
     17   {0x8c, 0xd0, 0x00, 0x60, 0xb0, 0xfc, 0x14, 0xa3}}
     18 
     19 class nsChromeProtocolHandler final : public nsIProtocolHandler,
     20                                      public nsSupportsWeakReference {
     21 public:
     22  NS_DECL_THREADSAFE_ISUPPORTS
     23 
     24  // nsIProtocolHandler methods:
     25  NS_DECL_NSIPROTOCOLHANDLER
     26 
     27  // nsChromeProtocolHandler methods:
     28  nsChromeProtocolHandler() {}
     29  static nsresult CreateNewURI(const nsACString& aSpec, const char* aCharset,
     30                               nsIURI* aBaseURI, nsIURI** result);
     31 
     32 private:
     33  ~nsChromeProtocolHandler() {}
     34 };
     35 
     36 #endif /* nsChromeProtocolHandler_h___ */