Line data Source code
1 : /* This Source Code Form is subject to the terms of the Mozilla Public
2 : * License, v. 2.0. If a copy of the MPL was not distributed with this file,
3 : * You can obtain one at http://mozilla.org/MPL/2.0/. */
4 : #ifndef stun_socket_filter_h__
5 : #define stun_socket_filter_h__
6 :
7 : #include "nsISocketFilter.h"
8 :
9 : #define NS_STUN_UDP_SOCKET_FILTER_HANDLER_CID { 0x3e43ee93, 0x829e, 0x4ea6, \
10 : { 0xa3, 0x4e, 0x62, 0xd9, 0xe4, 0xc9, 0xf9, 0x93 } };
11 :
12 0 : class nsStunUDPSocketFilterHandler : public nsISocketFilterHandler {
13 : public:
14 : // Threadsafe because we create off-main-thread, but destroy on MainThread
15 : // via FreeFactoryEntries()
16 : NS_DECL_THREADSAFE_ISUPPORTS
17 : NS_DECL_NSISOCKETFILTERHANDLER
18 : private:
19 0 : virtual ~nsStunUDPSocketFilterHandler() {}
20 : };
21 :
22 : #define NS_STUN_TCP_SOCKET_FILTER_HANDLER_CID { 0x9fea635a, 0x2fc2, 0x4d08, \
23 : { 0x97, 0x21, 0xd2, 0x38, 0xd3, 0xf5, 0x2f, 0x92 } };
24 :
25 0 : class nsStunTCPSocketFilterHandler : public nsISocketFilterHandler {
26 : public:
27 : // Threadsafe because we create off-main-thread, but destroy on MainThread
28 : // via FreeFactoryEntries()
29 : NS_DECL_THREADSAFE_ISUPPORTS
30 : NS_DECL_NSISOCKETFILTERHANDLER
31 : private:
32 0 : virtual ~nsStunTCPSocketFilterHandler() {}
33 : };
34 :
35 :
36 : #endif // stun_socket_filter_h__
|