Line data Source code
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 file,
3 : * You can obtain one at http://mozilla.org/MPL/2.0/. */
4 :
5 : #ifndef nsWebRequestListener_h__
6 : #define nsWebRequestListener_h__
7 :
8 : #include "nsCOMPtr.h"
9 : #include "nsIWebRequestListener.h"
10 : #include "nsIRequestObserver.h"
11 : #include "nsIStreamListener.h"
12 : #include "nsITraceableChannel.h"
13 : #include "nsIThreadRetargetableStreamListener.h"
14 : #include "mozilla/Attributes.h"
15 :
16 : class nsWebRequestListener final : public nsIWebRequestListener
17 : , public nsIStreamListener
18 : , public nsIThreadRetargetableStreamListener
19 : {
20 : public:
21 : NS_DECL_ISUPPORTS
22 : NS_DECL_NSIWEBREQUESTLISTENER
23 : NS_DECL_NSIREQUESTOBSERVER
24 : NS_DECL_NSISTREAMLISTENER
25 : NS_DECL_NSITHREADRETARGETABLESTREAMLISTENER
26 :
27 0 : nsWebRequestListener() {}
28 :
29 : private:
30 0 : ~nsWebRequestListener() {}
31 : nsCOMPtr<nsIStreamListener> mOrigStreamListener;
32 : nsCOMPtr<nsIStreamListener> mTargetStreamListener;
33 : };
34 :
35 : #endif // nsWebRequestListener_h__
36 :
|