netwerk/ipc/NeckoChannelParams.ipdlh

Wed, 31 Dec 2014 06:55:50 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:55:50 +0100
changeset 2
7e26c7da4463
permissions
-rw-r--r--

Added tag UPSTREAM_283F7C6 for changeset ca08bd8f51b2

michael@0 1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
michael@0 2 /* vim: set sw=2 ts=8 et tw=80 ft=c: */
michael@0 3
michael@0 4 /* This Source Code Form is subject to the terms of the Mozilla Public
michael@0 5 * License, v. 2.0. If a copy of the MPL was not distributed with this
michael@0 6 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
michael@0 7
michael@0 8 include protocol PHttpChannel;
michael@0 9 include protocol PFTPChannel;
michael@0 10 include protocol PRtspChannel;
michael@0 11 include URIParams;
michael@0 12 include InputStreamParams;
michael@0 13
michael@0 14 using struct mozilla::void_t from "ipc/IPCMessageUtils.h";
michael@0 15 using RequestHeaderTuples from "mozilla/net/PHttpChannelParams.h";
michael@0 16 using struct nsHttpAtom from "nsHttp.h";
michael@0 17
michael@0 18 namespace mozilla {
michael@0 19 namespace net {
michael@0 20
michael@0 21 //-----------------------------------------------------------------------------
michael@0 22 // HTTP IPDL structs
michael@0 23 //-----------------------------------------------------------------------------
michael@0 24
michael@0 25 struct HttpChannelOpenArgs
michael@0 26 {
michael@0 27 URIParams uri;
michael@0 28 // - TODO: bug 571161: unclear if any HTTP channel clients ever
michael@0 29 // set originalURI != uri (about:credits?); also not clear if
michael@0 30 // chrome channel would ever need to know. Get rid of next arg?
michael@0 31 OptionalURIParams original;
michael@0 32 OptionalURIParams doc;
michael@0 33 OptionalURIParams referrer;
michael@0 34 OptionalURIParams apiRedirectTo;
michael@0 35 uint32_t loadFlags;
michael@0 36 RequestHeaderTuples requestHeaders;
michael@0 37 nsCString requestMethod;
michael@0 38 OptionalInputStreamParams uploadStream;
michael@0 39 bool uploadStreamHasHeaders;
michael@0 40 uint16_t priority;
michael@0 41 uint8_t redirectionLimit;
michael@0 42 bool allowPipelining;
michael@0 43 bool forceAllowThirdPartyCookie;
michael@0 44 bool resumeAt;
michael@0 45 uint64_t startPos;
michael@0 46 nsCString entityID;
michael@0 47 bool chooseApplicationCache;
michael@0 48 nsCString appCacheClientID;
michael@0 49 bool allowSpdy;
michael@0 50 OptionalFileDescriptorSet fds;
michael@0 51 };
michael@0 52
michael@0 53 struct HttpChannelConnectArgs
michael@0 54 {
michael@0 55 uint32_t channelId;
michael@0 56 };
michael@0 57
michael@0 58 union HttpChannelCreationArgs
michael@0 59 {
michael@0 60 HttpChannelOpenArgs; // For AsyncOpen: the common case.
michael@0 61 HttpChannelConnectArgs; // Used for redirected-to channels
michael@0 62 };
michael@0 63
michael@0 64 //-----------------------------------------------------------------------------
michael@0 65 // FTP IPDL structs
michael@0 66 //-----------------------------------------------------------------------------
michael@0 67
michael@0 68 struct FTPChannelOpenArgs
michael@0 69 {
michael@0 70 URIParams uri;
michael@0 71 uint64_t startPos;
michael@0 72 nsCString entityID;
michael@0 73 OptionalInputStreamParams uploadStream;
michael@0 74 };
michael@0 75
michael@0 76 struct FTPChannelConnectArgs
michael@0 77 {
michael@0 78 uint32_t channelId;
michael@0 79 };
michael@0 80
michael@0 81 union FTPChannelCreationArgs
michael@0 82 {
michael@0 83 FTPChannelOpenArgs; // For AsyncOpen: the common case.
michael@0 84 FTPChannelConnectArgs; // Used for redirected-to channels
michael@0 85 };
michael@0 86
michael@0 87 union ChannelDiverterArgs
michael@0 88 {
michael@0 89 PHttpChannel;
michael@0 90 PFTPChannel;
michael@0 91 };
michael@0 92
michael@0 93 //-----------------------------------------------------------------------------
michael@0 94 // RTSP IPDL structs
michael@0 95 //-----------------------------------------------------------------------------
michael@0 96
michael@0 97 struct RtspChannelConnectArgs
michael@0 98 {
michael@0 99 URIParams uri;
michael@0 100 uint32_t channelId;
michael@0 101 };
michael@0 102
michael@0 103 } // namespace ipc
michael@0 104 } // namespace mozilla

mercurial