1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/netwerk/base/src/RedirectChannelRegistrar.h Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,39 @@ 1.4 +/* This Source Code Form is subject to the terms of the Mozilla Public 1.5 + * License, v. 2.0. If a copy of the MPL was not distributed with this 1.6 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 1.7 + 1.8 +#ifndef RedirectChannelRegistrar_h__ 1.9 +#define RedirectChannelRegistrar_h__ 1.10 + 1.11 +#include "nsIRedirectChannelRegistrar.h" 1.12 + 1.13 +#include "nsIChannel.h" 1.14 +#include "nsIParentChannel.h" 1.15 +#include "nsInterfaceHashtable.h" 1.16 +#include "mozilla/Attributes.h" 1.17 + 1.18 +namespace mozilla { 1.19 +namespace net { 1.20 + 1.21 +class RedirectChannelRegistrar MOZ_FINAL : public nsIRedirectChannelRegistrar 1.22 +{ 1.23 + NS_DECL_ISUPPORTS 1.24 + NS_DECL_NSIREDIRECTCHANNELREGISTRAR 1.25 + 1.26 + RedirectChannelRegistrar(); 1.27 + 1.28 +protected: 1.29 + typedef nsInterfaceHashtable<nsUint32HashKey, nsIChannel> 1.30 + ChannelHashtable; 1.31 + typedef nsInterfaceHashtable<nsUint32HashKey, nsIParentChannel> 1.32 + ParentChannelHashtable; 1.33 + 1.34 + ChannelHashtable mRealChannels; 1.35 + ParentChannelHashtable mParentChannels; 1.36 + uint32_t mId; 1.37 +}; 1.38 + 1.39 +} 1.40 +} 1.41 + 1.42 +#endif