Bug 1607634 - Part 4b: Changes for not-nullable actor types being wrapped in NotNull, r=ipc-reviewers,necko-reviewers,mccr8

These are the code changes required by the IPDL changes in part 4a.

Differential Revision: https://phabricator.services.mozilla.com/D168887
This commit is contained in:
Nika Layzell
2023-03-14 19:31:40 +00:00
parent 1c7cbaa625
commit 43fc8fd043
33 changed files with 109 additions and 99 deletions

View File

@@ -123,14 +123,13 @@ nsresult HttpTransactionParent::Init(
Maybe<H2PushedStreamArg> pushedStreamArg;
if (aTransWithPushedStream && aPushedStreamId) {
MOZ_ASSERT(aTransWithPushedStream->AsHttpTransactionParent());
pushedStreamArg.emplace();
pushedStreamArg.ref().transWithPushedStream() =
aTransWithPushedStream->AsHttpTransactionParent();
pushedStreamArg.ref().pushedStreamId() = aPushedStreamId;
pushedStreamArg.emplace(
WrapNotNull(aTransWithPushedStream->AsHttpTransactionParent()),
aPushedStreamId);
}
nsCOMPtr<nsIThrottledInputChannel> throttled = do_QueryInterface(mEventsink);
Maybe<PInputChannelThrottleQueueParent*> throttleQueue;
Maybe<NotNull<PInputChannelThrottleQueueParent*>> throttleQueue;
if (throttled) {
nsCOMPtr<nsIInputChannelThrottleQueue> queue;
nsresult rv = throttled->GetThrottleQueue(getter_AddRefs(queue));
@@ -140,7 +139,7 @@ nsresult HttpTransactionParent::Init(
queue.get()));
RefPtr<InputChannelThrottleQueueParent> tqParent = do_QueryObject(queue);
MOZ_ASSERT(tqParent);
throttleQueue.emplace(tqParent.get());
throttleQueue.emplace(WrapNotNull(tqParent.get()));
}
}