michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #ifndef RedirectChannelRegistrar_h__ michael@0: #define RedirectChannelRegistrar_h__ michael@0: michael@0: #include "nsIRedirectChannelRegistrar.h" michael@0: michael@0: #include "nsIChannel.h" michael@0: #include "nsIParentChannel.h" michael@0: #include "nsInterfaceHashtable.h" michael@0: #include "mozilla/Attributes.h" michael@0: michael@0: namespace mozilla { michael@0: namespace net { michael@0: michael@0: class RedirectChannelRegistrar MOZ_FINAL : public nsIRedirectChannelRegistrar michael@0: { michael@0: NS_DECL_ISUPPORTS michael@0: NS_DECL_NSIREDIRECTCHANNELREGISTRAR michael@0: michael@0: RedirectChannelRegistrar(); michael@0: michael@0: protected: michael@0: typedef nsInterfaceHashtable michael@0: ChannelHashtable; michael@0: typedef nsInterfaceHashtable michael@0: ParentChannelHashtable; michael@0: michael@0: ChannelHashtable mRealChannels; michael@0: ParentChannelHashtable mParentChannels; michael@0: uint32_t mId; michael@0: }; michael@0: michael@0: } michael@0: } michael@0: michael@0: #endif