/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ #ifndef RTCDataChannelDeclarations_h #define RTCDataChannelDeclarations_h // This defines only what's necessary to create RTCDataChannels, since this // gets used with MOZ_INTERNAL_API not set for media/webrtc/signaling/testing #include "mozilla/dom/Nullable.h" #include "nsCOMPtr.h" #include "nsStringFwd.h" class nsPIDOMWindowInner; namespace mozilla { class DataChannel; namespace dom { class RTCDataChannel; nsresult NS_NewDOMDataChannel(already_AddRefed&& aDataChannel, const nsACString& aLabel, const nsAString& aOrigin, bool aOrdered, Nullable aMaxLifeTime, Nullable aMaxRetransmits, const nsACString& aProtocol, bool aNegotiated, nsPIDOMWindowInner* aWindow, RTCDataChannel** aDomDataChannel); } // namespace dom } // namespace mozilla #endif // RTCDataChannelDeclarations_h