1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/ipc/glue/URIParams.ipdlh Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,77 @@ 1.4 +/* This Source Code Form is subject to the terms of the Mozilla Public 1.5 + * License, v. 2.0. If a copy of the MPL was not distributed with this 1.6 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 1.7 + 1.8 + 1.9 +using struct mozilla::void_t from "ipc/IPCMessageUtils.h"; 1.10 + 1.11 +namespace mozilla { 1.12 +namespace ipc { 1.13 + 1.14 +struct SimpleURIParams 1.15 +{ 1.16 + nsCString scheme; 1.17 + nsCString path; 1.18 + nsCString ref; 1.19 + bool isMutable; 1.20 +}; 1.21 + 1.22 +struct StandardURLSegment 1.23 +{ 1.24 + uint32_t position; 1.25 + int32_t length; 1.26 +}; 1.27 + 1.28 +struct StandardURLParams 1.29 +{ 1.30 + uint32_t urlType; 1.31 + int32_t port; 1.32 + int32_t defaultPort; 1.33 + nsCString spec; 1.34 + StandardURLSegment scheme; 1.35 + StandardURLSegment authority; 1.36 + StandardURLSegment username; 1.37 + StandardURLSegment password; 1.38 + StandardURLSegment host; 1.39 + StandardURLSegment path; 1.40 + StandardURLSegment filePath; 1.41 + StandardURLSegment directory; 1.42 + StandardURLSegment baseName; 1.43 + StandardURLSegment extension; 1.44 + StandardURLSegment query; 1.45 + StandardURLSegment ref; 1.46 + nsCString originCharset; 1.47 + bool isMutable; 1.48 + bool supportsFileURL; 1.49 + uint32_t hostEncoding; 1.50 +}; 1.51 + 1.52 +struct JARURIParams 1.53 +{ 1.54 + URIParams jarFile; 1.55 + URIParams jarEntry; 1.56 + nsCString charset; 1.57 +}; 1.58 + 1.59 +struct GenericURIParams 1.60 +{ 1.61 + nsCString spec; 1.62 + nsCString charset; 1.63 +}; 1.64 + 1.65 +union URIParams 1.66 +{ 1.67 + SimpleURIParams; 1.68 + StandardURLParams; 1.69 + JARURIParams; 1.70 + GenericURIParams; 1.71 +}; 1.72 + 1.73 +union OptionalURIParams 1.74 +{ 1.75 + void_t; 1.76 + URIParams; 1.77 +}; 1.78 + 1.79 +} // namespace ipc 1.80 +} // namespace mozilla