StreamingProtocolService.h 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637
  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/. */
  4. #ifndef mozilla_net_StreamingProtocolControllerService_h
  5. #define mozilla_net_StreamingProtocolControllerService_h
  6. #include "mozilla/StaticPtr.h"
  7. #include "nsIStreamingProtocolService.h"
  8. #include "nsIStreamingProtocolController.h"
  9. #include "nsCOMPtr.h"
  10. #include "nsIChannel.h"
  11. namespace mozilla {
  12. namespace net {
  13. /**
  14. * This class implements a service to help to create streaming protocol controller.
  15. */
  16. class StreamingProtocolControllerService : public nsIStreamingProtocolControllerService
  17. {
  18. private:
  19. virtual ~StreamingProtocolControllerService() {};
  20. public:
  21. NS_DECL_ISUPPORTS
  22. NS_DECL_NSISTREAMINGPROTOCOLCONTROLLERSERVICE
  23. StreamingProtocolControllerService() {};
  24. static already_AddRefed<StreamingProtocolControllerService> GetInstance();
  25. };
  26. } // namespace net
  27. } // namespace mozilla
  28. #endif //mozilla_net_StreamingProtocolControllerService_h