Bug 1873666 [wpt PR 43897] - Add VideoTrackGenerator IDL tests, a=testonly
[gecko.git] / netwerk / ipc / SocketProcessBackgroundParent.h
blob0714f8dd6ee59d8fb7fbc0466a21ce2143bc9d03
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/. */
6 #ifndef mozilla_net_SocketProcessBackgroundParent_h
7 #define mozilla_net_SocketProcessBackgroundParent_h
9 #include "mozilla/net/PSocketProcessBackgroundParent.h"
11 namespace mozilla {
12 namespace net {
14 class SocketProcessBackgroundParent final
15 : public PSocketProcessBackgroundParent {
16 public:
17 NS_INLINE_DECL_THREADSAFE_REFCOUNTING(SocketProcessBackgroundParent, final)
19 SocketProcessBackgroundParent();
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);
30 mozilla::ipc::IPCResult RecvInitIPCClientCerts(
31 Endpoint<PIPCClientCertsParent>&& aEndpoint);
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);
40 mozilla::ipc::IPCResult RecvInitWebSocketConnection(
41 Endpoint<PWebSocketConnectionParent>&& aEndpoint,
42 const uint32_t& aListenerId);
44 void ActorDestroy(ActorDestroyReason aReason) override;
46 private:
47 ~SocketProcessBackgroundParent();
50 } // namespace net
51 } // namespace mozilla
53 #endif // mozilla_net_SocketProcessBackgroundParent_h