tor-browser

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

AltServiceParent.h (1328B)


      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 AltServiceParent_h__
      7 #define AltServiceParent_h__
      8 
      9 #include "mozilla/net/PAltServiceParent.h"
     10 
     11 namespace mozilla {
     12 namespace net {
     13 
     14 class AltServiceParent final : public PAltServiceParent {
     15 public:
     16  NS_INLINE_DECL_REFCOUNTING(AltServiceParent, override)
     17  AltServiceParent() = default;
     18 
     19  mozilla::ipc::IPCResult RecvClearHostMapping(
     20      const nsCString& aHost, const int32_t& aPort,
     21      const OriginAttributes& aOriginAttributes);
     22 
     23  mozilla::ipc::IPCResult RecvProcessHeader(
     24      const nsCString& aBuf, const nsCString& aOriginScheme,
     25      const nsCString& aOriginHost, const int32_t& aOriginPort,
     26      const nsACString& aUsername, const bool& aPrivateBrowsing,
     27      nsTArray<ProxyInfoCloneArgs>&& aProxyInfo, const uint32_t& aCaps,
     28      const OriginAttributes& aOriginAttributes,
     29      const HttpConnectionInfoCloneArgs& aArgs);
     30 
     31  void ActorDestroy(ActorDestroyReason aWhy) override;
     32 
     33 private:
     34  virtual ~AltServiceParent() = default;
     35 };
     36 
     37 }  // namespace net
     38 }  // namespace mozilla
     39 
     40 #endif  // AltServiceParent_h__