dom/media/bridge/MediaModule.cpp

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

michael@0 1 /* This Source Code Form is subject to the terms of the Mozilla Public
michael@0 2 * License, v. 2.0. If a copy of the MPL was not distributed with this
michael@0 3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
michael@0 4
michael@0 5 #include "base/linked_ptr.h"
michael@0 6
michael@0 7 #include "mozilla/ModuleUtils.h"
michael@0 8 #include "nsIClassInfoImpl.h"
michael@0 9
michael@0 10 #ifdef MOZ_WEBRTC
michael@0 11
michael@0 12 #include "PeerConnectionImpl.h"
michael@0 13
michael@0 14 #define PEERCONNECTION_CID \
michael@0 15 {0xb93af7a1, 0x3411, 0x44a8, {0xbd, 0x0a, 0x8a, 0xf3, 0xdd, 0xe4, 0xd8, 0xd8}}
michael@0 16
michael@0 17 #define PEERCONNECTION_CONTRACTID "@mozilla.org/peerconnection;1"
michael@0 18
michael@0 19 #include "stun_udp_socket_filter.h"
michael@0 20
michael@0 21 NS_DEFINE_NAMED_CID(NS_STUN_UDP_SOCKET_FILTER_HANDLER_CID)
michael@0 22
michael@0 23 NS_GENERIC_FACTORY_CONSTRUCTOR(nsStunUDPSocketFilterHandler)
michael@0 24
michael@0 25
michael@0 26 namespace sipcc
michael@0 27 {
michael@0 28 // Factory defined in sipcc::, defines sipcc::PeerConnectionImplConstructor
michael@0 29 NS_GENERIC_FACTORY_CONSTRUCTOR(PeerConnectionImpl)
michael@0 30 }
michael@0 31
michael@0 32 // Defines kPEERCONNECTION_CID
michael@0 33 NS_DEFINE_NAMED_CID(PEERCONNECTION_CID);
michael@0 34
michael@0 35 static const mozilla::Module::CIDEntry kCIDs[] = {
michael@0 36 { &kPEERCONNECTION_CID, false, nullptr, sipcc::PeerConnectionImplConstructor },
michael@0 37 { &kNS_STUN_UDP_SOCKET_FILTER_HANDLER_CID, false, nullptr, nsStunUDPSocketFilterHandlerConstructor },
michael@0 38 { nullptr }
michael@0 39 };
michael@0 40
michael@0 41 static const mozilla::Module::ContractIDEntry kContracts[] = {
michael@0 42 { PEERCONNECTION_CONTRACTID, &kPEERCONNECTION_CID },
michael@0 43 { NS_STUN_UDP_SOCKET_FILTER_HANDLER_CONTRACTID, &kNS_STUN_UDP_SOCKET_FILTER_HANDLER_CID },
michael@0 44 { nullptr }
michael@0 45 };
michael@0 46
michael@0 47 static const mozilla::Module kModule = {
michael@0 48 mozilla::Module::kVersion,
michael@0 49 kCIDs,
michael@0 50 kContracts
michael@0 51 };
michael@0 52
michael@0 53 NSMODULE_DEFN(peerconnection) = &kModule;
michael@0 54
michael@0 55 #endif

mercurial