2012-05-21 15:12:37 +04: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/. */
|
2002-05-03 11:49:43 +04:00
|
|
|
|
2001-03-07 15:54:45 +03:00
|
|
|
#ifndef nsStreamListenerTee_h__
|
|
|
|
#define nsStreamListenerTee_h__
|
|
|
|
|
2002-05-03 11:49:43 +04:00
|
|
|
#include "nsIStreamListenerTee.h"
|
2013-07-09 05:45:25 +04:00
|
|
|
#include "nsIThreadRetargetableStreamListener.h"
|
2001-03-07 15:54:45 +03:00
|
|
|
#include "nsIInputStreamTee.h"
|
|
|
|
#include "nsIOutputStream.h"
|
|
|
|
#include "nsCOMPtr.h"
|
2010-02-23 21:13:18 +03:00
|
|
|
#include "nsIEventTarget.h"
|
2001-03-07 15:54:45 +03:00
|
|
|
|
2016-05-19 05:02:57 +03:00
|
|
|
namespace mozilla {
|
|
|
|
namespace net {
|
|
|
|
|
2001-03-07 15:54:45 +03:00
|
|
|
class nsStreamListenerTee : public nsIStreamListenerTee
|
2013-07-09 05:45:25 +04:00
|
|
|
, public nsIThreadRetargetableStreamListener
|
2001-03-07 15:54:45 +03:00
|
|
|
{
|
|
|
|
public:
|
2013-07-19 06:24:13 +04:00
|
|
|
NS_DECL_THREADSAFE_ISUPPORTS
|
2001-04-10 10:01:08 +04:00
|
|
|
NS_DECL_NSIREQUESTOBSERVER
|
2001-03-07 15:54:45 +03:00
|
|
|
NS_DECL_NSISTREAMLISTENER
|
2013-07-09 05:45:25 +04:00
|
|
|
NS_DECL_NSITHREADRETARGETABLESTREAMLISTENER
|
2001-03-07 15:54:45 +03:00
|
|
|
NS_DECL_NSISTREAMLISTENERTEE
|
|
|
|
|
2003-01-09 01:35:09 +03:00
|
|
|
nsStreamListenerTee() { }
|
2001-03-07 15:54:45 +03:00
|
|
|
|
|
|
|
private:
|
2014-06-24 20:36:44 +04:00
|
|
|
virtual ~nsStreamListenerTee() { }
|
|
|
|
|
2010-02-23 21:13:18 +03:00
|
|
|
nsCOMPtr<nsIInputStreamTee> mInputTee;
|
|
|
|
nsCOMPtr<nsIOutputStream> mSink;
|
|
|
|
nsCOMPtr<nsIStreamListener> mListener;
|
2009-11-18 19:02:28 +03:00
|
|
|
nsCOMPtr<nsIRequestObserver> mObserver;
|
2010-02-23 21:13:18 +03:00
|
|
|
nsCOMPtr<nsIEventTarget> mEventTarget;
|
2001-03-07 15:54:45 +03:00
|
|
|
};
|
|
|
|
|
2016-05-19 05:02:57 +03:00
|
|
|
} // namespace net
|
|
|
|
} // namespace mozilla
|
|
|
|
|
2001-03-07 15:54:45 +03:00
|
|
|
#endif
|