nsIWebTransportEventService.idl (1234B)
1 /* -*- Mode: IDL; 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/. */ 5 6 #include "nsISupports.idl" 7 8 [scriptable, uuid(5f34ad48-92ec-4684-ab08-76f6ead9008d)] 9 interface nsIWebTransportEventListener : nsISupports 10 { 11 [must_use] void webTransportSessionCreated(in uint64_t aHttpChannelId); 12 13 [must_use] void webTransportSessionClosed(in uint64_t aHttpChannelId, in unsigned short aCode, 14 in AString aReason); 15 16 // TODO: The other functions for this interface are still TBD. See Bug 1963028 17 }; 18 19 [scriptable, builtinclass, uuid(0907d7d4-351b-4513-a2d9-f6e6467d59ec)] 20 interface nsIWebTransportEventService : nsISupports 21 { 22 [must_use] void addListener(in unsigned long long aInnerWindowID, 23 in nsIWebTransportEventListener aListener); 24 25 [must_use] void removeListener(in unsigned long long aInnerWindowID, 26 in nsIWebTransportEventListener aListener); 27 28 [must_use] boolean hasListenerFor(in unsigned long long aInnerWindowID); 29 };