nsHttpHandler::InitiateTransaction(nsHttpTransaction *trans, nsHttpConnectionInfo *ci) { LOG(("nsHttpHandler::InitiateTransaction\n"));  NS_ENSURE_ARG_POINTER(trans); NS_ENSURE_ARG_POINTER(ci);  PR_Lock(mConnectionLock);  nsHttpConnection *conn = nsnull; nsresult rv;  GetConnection_Locked(ci, trans->Capabilities(), &conn); if (!conn) { rv = EnqueueTransaction_Locked(trans, ci); PR_Unlock(mConnectionLock);
nsresult InitiateTransaction(nsHttpTransaction *trans) { return mConnMgr->AddTransaction(trans);
nsHttpHandler::InitiateTransaction(nsHttpTransaction *trans,                                   nsHttpConnectionInfo *ci){    LOG(("nsHttpHandler::InitiateTransaction\n"));    NS_ENSURE_ARG_POINTER(trans);    NS_ENSURE_ARG_POINTER(ci);    PR_Lock(mConnectionLock);    nsHttpConnection *conn = nsnull;    nsresult rv;    GetConnection_Locked(ci, trans->Capabilities(), &conn);    if (!conn) {        rv = EnqueueTransaction_Locked(trans, ci);        PR_Unlock(mConnectionLock);    }    else {        rv = DispatchTransaction_Locked(trans, trans->Capabilities(), conn);        NS_RELEASE(conn);    }    return rv;}