PRUint32 contentLength,
PRInt32 contentLength,
NS_NewInputStreamChannel(nsIURI* uri,                         const char* contentType,                          PRUint32 contentLength,                         nsIInputStream* inStr,                         nsILoadGroup* group,                         nsIInterfaceRequestor* notificationCallbacks,                         nsLoadFlags loadAttributes,                         nsIURI* originalURI,                         PRUint32 bufferSegmentSize,                         PRUint32 bufferMaxSize,                         nsIChannel **result){    nsresult rv;    nsCOMPtr<nsIInputStreamChannel> channel;    static NS_DEFINE_CID(kInputStreamChannelCID, NS_INPUTSTREAMCHANNEL_CID);    rv = nsComponentManager::CreateInstance(kInputStreamChannelCID,                                            nsnull,                                             NS_GET_IID(nsIInputStreamChannel),                                            getter_AddRefs(channel));    if (NS_FAILED(rv)) return rv;    rv = channel->Init(uri, contentType, contentLength, inStr, group,                        notificationCallbacks, loadAttributes, originalURI,                       bufferSegmentSize, bufferMaxSize);    if (NS_FAILED(rv)) return rv;    *result = channel;    NS_ADDREF(*result);    return NS_OK;}