2012-05-21 11:12:37 +00: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 22:56:06 +00:00
|
|
|
|
|
|
|
#ifndef RedirectChannelRegistrar_h__
|
|
|
|
#define RedirectChannelRegistrar_h__
|
|
|
|
|
|
|
|
#include "nsIRedirectChannelRegistrar.h"
|
|
|
|
|
|
|
|
#include "nsIChannel.h"
|
|
|
|
#include "nsIParentChannel.h"
|
2013-09-02 08:41:57 +00:00
|
|
|
#include "nsInterfaceHashtable.h"
|
2012-06-06 03:18:25 +00:00
|
|
|
#include "mozilla/Attributes.h"
|
2010-11-23 22:56:06 +00:00
|
|
|
|
|
|
|
namespace mozilla {
|
|
|
|
namespace net {
|
|
|
|
|
2015-03-21 16:28:04 +00:00
|
|
|
class RedirectChannelRegistrar final : public nsIRedirectChannelRegistrar
|
2010-11-23 22:56:06 +00:00
|
|
|
{
|
|
|
|
NS_DECL_ISUPPORTS
|
|
|
|
NS_DECL_NSIREDIRECTCHANNELREGISTRAR
|
|
|
|
|
|
|
|
RedirectChannelRegistrar();
|
|
|
|
|
2014-06-24 16:36:44 +00:00
|
|
|
private:
|
|
|
|
~RedirectChannelRegistrar() {}
|
|
|
|
|
2010-11-23 22:56:06 +00:00
|
|
|
protected:
|
2013-09-02 08:41:57 +00:00
|
|
|
typedef nsInterfaceHashtable<nsUint32HashKey, nsIChannel>
|
2010-11-23 22:56:06 +00:00
|
|
|
ChannelHashtable;
|
2013-09-02 08:41:57 +00:00
|
|
|
typedef nsInterfaceHashtable<nsUint32HashKey, nsIParentChannel>
|
2010-11-23 22:56:06 +00:00
|
|
|
ParentChannelHashtable;
|
|
|
|
|
|
|
|
ChannelHashtable mRealChannels;
|
|
|
|
ParentChannelHashtable mParentChannels;
|
2012-08-22 15:56:38 +00:00
|
|
|
uint32_t mId;
|
2010-11-23 22:56:06 +00:00
|
|
|
};
|
|
|
|
|
2015-07-13 15:25:42 +00:00
|
|
|
} // namespace net
|
|
|
|
} // namespace mozilla
|
2010-11-23 22:56:06 +00:00
|
|
|
|
|
|
|
#endif
|