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"
|
2020-03-16 03:58:34 +03:00
|
|
|
#include "nsIMultiPartChannel.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,
|
2020-03-16 03:58:34 +03:00
|
|
|
public nsIThreadRetargetableStreamListener,
|
|
|
|
public nsIMultiPartChannelListener {
|
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
|
2020-03-16 03:58:34 +03:00
|
|
|
NS_DECL_NSIMULTIPARTCHANNELLISTENER
|
2018-11-30 13:46:48 +03:00
|
|
|
|
2018-04-30 19:46:04 +03:00
|
|
|
nsStreamListenerTee() = default;
|
2018-11-30 13:46:48 +03:00
|
|
|
|
2001-03-07 15:54:45 +03:00
|
|
|
private:
|
2018-04-30 19:46:04 +03:00
|
|
|
virtual ~nsStreamListenerTee() = default;
|
2018-11-30 13:46:48 +03:00
|
|
|
|
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;
|
2020-03-16 03:58:34 +03:00
|
|
|
bool mIsMultiPart = false;
|
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
|