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
3 : * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
4 :
5 : #ifndef mozilla_net_StreamingProtocolControllerService_h
6 : #define mozilla_net_StreamingProtocolControllerService_h
7 :
8 : #include "mozilla/StaticPtr.h"
9 : #include "nsIStreamingProtocolService.h"
10 : #include "nsIStreamingProtocolController.h"
11 : #include "nsCOMPtr.h"
12 : #include "nsIChannel.h"
13 :
14 : namespace mozilla {
15 : namespace net {
16 :
17 : /**
18 : * This class implements a service to help to create streaming protocol controller.
19 : */
20 : class StreamingProtocolControllerService : public nsIStreamingProtocolControllerService
21 : {
22 : private:
23 0 : virtual ~StreamingProtocolControllerService() {};
24 :
25 : public:
26 : NS_DECL_ISUPPORTS
27 : NS_DECL_NSISTREAMINGPROTOCOLCONTROLLERSERVICE
28 :
29 0 : StreamingProtocolControllerService() {};
30 : static already_AddRefed<StreamingProtocolControllerService> GetInstance();
31 : };
32 :
33 : } // namespace net
34 : } // namespace mozilla
35 :
36 : #endif //mozilla_net_StreamingProtocolControllerService_h
|