Thu, 15 Jan 2015 21:03:48 +0100
Integrate friendly tips from Tor colleagues to make (or not) 4.5 alpha 3;
This includes removal of overloaded (but unused) methods, and addition of
a overlooked call to DataStruct::SetData(nsISupports, uint32_t, bool.)
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/. */
5 #ifndef RedirectChannelRegistrar_h__
6 #define RedirectChannelRegistrar_h__
8 #include "nsIRedirectChannelRegistrar.h"
10 #include "nsIChannel.h"
11 #include "nsIParentChannel.h"
12 #include "nsInterfaceHashtable.h"
13 #include "mozilla/Attributes.h"
15 namespace mozilla {
16 namespace net {
18 class RedirectChannelRegistrar MOZ_FINAL : public nsIRedirectChannelRegistrar
19 {
20 NS_DECL_ISUPPORTS
21 NS_DECL_NSIREDIRECTCHANNELREGISTRAR
23 RedirectChannelRegistrar();
25 protected:
26 typedef nsInterfaceHashtable<nsUint32HashKey, nsIChannel>
27 ChannelHashtable;
28 typedef nsInterfaceHashtable<nsUint32HashKey, nsIParentChannel>
29 ParentChannelHashtable;
31 ChannelHashtable mRealChannels;
32 ParentChannelHashtable mParentChannels;
33 uint32_t mId;
34 };
36 }
37 }
39 #endif