1999-09-30 05:53:31 +04:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
|
|
|
|
*
|
1999-11-06 06:40:37 +03:00
|
|
|
* The contents of this file are subject to the Netscape Public
|
|
|
|
* License Version 1.1 (the "License"); you may not use this file
|
|
|
|
* except in compliance with the License. You may obtain a copy of
|
|
|
|
* the License at http://www.mozilla.org/NPL/
|
1999-09-30 05:53:31 +04:00
|
|
|
*
|
1999-11-06 06:40:37 +03:00
|
|
|
* Software distributed under the License is distributed on an "AS
|
|
|
|
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
|
|
|
* implied. See the License for the specific language governing
|
|
|
|
* rights and limitations under the License.
|
1999-09-30 05:53:31 +04:00
|
|
|
*
|
1999-11-06 06:40:37 +03:00
|
|
|
* The Original Code is mozilla.org code.
|
|
|
|
*
|
|
|
|
* The Initial Developer of the Original Code is Netscape
|
1999-09-30 05:53:31 +04:00
|
|
|
* Communications Corporation. Portions created by Netscape are
|
1999-11-06 06:40:37 +03:00
|
|
|
* Copyright (C) 1998 Netscape Communications Corporation. All
|
|
|
|
* Rights Reserved.
|
|
|
|
*
|
|
|
|
* Contributor(s):
|
1999-09-30 05:53:31 +04:00
|
|
|
*/
|
|
|
|
#include "nsCOMPtr.h"
|
|
|
|
#include "nsIModule.h"
|
|
|
|
#include "nsIGenericFactory.h"
|
|
|
|
#include "nsIComponentManager.h"
|
|
|
|
#include "nsIServiceManager.h"
|
|
|
|
#include "nsIOService.h"
|
|
|
|
#include "nsNetModuleMgr.h"
|
|
|
|
#include "nsFileTransportService.h"
|
|
|
|
#include "nsSocketTransportService.h"
|
|
|
|
#include "nsSocketProviderService.h"
|
|
|
|
#include "nscore.h"
|
2000-02-03 06:44:22 +03:00
|
|
|
#include "nsStdURLParser.h"
|
|
|
|
#include "nsAuthURLParser.h"
|
|
|
|
#include "nsNoAuthURLParser.h"
|
1999-09-30 05:53:31 +04:00
|
|
|
#include "nsStdURL.h"
|
|
|
|
#include "nsSimpleURI.h"
|
|
|
|
#include "nsDnsService.h"
|
|
|
|
#include "nsLoadGroup.h"
|
|
|
|
#include "nsInputStreamChannel.h"
|
2000-02-03 02:04:47 +03:00
|
|
|
#include "nsStreamLoader.h"
|
1999-11-30 07:50:42 +03:00
|
|
|
#include "nsAsyncStreamListener.h"
|
|
|
|
#include "nsSyncStreamListener.h"
|
2000-01-25 00:28:28 +03:00
|
|
|
#include "nsFileStreams.h"
|
2000-02-04 10:31:43 +03:00
|
|
|
#include "nsBufferedStreams.h"
|
2000-02-16 00:58:59 +03:00
|
|
|
#include "nsProtocolProxyService.h"
|
1999-09-30 05:53:31 +04:00
|
|
|
|
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Module implementation for the net library
|
|
|
|
|
1999-11-12 12:07:26 +03:00
|
|
|
static nsModuleComponentInfo gNetModuleInfo[] = {
|
|
|
|
{ "I/O Service",
|
|
|
|
NS_IOSERVICE_CID,
|
|
|
|
"component://netscape/network/io-service",
|
|
|
|
nsIOService::Create },
|
|
|
|
{ "File Transport Service",
|
|
|
|
NS_FILETRANSPORTSERVICE_CID,
|
|
|
|
"component://netscape/network/file-transport-service",
|
|
|
|
nsFileTransportService::Create },
|
|
|
|
{ "Socket Transport Service",
|
|
|
|
NS_SOCKETTRANSPORTSERVICE_CID,
|
|
|
|
"component://netscape/network/socket-transport-service",
|
|
|
|
nsSocketTransportService::Create },
|
|
|
|
{ "Socket Provider Service",
|
|
|
|
NS_SOCKETPROVIDERSERVICE_CID,
|
|
|
|
"component://netscape/network/socket-provider-service",
|
|
|
|
nsSocketProviderService::Create },
|
|
|
|
{ "DNS Service",
|
|
|
|
NS_DNSSERVICE_CID,
|
|
|
|
"component://netscape/network/dns-service",
|
|
|
|
nsDNSService::Create },
|
|
|
|
{ "Standard URL Implementation",
|
|
|
|
NS_STANDARDURL_CID,
|
|
|
|
"component://netscape/network/standard-url",
|
|
|
|
nsStdURL::Create },
|
|
|
|
{ "Simple URI Implementation",
|
|
|
|
NS_SIMPLEURI_CID,
|
|
|
|
"component://netscape/network/simple-uri",
|
|
|
|
nsSimpleURI::Create },
|
|
|
|
{ "External Module Manager",
|
|
|
|
NS_NETMODULEMGR_CID,
|
|
|
|
"component://netscape/network/net-extern-mod",
|
|
|
|
nsNetModuleMgr::Create },
|
|
|
|
{ "Input Stream Channel",
|
|
|
|
NS_INPUTSTREAMCHANNEL_CID,
|
|
|
|
"component://netscape/network/input-stream-channel",
|
|
|
|
nsInputStreamChannel::Create },
|
|
|
|
{ "Unichar Stream Loader",
|
2000-02-03 02:04:47 +03:00
|
|
|
NS_STREAMLOADER_CID,
|
|
|
|
"component://netscape/network/stream-loader",
|
|
|
|
nsStreamLoader::Create },
|
1999-11-12 12:07:26 +03:00
|
|
|
{ "Async Stream Observer",
|
|
|
|
NS_ASYNCSTREAMOBSERVER_CID,
|
|
|
|
"component://netscape/network/async-stream-observer",
|
|
|
|
nsAsyncStreamObserver::Create },
|
|
|
|
{ "Async Stream Listener",
|
|
|
|
NS_ASYNCSTREAMLISTENER_CID,
|
|
|
|
"component://netscape/network/async-stream-listener",
|
|
|
|
nsAsyncStreamListener::Create },
|
|
|
|
{ "Sync Stream Listener",
|
|
|
|
NS_SYNCSTREAMLISTENER_CID,
|
|
|
|
"component://netscape/network/sync-stream-listener",
|
|
|
|
nsSyncStreamListener::Create },
|
|
|
|
{ "Load Group",
|
|
|
|
NS_LOADGROUP_CID,
|
|
|
|
"component://netscape/network/load-group",
|
2000-01-25 00:28:28 +03:00
|
|
|
nsLoadGroup::Create },
|
|
|
|
{ NS_FILEINPUTSTREAM_CLASSNAME,
|
|
|
|
NS_FILEINPUTSTREAM_CID,
|
|
|
|
NS_FILEINPUTSTREAM_PROGID,
|
|
|
|
nsFileInputStream::Create },
|
|
|
|
{ NS_FILEOUTPUTSTREAM_CLASSNAME,
|
|
|
|
NS_FILEOUTPUTSTREAM_CID,
|
|
|
|
NS_FILEOUTPUTSTREAM_PROGID,
|
2000-02-03 06:44:22 +03:00
|
|
|
nsFileOutputStream::Create },
|
|
|
|
{ "StdURLParser",
|
|
|
|
NS_STANDARDURLPARSER_CID,
|
|
|
|
"component://netscape/network/standard-urlparser",
|
|
|
|
nsStdURLParser::Create },
|
|
|
|
{ "AuthURLParser",
|
|
|
|
NS_AUTHORITYURLPARSER_CID,
|
|
|
|
"component://netscape/network/authority-urlparser",
|
|
|
|
nsAuthURLParser::Create },
|
|
|
|
{ "NoAuthURLParser",
|
|
|
|
NS_NOAUTHORITYURLPARSER_CID,
|
|
|
|
"component://netscape/network/no-authority-urlparser",
|
|
|
|
nsNoAuthURLParser::Create },
|
2000-02-04 10:31:43 +03:00
|
|
|
{ NS_BUFFEREDINPUTSTREAM_CLASSNAME,
|
|
|
|
NS_BUFFEREDINPUTSTREAM_CID,
|
|
|
|
NS_BUFFEREDINPUTSTREAM_PROGID,
|
|
|
|
nsBufferedInputStream::Create },
|
|
|
|
{ NS_BUFFEREDOUTPUTSTREAM_CLASSNAME,
|
|
|
|
NS_BUFFEREDOUTPUTSTREAM_CID,
|
|
|
|
NS_BUFFEREDOUTPUTSTREAM_PROGID,
|
2000-02-16 00:58:59 +03:00
|
|
|
nsBufferedOutputStream::Create },
|
|
|
|
{ "Protocol Proxy Service",
|
|
|
|
NS_PROTOCOLPROXYSERVICE_CID,
|
|
|
|
"component::/netscape/network/protocol-proxy-service",
|
|
|
|
nsProtocolProxyService::Create }
|
1999-09-30 05:53:31 +04:00
|
|
|
};
|
|
|
|
|
1999-11-12 12:07:26 +03:00
|
|
|
NS_IMPL_NSGETMODULE("net", gNetModuleInfo)
|