ipc/glue/URIParams.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";
     8 namespace mozilla {
     9 namespace ipc {
    11 struct SimpleURIParams
    12 {
    13   nsCString scheme;
    14   nsCString path;
    15   nsCString ref;
    16   bool isMutable;
    17 };
    19 struct StandardURLSegment
    20 {
    21   uint32_t position;
    22   int32_t length;
    23 };
    25 struct StandardURLParams
    26 {
    27   uint32_t urlType;
    28   int32_t port;
    29   int32_t defaultPort;
    30   nsCString spec;
    31   StandardURLSegment scheme;
    32   StandardURLSegment authority;
    33   StandardURLSegment username;
    34   StandardURLSegment password;
    35   StandardURLSegment host;
    36   StandardURLSegment path;
    37   StandardURLSegment filePath;
    38   StandardURLSegment directory;
    39   StandardURLSegment baseName;
    40   StandardURLSegment extension;
    41   StandardURLSegment query;
    42   StandardURLSegment ref;
    43   nsCString originCharset;
    44   bool isMutable;
    45   bool supportsFileURL;
    46   uint32_t hostEncoding;
    47 };
    49 struct JARURIParams
    50 {
    51   URIParams jarFile;
    52   URIParams jarEntry;
    53   nsCString charset;
    54 };
    56 struct GenericURIParams
    57 {
    58   nsCString spec;
    59   nsCString charset;
    60 };
    62 union URIParams
    63 {
    64   SimpleURIParams;
    65   StandardURLParams;
    66   JARURIParams;
    67   GenericURIParams;
    68 };
    70 union OptionalURIParams
    71 {
    72   void_t;
    73   URIParams;
    74 };
    76 } // namespace ipc
    77 } // namespace mozilla

mercurial