nsINetService *service;  rv = nsServiceManager::GetService(kNetServiceCID, kINetServiceIID, (nsISupports **)&inet);
rv = nsServiceManager::GetService(kNetServiceCID, kINetServiceIID, (nsISupports **)&inet);
nsIInputStream* URLImpl::Open(PRInt32* aErrorCode){  nsresult rv;  nsIInputStream* in = nsnull;  nsINetService *inet = nsnull;  // XXX: Rewrite the resource: URL into a file: URL  if (PL_strcmp(mProtocol, "resource") == 0) {    char* fileName;    fileName = mangleResourceIntoFileURL(mFile);    Set(fileName);    PR_Free(fileName);  }     nsINetService *service;    rv = nsServiceManager::GetService(kNetServiceCID,                                          kINetServiceIID,                                          (nsISupports **)&inet);  if (NS_OK == rv) {    rv = inet->OpenBlockingStream(this, NULL, &in);  }  NS_IF_RELEASE(inet);  *aErrorCode = rv;  return in;}