netwerk/base/src/RedirectChannelRegistrar.h

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

     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

mercurial