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 nsStreamListenerTee_h__ michael@0: #define nsStreamListenerTee_h__ michael@0: michael@0: #include "nsIStreamListenerTee.h" michael@0: #include "nsIThreadRetargetableStreamListener.h" michael@0: #include "nsIInputStreamTee.h" michael@0: #include "nsIOutputStream.h" michael@0: #include "nsCOMPtr.h" michael@0: #include "nsIEventTarget.h" michael@0: michael@0: class nsStreamListenerTee : public nsIStreamListenerTee michael@0: , public nsIThreadRetargetableStreamListener michael@0: { michael@0: public: michael@0: NS_DECL_THREADSAFE_ISUPPORTS michael@0: NS_DECL_NSIREQUESTOBSERVER michael@0: NS_DECL_NSISTREAMLISTENER michael@0: NS_DECL_NSITHREADRETARGETABLESTREAMLISTENER michael@0: NS_DECL_NSISTREAMLISTENERTEE michael@0: michael@0: nsStreamListenerTee() { } michael@0: virtual ~nsStreamListenerTee() { } michael@0: michael@0: private: michael@0: nsCOMPtr mInputTee; michael@0: nsCOMPtr mSink; michael@0: nsCOMPtr mListener; michael@0: nsCOMPtr mObserver; michael@0: nsCOMPtr mEventTarget; michael@0: }; michael@0: michael@0: #endif