netwerk/ipc/NeckoChannelParams.ipdlh

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/netwerk/ipc/NeckoChannelParams.ipdlh	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,104 @@
     1.4 +/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
     1.5 +/* vim: set sw=2 ts=8 et tw=80 ft=c: */
     1.6 +
     1.7 +/* This Source Code Form is subject to the terms of the Mozilla Public
     1.8 + * License, v. 2.0. If a copy of the MPL was not distributed with this
     1.9 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
    1.10 +
    1.11 +include protocol PHttpChannel;
    1.12 +include protocol PFTPChannel;
    1.13 +include protocol PRtspChannel;
    1.14 +include URIParams;
    1.15 +include InputStreamParams;
    1.16 +
    1.17 +using struct mozilla::void_t from "ipc/IPCMessageUtils.h";
    1.18 +using RequestHeaderTuples from "mozilla/net/PHttpChannelParams.h";
    1.19 +using struct nsHttpAtom from "nsHttp.h";
    1.20 +
    1.21 +namespace mozilla {
    1.22 +namespace net {
    1.23 +
    1.24 +//-----------------------------------------------------------------------------
    1.25 +// HTTP IPDL structs
    1.26 +//-----------------------------------------------------------------------------
    1.27 +
    1.28 +struct HttpChannelOpenArgs
    1.29 +{
    1.30 +  URIParams                   uri;
    1.31 +  // - TODO: bug 571161: unclear if any HTTP channel clients ever
    1.32 +  // set originalURI != uri (about:credits?); also not clear if
    1.33 +  // chrome channel would ever need to know.  Get rid of next arg?
    1.34 +  OptionalURIParams           original;
    1.35 +  OptionalURIParams           doc;
    1.36 +  OptionalURIParams           referrer;
    1.37 +  OptionalURIParams           apiRedirectTo;
    1.38 +  uint32_t                    loadFlags;
    1.39 +  RequestHeaderTuples         requestHeaders;
    1.40 +  nsCString                   requestMethod;
    1.41 +  OptionalInputStreamParams   uploadStream;
    1.42 +  bool                        uploadStreamHasHeaders;
    1.43 +  uint16_t                    priority;
    1.44 +  uint8_t                     redirectionLimit;
    1.45 +  bool                        allowPipelining;
    1.46 +  bool                        forceAllowThirdPartyCookie;
    1.47 +  bool                        resumeAt;
    1.48 +  uint64_t                    startPos;
    1.49 +  nsCString                   entityID;
    1.50 +  bool                        chooseApplicationCache;
    1.51 +  nsCString                   appCacheClientID;
    1.52 +  bool                        allowSpdy;
    1.53 +  OptionalFileDescriptorSet   fds;
    1.54 +};
    1.55 +
    1.56 +struct HttpChannelConnectArgs
    1.57 +{
    1.58 +  uint32_t channelId;
    1.59 +};
    1.60 +
    1.61 +union HttpChannelCreationArgs
    1.62 +{
    1.63 +  HttpChannelOpenArgs;      // For AsyncOpen: the common case.
    1.64 +  HttpChannelConnectArgs;   // Used for redirected-to channels
    1.65 +};
    1.66 +
    1.67 +//-----------------------------------------------------------------------------
    1.68 +// FTP IPDL structs
    1.69 +//-----------------------------------------------------------------------------
    1.70 +
    1.71 +struct FTPChannelOpenArgs
    1.72 +{
    1.73 +  URIParams uri;
    1.74 +  uint64_t startPos;
    1.75 +  nsCString entityID;
    1.76 +  OptionalInputStreamParams uploadStream;
    1.77 +};
    1.78 +
    1.79 +struct FTPChannelConnectArgs
    1.80 +{
    1.81 +  uint32_t channelId;
    1.82 +};
    1.83 +
    1.84 +union FTPChannelCreationArgs
    1.85 +{
    1.86 +  FTPChannelOpenArgs;      // For AsyncOpen: the common case.
    1.87 +  FTPChannelConnectArgs;   // Used for redirected-to channels
    1.88 +};
    1.89 +
    1.90 +union ChannelDiverterArgs
    1.91 +{
    1.92 +  PHttpChannel;
    1.93 +  PFTPChannel;
    1.94 +};
    1.95 +
    1.96 +//-----------------------------------------------------------------------------
    1.97 +// RTSP IPDL structs
    1.98 +//-----------------------------------------------------------------------------
    1.99 +
   1.100 +struct RtspChannelConnectArgs
   1.101 +{
   1.102 +  URIParams uri;
   1.103 +  uint32_t channelId;
   1.104 +};
   1.105 +
   1.106 +} // namespace ipc
   1.107 +} // namespace mozilla

mercurial