Bug 1526591 - Remove devtools.inspector.shapesHighlighter.enabled pref. r=rcaliman
[gecko.git] / netwerk / base / nsStreamListenerTee.h
blobde9ed898dd311912a0bfd18dfd5bf6532320896b
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 nsStreamListenerTee_h__
6 #define nsStreamListenerTee_h__
8 #include "nsIStreamListenerTee.h"
9 #include "nsIThreadRetargetableStreamListener.h"
10 #include "nsIInputStreamTee.h"
11 #include "nsIOutputStream.h"
12 #include "nsCOMPtr.h"
13 #include "nsIEventTarget.h"
15 namespace mozilla {
16 namespace net {
18 class nsStreamListenerTee : public nsIStreamListenerTee,
19 public nsIThreadRetargetableStreamListener {
20 public:
21 NS_DECL_THREADSAFE_ISUPPORTS
22 NS_DECL_NSIREQUESTOBSERVER
23 NS_DECL_NSISTREAMLISTENER
24 NS_DECL_NSITHREADRETARGETABLESTREAMLISTENER
25 NS_DECL_NSISTREAMLISTENERTEE
27 nsStreamListenerTee() = default;
29 private:
30 virtual ~nsStreamListenerTee() = default;
32 nsCOMPtr<nsIInputStreamTee> mInputTee;
33 nsCOMPtr<nsIOutputStream> mSink;
34 nsCOMPtr<nsIStreamListener> mListener;
35 nsCOMPtr<nsIRequestObserver> mObserver;
36 nsCOMPtr<nsIEventTarget> mEventTarget;
39 } // namespace net
40 } // namespace mozilla
42 #endif