RandomAccessStreamParams.ipdlh (857B)
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/. */ 4 5 include IPCQuotaObject; 6 7 namespace mozilla { 8 namespace ipc { 9 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 14 { 15 FileDescriptor fileDescriptor; 16 int32_t behaviorFlags; 17 }; 18 19 struct LimitingFileRandomAccessStreamParams 20 { 21 FileRandomAccessStreamParams fileRandomAccessStreamParams; 22 IPCQuotaObject quotaObject; 23 }; 24 25 union RandomAccessStreamParams 26 { 27 FileRandomAccessStreamParams; 28 LimitingFileRandomAccessStreamParams; 29 }; 30 31 } // namespace ipc 32 } // namespace mozilla