NS_OpenURI(nsIChannel* *result, nsIURI* uri, nsILoadGroup *aGroup, nsIEventSinkGetter *eventSinkGetter = nsnull)
NS_OpenURI(nsIInputStream* *result, nsIURI* uri)
NS_OpenURI(nsIChannel* *result, nsIURI* uri, nsILoadGroup *aGroup,           nsIEventSinkGetter *eventSinkGetter = nsnull){    nsresult rv;    static NS_DEFINE_CID(kIOServiceCID, NS_IOSERVICE_CID);    NS_WITH_SERVICE(nsIIOService, serv, kIOServiceCID, &rv);    if (NS_FAILED(rv)) return rv;    nsIChannel* channel;    rv = serv->NewChannelFromURI("load", uri, aGroup, eventSinkGetter,                                  nsnull, &channel);    if (NS_FAILED(rv)) return rv;    *result = channel;    return rv;}