netwerk/base/src/RedirectChannelRegistrar.h

branch
TOR_BUG_9701
changeset 15
b8a032363ba2
equal deleted inserted replaced
-1:000000000000 0:e4ffa372b11d
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
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
4
5 #ifndef RedirectChannelRegistrar_h__
6 #define RedirectChannelRegistrar_h__
7
8 #include "nsIRedirectChannelRegistrar.h"
9
10 #include "nsIChannel.h"
11 #include "nsIParentChannel.h"
12 #include "nsInterfaceHashtable.h"
13 #include "mozilla/Attributes.h"
14
15 namespace mozilla {
16 namespace net {
17
18 class RedirectChannelRegistrar MOZ_FINAL : public nsIRedirectChannelRegistrar
19 {
20 NS_DECL_ISUPPORTS
21 NS_DECL_NSIREDIRECTCHANNELREGISTRAR
22
23 RedirectChannelRegistrar();
24
25 protected:
26 typedef nsInterfaceHashtable<nsUint32HashKey, nsIChannel>
27 ChannelHashtable;
28 typedef nsInterfaceHashtable<nsUint32HashKey, nsIParentChannel>
29 ParentChannelHashtable;
30
31 ChannelHashtable mRealChannels;
32 ParentChannelHashtable mParentChannels;
33 uint32_t mId;
34 };
35
36 }
37 }
38
39 #endif

mercurial