Bug 1858509 add thread-safety annotations around MediaSourceDemuxer::mMonitor r=alwu
[gecko.git] / ipc / glue / RandomAccessStreamParams.ipdlh
blob8bcf528af2ed411adb2331c8d39914277d901142
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
3  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
5 include IPCQuotaObject;
7 namespace mozilla {
8 namespace ipc {
10 // Use RandomAccessStreamParams in your ipdl to represent serialized
11 // nsIRandomAccessStreams. Then use SerializeRandomAccessStream from
12 // RandomAccessStreamUtils.h to perform the serialization.
13 struct FileRandomAccessStreamParams
15   FileDescriptor fileDescriptor;
16   int32_t behaviorFlags;
19 struct LimitingFileRandomAccessStreamParams
21   FileRandomAccessStreamParams fileRandomAccessStreamParams;
22   IPCQuotaObject quotaObject;
25 union RandomAccessStreamParams
27   FileRandomAccessStreamParams;
28   LimitingFileRandomAccessStreamParams;
31 } // namespace ipc
32 } // namespace mozilla