2012-05-21 04:12:37 -07:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
2010-11-23 14:56:06 -08:00
|
|
|
|
|
|
|
#ifndef RedirectChannelRegistrar_h__
|
|
|
|
#define RedirectChannelRegistrar_h__
|
|
|
|
|
|
|
|
#include "nsIRedirectChannelRegistrar.h"
|
|
|
|
|
|
|
|
#include "nsIChannel.h"
|
|
|
|
#include "nsIParentChannel.h"
|
2013-09-02 01:41:57 -07:00
|
|
|
#include "nsInterfaceHashtable.h"
|
2012-06-05 20:18:25 -07:00
|
|
|
#include "mozilla/Attributes.h"
|
2010-11-23 14:56:06 -08:00
|
|
|
|
|
|
|
namespace mozilla {
|
|
|
|
namespace net {
|
|
|
|
|
2015-03-21 09:28:04 -07:00
|
|
|
class RedirectChannelRegistrar final : public nsIRedirectChannelRegistrar
|
2010-11-23 14:56:06 -08:00
|
|
|
{
|
|
|
|
NS_DECL_ISUPPORTS
|
|
|
|
NS_DECL_NSIREDIRECTCHANNELREGISTRAR
|
|
|
|
|
|
|
|
RedirectChannelRegistrar();
|
|
|
|
|
2014-06-24 09:36:44 -07:00
|
|
|
private:
|
|
|
|
~RedirectChannelRegistrar() {}
|
|
|
|
|
2010-11-23 14:56:06 -08:00
|
|
|
protected:
|
2013-09-02 01:41:57 -07:00
|
|
|
typedef nsInterfaceHashtable<nsUint32HashKey, nsIChannel>
|
2010-11-23 14:56:06 -08:00
|
|
|
ChannelHashtable;
|
2013-09-02 01:41:57 -07:00
|
|
|
typedef nsInterfaceHashtable<nsUint32HashKey, nsIParentChannel>
|
2010-11-23 14:56:06 -08:00
|
|
|
ParentChannelHashtable;
|
|
|
|
|
|
|
|
ChannelHashtable mRealChannels;
|
|
|
|
ParentChannelHashtable mParentChannels;
|
2012-08-22 08:56:38 -07:00
|
|
|
uint32_t mId;
|
2010-11-23 14:56:06 -08:00
|
|
|
};
|
|
|
|
|
2015-07-13 08:25:42 -07:00
|
|
|
} // namespace net
|
|
|
|
} // namespace mozilla
|
2010-11-23 14:56:06 -08:00
|
|
|
|
|
|
|
#endif
|