1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3  * License, v. 2.0. If a copy of the MPL was not distributed with this
4  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
5 
6 #ifndef nsNetModule_h
7 #define nsNetModule_h
8 
9 #include "nsID.h"
10 
11 class nsISupports;
12 
13 nsresult nsNetStartup();
14 void nsNetShutdown();
15 
16 nsresult CreateNewStreamConvServiceFactory(nsISupports* aOuter,
17                                            const nsIID& aIID, void** aResult);
18 nsresult CreateNewMultiMixedConvFactory(nsISupports* aOuter, const nsIID& aIID,
19                                         void** aResult);
20 nsresult CreateNewTXTToHTMLConvFactory(nsISupports* aOuter, const nsIID& aIID,
21                                        void** aResult);
22 nsresult CreateNewHTTPCompressConvFactory(nsISupports* aOuter,
23                                           const nsIID& aIID, void** aResult);
24 nsresult CreateNewUnknownDecoderFactory(nsISupports* aOuter, const nsIID& aIID,
25                                         void** aResult);
26 nsresult CreateNewBinaryDetectorFactory(nsISupports* aOuter, const nsIID& aIID,
27                                         void** aResult);
28 nsresult nsLoadGroupConstructor(nsISupports* aOuter, const nsIID& aIID,
29                                 void** aResult);
30 
31 extern nsresult net_NewIncrementalDownload(nsISupports*, const nsIID&, void**);
32 
33 namespace mozilla {
34 namespace net {
35 nsresult WebSocketChannelConstructor(nsISupports* aOuter, const nsIID& aIID,
36                                      void** aResult);
37 nsresult WebSocketSSLChannelConstructor(nsISupports* aOuter, const nsIID& aIID,
38                                         void** aResult);
39 }  // namespace net
40 }  // namespace mozilla
41 
42 #endif
43