2012-10-07 09:34:30 +04:00
|
|
|
/* 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/. */
|
|
|
|
|
|
|
|
#include "mozilla/ModuleUtils.h"
|
|
|
|
#include "nsIClassInfoImpl.h"
|
|
|
|
|
|
|
|
#ifdef MOZ_WEBRTC
|
|
|
|
|
|
|
|
#include "PeerConnectionImpl.h"
|
|
|
|
|
|
|
|
#define PEERCONNECTION_CID \
|
|
|
|
{0xb93af7a1, 0x3411, 0x44a8, {0xbd, 0x0a, 0x8a, 0xf3, 0xdd, 0xe4, 0xd8, 0xd8}}
|
|
|
|
|
|
|
|
#define PEERCONNECTION_CONTRACTID "@mozilla.org/peerconnection;1"
|
|
|
|
|
2013-11-29 20:15:26 +04:00
|
|
|
#include "stun_udp_socket_filter.h"
|
|
|
|
|
|
|
|
NS_DEFINE_NAMED_CID(NS_STUN_UDP_SOCKET_FILTER_HANDLER_CID)
|
|
|
|
|
|
|
|
NS_GENERIC_FACTORY_CONSTRUCTOR(nsStunUDPSocketFilterHandler)
|
|
|
|
|
|
|
|
|
2014-11-20 03:16:29 +03:00
|
|
|
namespace mozilla
|
2012-10-07 09:34:30 +04:00
|
|
|
{
|
2014-11-20 03:16:29 +03:00
|
|
|
// Factory defined in mozilla::, defines mozilla::PeerConnectionImplConstructor
|
2012-10-07 09:34:30 +04:00
|
|
|
NS_GENERIC_FACTORY_CONSTRUCTOR(PeerConnectionImpl)
|
|
|
|
}
|
|
|
|
|
|
|
|
// Defines kPEERCONNECTION_CID
|
|
|
|
NS_DEFINE_NAMED_CID(PEERCONNECTION_CID);
|
|
|
|
|
|
|
|
static const mozilla::Module::CIDEntry kCIDs[] = {
|
2014-11-20 03:16:29 +03:00
|
|
|
{ &kPEERCONNECTION_CID, false, nullptr, mozilla::PeerConnectionImplConstructor },
|
2013-11-29 20:15:26 +04:00
|
|
|
{ &kNS_STUN_UDP_SOCKET_FILTER_HANDLER_CID, false, nullptr, nsStunUDPSocketFilterHandlerConstructor },
|
2013-10-28 18:04:12 +04:00
|
|
|
{ nullptr }
|
2012-10-07 09:34:30 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
static const mozilla::Module::ContractIDEntry kContracts[] = {
|
|
|
|
{ PEERCONNECTION_CONTRACTID, &kPEERCONNECTION_CID },
|
2013-11-29 20:15:26 +04:00
|
|
|
{ NS_STUN_UDP_SOCKET_FILTER_HANDLER_CONTRACTID, &kNS_STUN_UDP_SOCKET_FILTER_HANDLER_CID },
|
2013-10-28 18:04:12 +04:00
|
|
|
{ nullptr }
|
2012-10-07 09:34:30 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
static const mozilla::Module kModule = {
|
|
|
|
mozilla::Module::kVersion,
|
|
|
|
kCIDs,
|
|
|
|
kContracts
|
|
|
|
};
|
|
|
|
|
|
|
|
NSMODULE_DEFN(peerconnection) = &kModule;
|
|
|
|
|
|
|
|
#endif
|