Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
michael@0 | 1 | /* This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 2 | * License, v. 2.0. If a copy of the MPL was not distributed with this |
michael@0 | 3 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
michael@0 | 4 | |
michael@0 | 5 | |
michael@0 | 6 | using struct mozilla::void_t from "ipc/IPCMessageUtils.h"; |
michael@0 | 7 | |
michael@0 | 8 | namespace mozilla { |
michael@0 | 9 | namespace ipc { |
michael@0 | 10 | |
michael@0 | 11 | struct SimpleURIParams |
michael@0 | 12 | { |
michael@0 | 13 | nsCString scheme; |
michael@0 | 14 | nsCString path; |
michael@0 | 15 | nsCString ref; |
michael@0 | 16 | bool isMutable; |
michael@0 | 17 | }; |
michael@0 | 18 | |
michael@0 | 19 | struct StandardURLSegment |
michael@0 | 20 | { |
michael@0 | 21 | uint32_t position; |
michael@0 | 22 | int32_t length; |
michael@0 | 23 | }; |
michael@0 | 24 | |
michael@0 | 25 | struct StandardURLParams |
michael@0 | 26 | { |
michael@0 | 27 | uint32_t urlType; |
michael@0 | 28 | int32_t port; |
michael@0 | 29 | int32_t defaultPort; |
michael@0 | 30 | nsCString spec; |
michael@0 | 31 | StandardURLSegment scheme; |
michael@0 | 32 | StandardURLSegment authority; |
michael@0 | 33 | StandardURLSegment username; |
michael@0 | 34 | StandardURLSegment password; |
michael@0 | 35 | StandardURLSegment host; |
michael@0 | 36 | StandardURLSegment path; |
michael@0 | 37 | StandardURLSegment filePath; |
michael@0 | 38 | StandardURLSegment directory; |
michael@0 | 39 | StandardURLSegment baseName; |
michael@0 | 40 | StandardURLSegment extension; |
michael@0 | 41 | StandardURLSegment query; |
michael@0 | 42 | StandardURLSegment ref; |
michael@0 | 43 | nsCString originCharset; |
michael@0 | 44 | bool isMutable; |
michael@0 | 45 | bool supportsFileURL; |
michael@0 | 46 | uint32_t hostEncoding; |
michael@0 | 47 | }; |
michael@0 | 48 | |
michael@0 | 49 | struct JARURIParams |
michael@0 | 50 | { |
michael@0 | 51 | URIParams jarFile; |
michael@0 | 52 | URIParams jarEntry; |
michael@0 | 53 | nsCString charset; |
michael@0 | 54 | }; |
michael@0 | 55 | |
michael@0 | 56 | struct GenericURIParams |
michael@0 | 57 | { |
michael@0 | 58 | nsCString spec; |
michael@0 | 59 | nsCString charset; |
michael@0 | 60 | }; |
michael@0 | 61 | |
michael@0 | 62 | union URIParams |
michael@0 | 63 | { |
michael@0 | 64 | SimpleURIParams; |
michael@0 | 65 | StandardURLParams; |
michael@0 | 66 | JARURIParams; |
michael@0 | 67 | GenericURIParams; |
michael@0 | 68 | }; |
michael@0 | 69 | |
michael@0 | 70 | union OptionalURIParams |
michael@0 | 71 | { |
michael@0 | 72 | void_t; |
michael@0 | 73 | URIParams; |
michael@0 | 74 | }; |
michael@0 | 75 | |
michael@0 | 76 | } // namespace ipc |
michael@0 | 77 | } // namespace mozilla |