tor-browser

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

AltServiceChild.h (1397B)


      1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
      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 AltServiceChild_h__
      7 #define AltServiceChild_h__
      8 
      9 #include "mozilla/net/PAltServiceChild.h"
     10 
     11 class nsIInterfaceRequestor;
     12 
     13 namespace mozilla {
     14 namespace net {
     15 
     16 class nsHttpConnectionInfo;
     17 class nsProxyInfo;
     18 
     19 class AltServiceChild final : public PAltServiceChild {
     20 public:
     21  NS_INLINE_DECL_REFCOUNTING(AltServiceChild, override)
     22 
     23  static bool EnsureAltServiceChild();
     24  static void ClearHostMapping(nsHttpConnectionInfo* aCi);
     25  static void ProcessHeader(const nsCString& aBuf,
     26                            const nsCString& aOriginScheme,
     27                            const nsCString& aOriginHost, int32_t aOriginPort,
     28                            const nsCString& aUsername, bool aPrivateBrowsing,
     29                            nsIInterfaceRequestor* aCallbacks,
     30                            nsProxyInfo* aProxyInfo, uint32_t aCaps,
     31                            const OriginAttributes& aOriginAttributes,
     32                            nsHttpConnectionInfo* aConnInfo);
     33 
     34 private:
     35  AltServiceChild();
     36  virtual ~AltServiceChild();
     37 };
     38 
     39 }  // namespace net
     40 }  // namespace mozilla
     41 
     42 #endif  // AltServiceChild_h__