Bug 1897589 - Simplify worker shutdown checks. r=jstutte,dom-worker-reviewers
[gecko.git] / ipc / glue / IPCStream.ipdlh
blobabf7ef7714468109777ce032771f2c9e614702ff
1 /* This Source Code Form is subject to the terms of the Mozilla Public
2  * License, v. 2.0. If a copy of the MPL was not distributed with this file,
3  * You can obtain one at http://mozilla.org/MPL/2.0/. */
5 include InputStreamParams;
6 include ProtocolTypes;
8 namespace mozilla {
9 namespace ipc {
11 // Use IPCStream in your ipdl to represent serialized nsIInputStreams. Then use
12 // SerializeIPCStream from IPCStreamUtils.h to perform the serialization.
14 // NOTE: If you don't need to handle nsIInputStream serialization failure,
15 // `nsIInputStream` may be used directly by IPDL protocols.
16 struct IPCStream
18   InputStreamParams stream;
21 } // namespace ipc
22 } // namespace mozilla