Back to index

lightning-sunbird  0.9+nobinonly
Functions | Variables
nsJARFactory.cpp File Reference
#include <string.h>
#include "nscore.h"
#include "pratom.h"
#include "prmem.h"
#include "prio.h"
#include "plstr.h"
#include "prlog.h"
#include "nsIComponentManager.h"
#include "nsIServiceManager.h"
#include "nsCOMPtr.h"
#include "nsIModule.h"
#include "nsIGenericFactory.h"
#include "nsJAR.h"
#include "nsIJARFactory.h"
#include "nsRecyclingAllocator.h"
#include "nsXPTZipLoader.h"
#include "nsJARProtocolHandler.h"
#include "nsJARURI.h"

Go to the source code of this file.

Functions

static void PR_CALLBACK nsJarShutdown (nsIModule *module)

Variables

nsRecyclingAllocator * gZlibAllocator
static const nsModuleComponentInfo components []

Function Documentation

static void PR_CALLBACK nsJarShutdown ( nsIModule module) [static]

Definition at line 100 of file nsJARFactory.cpp.

{
    // Release cached buffers from zlib allocator
    delete gZlibAllocator;
}

Variable Documentation

Initial value:
 
{
    { "XPT Zip Reader",
      NS_XPTZIPREADER_CID,
      NS_XPTLOADER_CONTRACTID_PREFIX "zip",
      nsXPTZipLoaderConstructor
    },
    { "Zip Reader", 
       NS_ZIPREADER_CID,
      "@mozilla.org/libjar/zip-reader;1", 
      nsJARConstructor
    },
    { "Zip Reader Cache", 
       NS_ZIPREADERCACHE_CID,
      "@mozilla.org/libjar/zip-reader-cache;1", 
      nsZipReaderCacheConstructor
    },
    { NS_JARPROTOCOLHANDLER_CLASSNAME,
      NS_JARPROTOCOLHANDLER_CID,
      NS_NETWORK_PROTOCOL_CONTRACTID_PREFIX "jar", 
      nsJARProtocolHandlerConstructor
    },
    { NS_JARURI_CLASSNAME, 
      NS_JARURI_CID,
      nsnull,
      nsJARURIConstructor
    }
}

Definition at line 70 of file nsJARFactory.cpp.

nsRecyclingAllocator* gZlibAllocator

Definition at line 73 of file nsZipArchive.cpp.