Back to index

lightning-sunbird  0.9+nobinonly
Defines | Functions | Variables
nsJARProtocolHandler.cpp File Reference
#include "nsAutoPtr.h"
#include "nsJARProtocolHandler.h"
#include "nsIIOService.h"
#include "nsCRT.h"
#include "nsIComponentManager.h"
#include "nsIServiceManager.h"
#include "nsJARURI.h"
#include "nsIURL.h"
#include "nsJARChannel.h"
#include "nsXPIDLString.h"
#include "nsString.h"
#include "nsNetCID.h"
#include "nsIMIMEService.h"
#include "nsMimeTypes.h"

Go to the source code of this file.

Defines

#define NS_JAR_CACHE_SIZE   32

Functions

static NS_DEFINE_CID (kZipReaderCacheCID, NS_ZIPREADERCACHE_CID)
 NS_IMPL_THREADSAFE_ISUPPORTS3 (nsJARProtocolHandler, nsIJARProtocolHandler, nsIProtocolHandler, nsISupportsWeakReference) NS_METHOD nsJARProtocolHandler

Variables

nsJARProtocolHandlergJarHandler = nsnull

Define Documentation

Definition at line 56 of file nsJARProtocolHandler.cpp.


Function Documentation

static NS_DEFINE_CID ( kZipReaderCacheCID  ,
NS_ZIPREADERCACHE_CID   
) [static]

Definition at line 93 of file nsJARProtocolHandler.cpp.

{
    if (aOuter)
        return NS_ERROR_NO_AGGREGATION;

    nsJARProtocolHandler* ph = new nsJARProtocolHandler();
    if (ph == nsnull)
        return NS_ERROR_OUT_OF_MEMORY;
    NS_ADDREF(ph);
    nsresult rv = ph->Init();
    if (NS_SUCCEEDED(rv)) {
        rv = ph->QueryInterface(aIID, aResult);
    }
    NS_RELEASE(ph);
    return rv;
}

Here is the call graph for this function:


Variable Documentation

Definition at line 60 of file nsJARProtocolHandler.cpp.