fix for bug 107289 sr=jband r=dougt a=asa

remove libjar dependency from xpcom
step 3: make libjar implement the new interface


git-svn-id: svn://10.0.0.236/trunk@118149 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
alecf%netscape.com
2002-04-04 22:28:17 +00:00
parent 14a29f77b9
commit 28f20a7e52
6 changed files with 239 additions and 1 deletions

View File

@@ -1,4 +1,4 @@
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* The contents of this file are subject to the Netscape Public
* License Version 1.1 (the "License"); you may not use this file
@@ -39,11 +39,20 @@
#include "nsJAR.h"
#include "nsIJARFactory.h"
#include "nsRecyclingAllocator.h"
#include "nsXPTZipLoader.h"
extern nsRecyclingAllocator *gZlibAllocator;
NS_GENERIC_FACTORY_CONSTRUCTOR(nsXPTZipLoader)
// The list of components we register
static const nsModuleComponentInfo components[] =
{
{ "XPT Zip Reader",
NS_XPTZIPREADER_CID,
NS_XPTLOADER_CONTRACTID_PREFIX "zip",
nsXPTZipLoaderConstructor
},
{ "Zip Reader",
NS_ZIPREADER_CID,
"@mozilla.org/libjar/zip-reader;1",