ipc/glue/InputStreamParams.ipdlh

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/ipc/glue/InputStreamParams.ipdlh	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,84 @@
     1.4 +/* This Source Code Form is subject to the terms of the Mozilla Public
     1.5 + * License, v. 2.0. If a copy of the MPL was not distributed with this
     1.6 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     1.7 +
     1.8 +
     1.9 +using struct mozilla::void_t from "ipc/IPCMessageUtils.h";
    1.10 +include protocol PBlob;
    1.11 +include protocol PFileDescriptorSet;
    1.12 +
    1.13 +namespace mozilla {
    1.14 +namespace ipc {
    1.15 +
    1.16 +struct StringInputStreamParams
    1.17 +{
    1.18 +  nsCString data;
    1.19 +};
    1.20 +
    1.21 +struct FileInputStreamParams
    1.22 +{
    1.23 +  uint32_t fileDescriptorIndex;
    1.24 +  int32_t behaviorFlags;
    1.25 +  int32_t ioFlags;
    1.26 +};
    1.27 +
    1.28 +struct PartialFileInputStreamParams
    1.29 +{
    1.30 +  FileInputStreamParams fileStreamParams;
    1.31 +  uint64_t begin;
    1.32 +  uint64_t length;
    1.33 +};
    1.34 +
    1.35 +struct MultiplexInputStreamParams
    1.36 +{
    1.37 +  InputStreamParams[] streams;
    1.38 +  uint32_t currentStream;
    1.39 +  nsresult status;
    1.40 +  bool startedReadingCurrent;
    1.41 +};
    1.42 +
    1.43 +struct RemoteInputStreamParams
    1.44 +{
    1.45 +  PBlob remoteBlob;
    1.46 +};
    1.47 +
    1.48 +union InputStreamParams
    1.49 +{
    1.50 +  StringInputStreamParams;
    1.51 +  FileInputStreamParams;
    1.52 +  PartialFileInputStreamParams;
    1.53 +  BufferedInputStreamParams;
    1.54 +  MIMEInputStreamParams;
    1.55 +  MultiplexInputStreamParams;
    1.56 +  RemoteInputStreamParams;
    1.57 +};
    1.58 +
    1.59 +union OptionalInputStreamParams
    1.60 +{
    1.61 +  void_t;
    1.62 +  InputStreamParams;
    1.63 +};
    1.64 +
    1.65 +struct BufferedInputStreamParams
    1.66 +{
    1.67 +  OptionalInputStreamParams optionalStream;
    1.68 +  uint32_t bufferSize;
    1.69 +};
    1.70 +
    1.71 +struct MIMEInputStreamParams
    1.72 +{
    1.73 +  OptionalInputStreamParams optionalStream;
    1.74 +  nsCString headers;
    1.75 +  nsCString contentLength;
    1.76 +  bool startedReading;
    1.77 +  bool addContentLength;
    1.78 +};
    1.79 +
    1.80 +union OptionalFileDescriptorSet
    1.81 +{
    1.82 +  PFileDescriptorSet;
    1.83 +  void_t;
    1.84 +};
    1.85 +
    1.86 +} // namespace ipc
    1.87 +} // namespace mozilla

mercurial