size != PRUint32(-1)) LOG(("\tSize: %d\n", size));
LL_NE(size, LL_MaxUint())) LOG(("\tSize: %llu\n", size));
InputTestConsumer::OnStartRequest(nsIRequest *request, nsISupports* context){  LOG(("InputTestConsumer::OnStartRequest\n"));  URLLoadInfo* info = (URLLoadInfo*)context;  if (info)    info->mConnectTime = PR_Now() - info->mConnectTime;  if (gVerbose)    LOG(("\nStarted loading: %s\n", info ? info->Name() : "UNKNOWN URL"));  nsCAutoString value;  nsCOMPtr<nsIChannel> channel = do_QueryInterface(request);  if (channel) {    nsresult status;    channel->GetStatus(&status);    LOG(("Channel Status: %08x\n", status));    if (NS_SUCCEEDED(status)) {      LOG(("Channel Info:\n"));      channel->GetName(value);      LOG(("\tName: %s\n", value.get()));      channel->GetContentType(value);      LOG(("\tContent-Type: %s\n", value.get()));      channel->GetContentCharset(value);      LOG(("\tContent-Charset: %s\n", value.get()));      PRInt32 length = -1;      if (NS_SUCCEEDED(channel->GetContentLength(&length)))        LOG(("\tContent-Length: %d\n", length));      else        LOG(("\tContent-Length: Unknown\n"));    }    nsCOMPtr<nsISupports> owner;    channel->GetOwner(getter_AddRefs(owner));    LOG(("\tChannel Owner: %x\n", owner.get()));  }  nsCOMPtr<nsIHttpChannelInternal> httpChannelInt(do_QueryInterface(request));  if (httpChannelInt) {      PRUint32 majorVer, minorVer;      nsresult rv = httpChannelInt->GetResponseVersion(&majorVer, &minorVer);      if (NS_SUCCEEDED(rv))          LOG(("HTTP Response version: %u.%u\n", majorVer, minorVer));  }  nsCOMPtr<nsIHttpChannel> httpChannel(do_QueryInterface(request));  if (httpChannel) {    HeaderVisitor *visitor = new HeaderVisitor();    if (!visitor)      return NS_ERROR_OUT_OF_MEMORY;    NS_ADDREF(visitor);    LOG(("HTTP request headers:\n"));    httpChannel->VisitRequestHeaders(visitor);    LOG(("HTTP response headers:\n"));    httpChannel->VisitResponseHeaders(visitor);    NS_RELEASE(visitor);  }  nsCOMPtr<nsIResumableChannel> resChannel = do_QueryInterface(request);  if (resChannel) {      LOG(("Resumable entity identification:\n"));      nsCOMPtr<nsIResumableEntityID> entityID;      nsresult rv = resChannel->GetEntityID(getter_AddRefs(entityID));      if (NS_SUCCEEDED(rv) && entityID) {          PRUint32 size;          if (NS_SUCCEEDED(entityID->GetSize(&size)) &&              size != PRUint32(-1))              LOG(("\tSize: %d\n", size));          else              LOG(("\tSize: Unknown\n"));          nsCAutoString lastModified;          if (NS_SUCCEEDED(entityID->GetLastModified(lastModified)) &&              !lastModified.IsEmpty())              LOG(("\tLast Modified: %s\n", lastModified.get()));          else              LOG(("\tLast Modified: Unknown\n"));          nsCAutoString etag;          if (NS_SUCCEEDED(entityID->GetEntityTag(etag)) &&                !etag.IsEmpty())              LOG(("\tETag: %s\n", etag.get()));          else              LOG(("\tEtag: Unknown\n"));      }  }  return NS_OK;}