2012-10-03 16:51:47 -07:00
|
|
|
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
|
|
/* vim: set sw=2 ts=8 et tw=80 : */
|
|
|
|
/* 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/. */
|
|
|
|
|
2013-05-20 00:10:59 -07:00
|
|
|
#ifndef nsDOMDataChannelDeclarations_h
|
|
|
|
#define nsDOMDataChannelDeclarations_h
|
2012-10-03 16:51:47 -07:00
|
|
|
|
|
|
|
// This defines only what's necessary to create nsDOMDataChannels, since this
|
|
|
|
// gets used with MOZ_INTERNAL_API not set for media/webrtc/signaling/testing
|
|
|
|
|
2012-11-02 12:28:13 -07:00
|
|
|
#include "nsCOMPtr.h"
|
2012-10-03 16:51:47 -07:00
|
|
|
#include "nsIDOMDataChannel.h"
|
|
|
|
|
|
|
|
namespace mozilla {
|
|
|
|
class DataChannel;
|
|
|
|
}
|
|
|
|
|
|
|
|
class nsPIDOMWindow;
|
|
|
|
|
|
|
|
nsresult
|
2014-03-15 12:00:17 -07:00
|
|
|
NS_NewDOMDataChannel(already_AddRefed<mozilla::DataChannel>&& dataChannel,
|
2012-10-03 16:51:47 -07:00
|
|
|
nsPIDOMWindow* aWindow,
|
|
|
|
nsIDOMDataChannel** domDataChannel);
|
|
|
|
|
|
|
|
// Tell DataChannel it's ok to deliver open and message events
|
|
|
|
void NS_DataChannelAppReady(nsIDOMDataChannel* domDataChannel);
|
|
|
|
|
2013-05-20 00:10:59 -07:00
|
|
|
#endif // nsDOMDataChannelDeclarations_h
|