michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #include "nsIStreamTransportService.h" michael@0: #include "nsIEventTarget.h" michael@0: #include "nsIObserver.h" michael@0: #include "nsCOMPtr.h" michael@0: #include "mozilla/Attributes.h" michael@0: michael@0: class nsIThreadPool; michael@0: michael@0: class nsStreamTransportService MOZ_FINAL : public nsIStreamTransportService michael@0: , public nsIEventTarget michael@0: , public nsIObserver michael@0: { michael@0: public: michael@0: NS_DECL_THREADSAFE_ISUPPORTS michael@0: NS_DECL_NSISTREAMTRANSPORTSERVICE michael@0: NS_DECL_NSIEVENTTARGET michael@0: NS_DECL_NSIOBSERVER michael@0: michael@0: nsresult Init(); michael@0: michael@0: nsStreamTransportService() {} michael@0: michael@0: private: michael@0: ~nsStreamTransportService(); michael@0: michael@0: nsCOMPtr mPool; michael@0: };