From 6b4d563f98406031b626e83e202c8def2e3c942f Mon Sep 17 00:00:00 2001 From: "darin%netscape.com" Date: Sat, 3 Mar 2001 02:11:19 +0000 Subject: [PATCH] Bug 70707. Added CID/ContractID for nsStorageTransport. --- netwerk/build/nsNetCID.h | 14 ++++++++++++++ netwerk/build/nsNetModule.cpp | 10 ++++++++++ 2 files changed, 24 insertions(+) diff --git a/netwerk/build/nsNetCID.h b/netwerk/build/nsNetCID.h index 11780bad49ee..fb6796b00a11 100644 --- a/netwerk/build/nsNetCID.h +++ b/netwerk/build/nsNetCID.h @@ -114,5 +114,19 @@ {0x8c, 0xd9, 0x00, 0x60, 0xb0, 0xfc, 0x14, 0xa3} \ } +// +// nsStorageTransport +// +#define NS_STORAGETRANSPORT_CLASSNAME \ + "Storage Transport" +#define NS_STORAGETRANSPORT_CONTRACTID \ + "@mozilla.org/network/storage-transport;1" +#define NS_STORAGETRANSPORT_CID \ +{ /* 5e955cdb-1334-4b8f-86b5-3b0f4d54b9d2 */ \ + 0x5e955cdb, \ + 0x1334, \ + 0x4b8f, \ + {0x86, 0xb5, 0x3b, 0x0f, 0x4d, 0x54, 0xb9, 0xd2} \ +} #endif /* !nsNetCID_h__ */ diff --git a/netwerk/build/nsNetModule.cpp b/netwerk/build/nsNetModule.cpp index 6df0c8ff0893..dc19849100fe 100644 --- a/netwerk/build/nsNetModule.cpp +++ b/netwerk/build/nsNetModule.cpp @@ -94,6 +94,12 @@ NS_GENERIC_FACTORY_CONSTRUCTOR(nsSimpleStreamProvider) /////////////////////////////////////////////////////////////////////////////// +#include "nsStorageTransport.h" + +NS_GENERIC_FACTORY_CONSTRUCTOR(nsStorageTransport) + +/////////////////////////////////////////////////////////////////////////////// + #include "nsIHTTPProtocolHandler.h" #include "nsHTTPHandler.h" #include "nsHTTPSHandler.h" @@ -444,6 +450,10 @@ static nsModuleComponentInfo gNetModuleInfo[] = { NS_ASYNCSTREAMLISTENER_CID, "@mozilla.org/network/async-stream-listener;1", nsAsyncStreamListener::Create }, + { NS_STORAGETRANSPORT_CLASSNAME, + NS_STORAGETRANSPORT_CID, + NS_STORAGETRANSPORT_CONTRACTID, + nsStorageTransportConstructor }, /* { "Sync Stream Listener", NS_SYNCSTREAMLISTENER_CID,