Backed out 10 changesets (bug 1803810) for xpcshell failures on test_import_global...
[gecko.git] / netwerk / ipc / PSocketProcessBackground.ipdl
blob8c703a4ae2f6dbc5bf53f410afa6d5dce9a73b9d
1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* vim: set ts=2 et sw=2 tw=80: */
3 /* This Source Code Form is subject to the terms of the Mozilla Public
4  * License, v. 2.0. If a copy of the MPL was not distributed with this file,
5  * You can obtain one at http://mozilla.org/MPL/2.0/. */
7 include protocol PVerifySSLServerCert;
8 include protocol PSelectTLSClientAuthCert;
9 include protocol PIPCClientCerts;
10 include protocol PWebSocketConnection;
12 include PSMIPCTypes;
14 using mozilla::OriginAttributes from "mozilla/ipc/BackgroundUtils.h";
16 namespace mozilla {
17 namespace net {
19 /**
20   * PSocketProcessBackground is the top level IPC protocol between
21   * a background task queue in the socket process and the parent process.
22   * We use this to create several IPC protocols between the socket process
23   * and the parent process.
24   */
25 [ChildProc=Socket]
26 sync protocol PSocketProcessBackground
28 parent:
29   async InitVerifySSLServerCert(
30     Endpoint<PVerifySSLServerCertParent> aEndpoint,
31     ByteArray[] aPeerCertChain,
32     nsCString aHostName,
33     int32_t aPort,
34     OriginAttributes aOriginAttributes,
35     ByteArray? aStapledOCSPResponse,
36     ByteArray? aSctsFromTLSExtension,
37     DelegatedCredentialInfoArg? aDcInfo,
38     uint32_t aProviderFlags,
39     uint32_t aCertVerifierFlags);
41   async InitSelectTLSClientAuthCert(
42     Endpoint<PSelectTLSClientAuthCertParent> aEndpoint,
43     nsCString aHostName,
44     OriginAttributes aOriginAttributes,
45     int32_t aPort,
46     uint32_t aProviderFlags,
47     uint32_t aProviderTlsFlags,
48     ByteArray aServerCertBytes,
49     ByteArray[] aCANames,
50     uint64_t aBrowserId);
52   async InitIPCClientCerts(Endpoint<PIPCClientCertsParent> aEndpoint);
54   async InitWebSocketConnection(Endpoint<PWebSocketConnectionParent> aEndpoint,
55                                 uint32_t aListenerId);
58 } // namespace net
59 } // namespace mozilla