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.

     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/. */
     6 using struct mozilla::void_t from "ipc/IPCMessageUtils.h";
     7 include protocol PBlob;
     8 include protocol PFileDescriptorSet;
    10 namespace mozilla {
    11 namespace ipc {
    13 struct StringInputStreamParams
    14 {
    15   nsCString data;
    16 };
    18 struct FileInputStreamParams
    19 {
    20   uint32_t fileDescriptorIndex;
    21   int32_t behaviorFlags;
    22   int32_t ioFlags;
    23 };
    25 struct PartialFileInputStreamParams
    26 {
    27   FileInputStreamParams fileStreamParams;
    28   uint64_t begin;
    29   uint64_t length;
    30 };
    32 struct MultiplexInputStreamParams
    33 {
    34   InputStreamParams[] streams;
    35   uint32_t currentStream;
    36   nsresult status;
    37   bool startedReadingCurrent;
    38 };
    40 struct RemoteInputStreamParams
    41 {
    42   PBlob remoteBlob;
    43 };
    45 union InputStreamParams
    46 {
    47   StringInputStreamParams;
    48   FileInputStreamParams;
    49   PartialFileInputStreamParams;
    50   BufferedInputStreamParams;
    51   MIMEInputStreamParams;
    52   MultiplexInputStreamParams;
    53   RemoteInputStreamParams;
    54 };
    56 union OptionalInputStreamParams
    57 {
    58   void_t;
    59   InputStreamParams;
    60 };
    62 struct BufferedInputStreamParams
    63 {
    64   OptionalInputStreamParams optionalStream;
    65   uint32_t bufferSize;
    66 };
    68 struct MIMEInputStreamParams
    69 {
    70   OptionalInputStreamParams optionalStream;
    71   nsCString headers;
    72   nsCString contentLength;
    73   bool startedReading;
    74   bool addContentLength;
    75 };
    77 union OptionalFileDescriptorSet
    78 {
    79   PFileDescriptorSet;
    80   void_t;
    81 };
    83 } // namespace ipc
    84 } // namespace mozilla

mercurial