ipc/glue/InputStreamParams.ipdlh

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

michael@0 1 /* This Source Code Form is subject to the terms of the Mozilla Public
michael@0 2 * License, v. 2.0. If a copy of the MPL was not distributed with this
michael@0 3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
michael@0 4
michael@0 5
michael@0 6 using struct mozilla::void_t from "ipc/IPCMessageUtils.h";
michael@0 7 include protocol PBlob;
michael@0 8 include protocol PFileDescriptorSet;
michael@0 9
michael@0 10 namespace mozilla {
michael@0 11 namespace ipc {
michael@0 12
michael@0 13 struct StringInputStreamParams
michael@0 14 {
michael@0 15 nsCString data;
michael@0 16 };
michael@0 17
michael@0 18 struct FileInputStreamParams
michael@0 19 {
michael@0 20 uint32_t fileDescriptorIndex;
michael@0 21 int32_t behaviorFlags;
michael@0 22 int32_t ioFlags;
michael@0 23 };
michael@0 24
michael@0 25 struct PartialFileInputStreamParams
michael@0 26 {
michael@0 27 FileInputStreamParams fileStreamParams;
michael@0 28 uint64_t begin;
michael@0 29 uint64_t length;
michael@0 30 };
michael@0 31
michael@0 32 struct MultiplexInputStreamParams
michael@0 33 {
michael@0 34 InputStreamParams[] streams;
michael@0 35 uint32_t currentStream;
michael@0 36 nsresult status;
michael@0 37 bool startedReadingCurrent;
michael@0 38 };
michael@0 39
michael@0 40 struct RemoteInputStreamParams
michael@0 41 {
michael@0 42 PBlob remoteBlob;
michael@0 43 };
michael@0 44
michael@0 45 union InputStreamParams
michael@0 46 {
michael@0 47 StringInputStreamParams;
michael@0 48 FileInputStreamParams;
michael@0 49 PartialFileInputStreamParams;
michael@0 50 BufferedInputStreamParams;
michael@0 51 MIMEInputStreamParams;
michael@0 52 MultiplexInputStreamParams;
michael@0 53 RemoteInputStreamParams;
michael@0 54 };
michael@0 55
michael@0 56 union OptionalInputStreamParams
michael@0 57 {
michael@0 58 void_t;
michael@0 59 InputStreamParams;
michael@0 60 };
michael@0 61
michael@0 62 struct BufferedInputStreamParams
michael@0 63 {
michael@0 64 OptionalInputStreamParams optionalStream;
michael@0 65 uint32_t bufferSize;
michael@0 66 };
michael@0 67
michael@0 68 struct MIMEInputStreamParams
michael@0 69 {
michael@0 70 OptionalInputStreamParams optionalStream;
michael@0 71 nsCString headers;
michael@0 72 nsCString contentLength;
michael@0 73 bool startedReading;
michael@0 74 bool addContentLength;
michael@0 75 };
michael@0 76
michael@0 77 union OptionalFileDescriptorSet
michael@0 78 {
michael@0 79 PFileDescriptorSet;
michael@0 80 void_t;
michael@0 81 };
michael@0 82
michael@0 83 } // namespace ipc
michael@0 84 } // namespace mozilla

mercurial