PWebrtcTCPSocket.ipdl (1127B)
1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ 2 /* vim: set sw=2 ts=8 et tw=80 ft=cpp : */ 3 4 /* This Source Code Form is subject to the terms of the Mozilla Public 5 * License, v. 2.0. If a copy of the MPL was not distributed with this 6 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 7 8 include protocol PNecko; 9 include protocol PSocketProcess; 10 11 include WebrtcProxyConfig; 12 13 using mozilla::dom::TabId from "mozilla/dom/ipc/IdType.h"; 14 15 namespace mozilla { 16 namespace net { 17 18 [ManualDealloc, ChildImpl=virtual, ParentImpl=virtual] 19 async protocol PWebrtcTCPSocket 20 { 21 manager PNecko or PSocketProcess; 22 23 parent: 24 async AsyncOpen(nsCString aHost, 25 int32_t aPort, 26 nsCString aLocalAddress, 27 int32_t aLocalPort, 28 bool aUseTls, 29 WebrtcProxyConfig? aProxyConfig); 30 async Write(uint8_t[] aWriteData); 31 async Close(); 32 33 child: 34 async OnClose(nsresult aReason); 35 async OnConnected(nsCString aProxyType); 36 async OnRead(uint8_t[] aReadData); 37 38 async __delete__(); 39 }; 40 41 } // namespace net 42 } // namespace mozilla