IPCStream.ipdlh (679B)
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/. */ 4 5 include InputStreamParams; 6 include ProtocolTypes; 7 8 namespace mozilla { 9 namespace ipc { 10 11 // Use IPCStream in your ipdl to represent serialized nsIInputStreams. Then use 12 // SerializeIPCStream from IPCStreamUtils.h to perform the serialization. 13 // 14 // NOTE: If you don't need to handle nsIInputStream serialization failure, 15 // `nsIInputStream` may be used directly by IPDL protocols. 16 struct IPCStream 17 { 18 InputStreamParams stream; 19 }; 20 21 } // namespace ipc 22 } // namespace mozilla