netwerk/base/src/RedirectChannelRegistrar.h

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

     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