Implement a threadsafe & revised version of http2PushedStream.

This re-applies the patch for this with added typename declaration.
This commit is contained in:
wolfbeast 2019-07-21 23:05:59 +02:00 committed by Roy Tam
commit 8346f7c082
9 changed files with 145 additions and 32 deletions

View file

@ -7828,7 +7828,7 @@ nsHttpChannel::AwaitingCacheCallbacks()
}
void
nsHttpChannel::SetPushedStream(Http2PushedStream *stream)
nsHttpChannel::SetPushedStream(Http2PushedStreamWrapper *stream)
{
MOZ_ASSERT(stream);
MOZ_ASSERT(!mPushedStream);
@ -7836,7 +7836,7 @@ nsHttpChannel::SetPushedStream(Http2PushedStream *stream)
}
nsresult
nsHttpChannel::OnPush(const nsACString &url, Http2PushedStream *pushedStream)
nsHttpChannel::OnPush(const nsACString &url, Http2PushedStreamWrapper *pushedStream)
{
MOZ_ASSERT(NS_IsMainThread());
LOG(("nsHttpChannel::OnPush [this=%p]\n", this));