michael@0: /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ michael@0: /* vim: set sw=2 ts=8 et tw=80 : */ michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #ifndef nsDOMDataChannelDeclarations_h michael@0: #define nsDOMDataChannelDeclarations_h michael@0: michael@0: // This defines only what's necessary to create nsDOMDataChannels, since this michael@0: // gets used with MOZ_INTERNAL_API not set for media/webrtc/signaling/testing michael@0: michael@0: #include "nsCOMPtr.h" michael@0: #include "nsIDOMDataChannel.h" michael@0: michael@0: namespace mozilla { michael@0: class DataChannel; michael@0: } michael@0: michael@0: class nsPIDOMWindow; michael@0: michael@0: nsresult michael@0: NS_NewDOMDataChannel(already_AddRefed&& dataChannel, michael@0: nsPIDOMWindow* aWindow, michael@0: nsIDOMDataChannel** domDataChannel); michael@0: michael@0: // Tell DataChannel it's ok to deliver open and message events michael@0: void NS_DataChannelAppReady(nsIDOMDataChannel* domDataChannel); michael@0: michael@0: #endif // nsDOMDataChannelDeclarations_h