Implement a threadsafe & revised version of http2PushedStream.

This commit is contained in:
wolfbeast 2019-07-18 17:52:46 +02:00 committed by Roy Tam
commit 28e15ed590
9 changed files with 144 additions and 32 deletions

View file

@ -123,6 +123,24 @@ private:
uint32_t mBufferedHTTP1Consumed;
};
class Http2PushedStreamWrapper : public nsISupports {
public:
NS_DECL_THREADSAFE_ISUPPORTS
bool DispatchRelease();
explicit Http2PushedStreamWrapper(Http2PushedStream* aPushStream);
nsCString& GetRequestString() { return mRequestString; }
Http2PushedStream* GetStream();
void OnPushFailed();
private:
virtual ~Http2PushedStreamWrapper();
nsCString mRequestString;
WeakPtr<Http2Stream> mStream;
};
} // namespace net
} // namespace mozilla