URIParams.ipdlh (1975B)
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/. */ 4 5 6 using struct mozilla::void_t from "mozilla/ipc/IPCCore.h"; 7 8 include PBackgroundSharedTypes; 9 10 namespace mozilla { 11 namespace ipc { 12 13 struct SimpleURIParams 14 { 15 nsCString spec; 16 }; 17 18 struct DefaultURIParams 19 { 20 nsCString spec; 21 }; 22 23 struct StandardURLSegment 24 { 25 uint32_t position; 26 int32_t length; 27 }; 28 29 struct StandardURLParams 30 { 31 uint32_t urlType; 32 int32_t port; 33 int32_t defaultPort; 34 nsCString spec; 35 StandardURLSegment scheme; 36 StandardURLSegment authority; 37 StandardURLSegment username; 38 StandardURLSegment password; 39 StandardURLSegment host; 40 StandardURLSegment path; 41 StandardURLSegment filePath; 42 StandardURLSegment directory; 43 StandardURLSegment baseName; 44 StandardURLSegment extension; 45 StandardURLSegment query; 46 StandardURLSegment ref; 47 bool supportsFileURL; 48 bool isSubstituting; 49 }; 50 51 struct JARURIParams 52 { 53 URIParams jarFile; 54 URIParams jarEntry; 55 nsCString charset; 56 }; 57 58 struct IconURIParams 59 { 60 URIParams? uri; 61 uint32_t size; 62 nsCString contentType; 63 nsCString fileName; 64 nsCString stockIcon; 65 uint32_t iconScale; 66 bool? iconDark; 67 }; 68 69 struct HostObjectURIParams 70 { 71 SimpleURIParams simpleParams; 72 bool revoked; 73 }; 74 75 union URIParams 76 { 77 SimpleURIParams; 78 StandardURLParams; 79 JARURIParams; 80 IconURIParams; 81 JSURIParams; 82 SimpleNestedURIParams; 83 HostObjectURIParams; 84 DefaultURIParams; 85 NestedAboutURIParams; 86 SubstitutingJARURIParams; 87 }; 88 89 struct JSURIParams 90 { 91 SimpleURIParams simpleParams; 92 URIParams? baseURI; 93 }; 94 95 struct SimpleNestedURIParams 96 { 97 SimpleURIParams simpleParams; 98 URIParams innerURI; 99 }; 100 101 struct NestedAboutURIParams 102 { 103 SimpleNestedURIParams nestedParams; 104 URIParams? baseURI; 105 }; 106 107 struct SubstitutingJARURIParams 108 { 109 URIParams source; 110 JARURIParams resolved; 111 }; 112 113 } // namespace ipc 114 } // namespace mozilla