mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-08 00:38:39 +09:00
Implement a threadsafe & revised version of http2PushedStream.
This commit is contained in:
parent
71a6b780d9
commit
28e15ed590
9 changed files with 144 additions and 32 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue