PStunAddrsRequest.ipdl (997B)
1 /* This Source Code Form is subject to the terms of the Mozilla Public 2 * License, v. 2.0. If a copy of the MPL was not distributed with this file, 3 * You can obtain one at http://mozilla.org/MPL/2.0/. */ 4 5 include protocol PNecko; 6 7 using mozilla::net::NrIceStunAddrArray from "mozilla/net/PStunAddrsParams.h"; 8 using mozilla::net::MaybeNsCString from "mozilla/net/PStunAddrsParams.h"; 9 10 include "mozilla/net/NrIceStunAddrMessageUtils.h"; 11 12 namespace mozilla { 13 namespace net { 14 15 [ManualDealloc, ChildImpl=virtual, ParentImpl=virtual] 16 async protocol PStunAddrsRequest 17 { 18 manager PNecko; 19 20 parent: 21 async GetStunAddrs(); 22 23 async RegisterMDNSHostname(nsCString hostname, nsCString address); 24 async QueryMDNSHostname(nsCString hostname); 25 async UnregisterMDNSHostname(nsCString hostname); 26 27 async __delete__(); 28 29 child: 30 async OnMDNSQueryComplete(nsCString hostname, MaybeNsCString address); 31 async OnStunAddrsAvailable(NrIceStunAddrArray iceStunAddrs); 32 }; 33 34 } // namespace net 35 } // namespace mozilla