bug 378637 part 6 - implement nsAHttpTransaction::QueryHttpTransaction r=hurley

--HG--
extra : rebase_source : d2981bb9e47cf9a8f6d038a0c6db6a85f3170f97
This commit is contained in:
Patrick McManus 2014-04-15 17:40:23 -04:00
parent fce95461af
commit 9b59ad684a
2 changed files with 7 additions and 0 deletions

View File

@ -124,6 +124,11 @@ public:
// its IO functions all the time.
virtual bool IsNullTransaction() { return false; }
// If we used rtti this would be the result of doing
// dynamic_cast<nsHttpTransaction *>(this).. i.e. it can be nullptr for
// non nsHttpTransaction implementations of nsAHttpTransaction
virtual nsHttpTransaction *QueryHttpTransaction() { return nullptr; }
// return the load group connection information associated with the transaction
virtual nsILoadGroupConnectionInfo *LoadGroupConnectionInfo() { return nullptr; }

View File

@ -123,6 +123,8 @@ public:
void DispatchedAsBlocking();
void RemoveDispatchedAsBlocking();
nsHttpTransaction *QueryHttpTransaction() MOZ_OVERRIDE { return this; }
private:
nsresult Restart();
nsresult RestartInProgress();