|
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 "ipc/IPCMessageUtils.h"; |
|
7 |
|
8 namespace mozilla { |
|
9 namespace ipc { |
|
10 |
|
11 struct SimpleURIParams |
|
12 { |
|
13 nsCString scheme; |
|
14 nsCString path; |
|
15 nsCString ref; |
|
16 bool isMutable; |
|
17 }; |
|
18 |
|
19 struct StandardURLSegment |
|
20 { |
|
21 uint32_t position; |
|
22 int32_t length; |
|
23 }; |
|
24 |
|
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 }; |
|
48 |
|
49 struct JARURIParams |
|
50 { |
|
51 URIParams jarFile; |
|
52 URIParams jarEntry; |
|
53 nsCString charset; |
|
54 }; |
|
55 |
|
56 struct GenericURIParams |
|
57 { |
|
58 nsCString spec; |
|
59 nsCString charset; |
|
60 }; |
|
61 |
|
62 union URIParams |
|
63 { |
|
64 SimpleURIParams; |
|
65 StandardURLParams; |
|
66 JARURIParams; |
|
67 GenericURIParams; |
|
68 }; |
|
69 |
|
70 union OptionalURIParams |
|
71 { |
|
72 void_t; |
|
73 URIParams; |
|
74 }; |
|
75 |
|
76 } // namespace ipc |
|
77 } // namespace mozilla |