michael@0: /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ michael@0: /* vim: set ts=8 sts=2 et sw=2 tw=80: */ michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #ifndef _channeldiverterparent_h_ michael@0: #define _channeldiverterparent_h_ michael@0: michael@0: #include "mozilla/net/PChannelDiverterParent.h" michael@0: michael@0: class nsIStreamListener; michael@0: michael@0: namespace mozilla { michael@0: namespace net { michael@0: michael@0: class ChannelDiverterArgs; michael@0: class ADivertableParentChannel; michael@0: michael@0: class ChannelDiverterParent : michael@0: public PChannelDiverterParent michael@0: { michael@0: public: michael@0: ChannelDiverterParent(); michael@0: virtual ~ChannelDiverterParent(); michael@0: michael@0: bool Init(const ChannelDiverterArgs& aChannel); michael@0: michael@0: void DivertTo(nsIStreamListener* newListener); michael@0: private: michael@0: nsRefPtr mDivertableChannelParent; michael@0: }; michael@0: michael@0: } // namespace net michael@0: } // namespace mozilla michael@0: michael@0: #endif /* _channeldiverterparent_h_ */