Return proper error if the nss layer encounters an error on the http

tunnel.
This commit is contained in:
wolfbeast 2019-03-22 20:11:09 +01:00 committed by Roy Tam
commit 0363b2d358
3 changed files with 30 additions and 26 deletions

View file

@ -93,10 +93,11 @@ class TLSFilterTransaction;
class NudgeTunnelCallback : public nsISupports
{
public:
virtual void OnTunnelNudged(TLSFilterTransaction *) = 0;
virtual nsresult OnTunnelNudged(TLSFilterTransaction *) = 0;
};
#define NS_DECL_NUDGETUNNELCALLBACK void OnTunnelNudged(TLSFilterTransaction *) override;
#define NS_DECL_NUDGETUNNELCALLBACK \
nsresult OnTunnelNudged(TLSFilterTransaction *) override;
class TLSFilterTransaction final
: public nsAHttpTransaction
@ -170,7 +171,7 @@ private:
nsresult mFilterReadCode;
bool mForce;
bool mReadSegmentBlocked;
nsresult mReadSegmentReturnValue;
uint32_t mNudgeCounter;
};