tor-browser

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

SocketProcessBackgroundParent.h (2050B)


      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 mozilla_net_SocketProcessBackgroundParent_h
      7 #define mozilla_net_SocketProcessBackgroundParent_h
      8 
      9 #include "mozilla/net/PSocketProcessBackgroundParent.h"
     10 
     11 namespace mozilla {
     12 namespace net {
     13 
     14 class SocketProcessBackgroundParent final
     15    : public PSocketProcessBackgroundParent {
     16 public:
     17  NS_INLINE_DECL_THREADSAFE_REFCOUNTING(SocketProcessBackgroundParent, final)
     18 
     19  SocketProcessBackgroundParent();
     20 
     21  mozilla::ipc::IPCResult RecvInitVerifySSLServerCert(
     22      Endpoint<PVerifySSLServerCertParent>&& aEndpoint,
     23      nsTArray<ByteArray>&& aPeerCertChain, const nsACString& aHostName,
     24      const int32_t& aPort, const OriginAttributes& aOriginAttributes,
     25      const Maybe<ByteArray>& aStapledOCSPResponse,
     26      const Maybe<ByteArray>& aSctsFromTLSExtension,
     27      const Maybe<DelegatedCredentialInfoArg>& aDcInfo,
     28      const uint32_t& aProviderFlags, const uint32_t& aCertVerifierFlags);
     29 
     30  mozilla::ipc::IPCResult RecvInitIPCClientCerts(
     31      Endpoint<PIPCClientCertsParent>&& aEndpoint);
     32 
     33  mozilla::ipc::IPCResult RecvInitSelectTLSClientAuthCert(
     34      Endpoint<PSelectTLSClientAuthCertParent>&& aEndpoint,
     35      const nsACString& aHostName, const OriginAttributes& aOriginAttributes,
     36      const int32_t& aPort, const uint32_t& aProviderFlags,
     37      const uint32_t& aProviderTlsFlags, const ByteArray& aServerCertBytes,
     38      nsTArray<ByteArray>&& aCANames, const uint64_t& aBrowserId);
     39 
     40  mozilla::ipc::IPCResult RecvInitWebSocketConnection(
     41      Endpoint<PWebSocketConnectionParent>&& aEndpoint,
     42      const uint32_t& aListenerId);
     43 
     44  void ActorDestroy(ActorDestroyReason aReason) override;
     45 
     46 private:
     47  ~SocketProcessBackgroundParent();
     48 };
     49 
     50 }  // namespace net
     51 }  // namespace mozilla
     52 
     53 #endif  // mozilla_net_SocketProcessBackgroundParent_h