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 nsStreamTransportService_h__
6 #define nsStreamTransportService_h__
8 #include "nsIStreamTransportService.h"
9 #include "nsIEventTarget.h"
10 #include "nsIObserver.h"
12 #include "nsThreadUtils.h"
13 #include "mozilla/Attributes.h"
14 #include "mozilla/Mutex.h"
21 class nsStreamTransportService final
: public nsIStreamTransportService
,
22 public nsIEventTarget
,
25 NS_DECL_THREADSAFE_ISUPPORTS
26 NS_DECL_NSISTREAMTRANSPORTSERVICE
27 NS_DECL_NSIEVENTTARGET_FULL
32 nsStreamTransportService()
33 : mShutdownLock("nsStreamTransportService.mShutdownLock"),
37 ~nsStreamTransportService();
39 nsCOMPtr
<nsIThreadPool
> mPool
;
41 mozilla::Mutex mShutdownLock
;
46 } // namespace mozilla