RTCDataChannelDeclarations.h (1363B)
1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ 2 /* vim: set ts=8 sts=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 5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 6 7 #ifndef RTCDataChannelDeclarations_h 8 #define RTCDataChannelDeclarations_h 9 10 // This defines only what's necessary to create RTCDataChannels, since this 11 // gets used with MOZ_INTERNAL_API not set for media/webrtc/signaling/testing 12 13 #include "mozilla/dom/Nullable.h" 14 #include "nsCOMPtr.h" 15 #include "nsStringFwd.h" 16 17 class nsPIDOMWindowInner; 18 19 namespace mozilla { 20 class DataChannel; 21 22 namespace dom { 23 class RTCDataChannel; 24 25 nsresult NS_NewDOMDataChannel(already_AddRefed<DataChannel>&& aDataChannel, 26 const nsACString& aLabel, 27 const nsAString& aOrigin, bool aOrdered, 28 Nullable<uint16_t> aMaxLifeTime, 29 Nullable<uint16_t> aMaxRetransmits, 30 const nsACString& aProtocol, bool aNegotiated, 31 nsPIDOMWindowInner* aWindow, 32 RTCDataChannel** aDomDataChannel); 33 34 } // namespace dom 35 } // namespace mozilla 36 #endif // RTCDataChannelDeclarations_h