PSocketProcessBackground.ipdl (1885B)
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/. */ 6 7 include protocol PVerifySSLServerCert; 8 include protocol PSelectTLSClientAuthCert; 9 include protocol PIPCClientCerts; 10 include protocol PWebSocketConnection; 11 12 include PSMIPCTypes; 13 14 using mozilla::OriginAttributes from "mozilla/ipc/BackgroundUtils.h"; 15 16 namespace mozilla { 17 namespace net { 18 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 27 { 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); 40 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); 51 52 async InitIPCClientCerts(Endpoint<PIPCClientCertsParent> aEndpoint); 53 54 async InitWebSocketConnection(Endpoint<PWebSocketConnectionParent> aEndpoint, 55 uint32_t aListenerId); 56 }; 57 58 } // namespace net 59 } // namespace mozilla