michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: michael@0: using struct mozilla::void_t from "ipc/IPCMessageUtils.h"; michael@0: michael@0: namespace mozilla { michael@0: namespace ipc { michael@0: michael@0: struct SimpleURIParams michael@0: { michael@0: nsCString scheme; michael@0: nsCString path; michael@0: nsCString ref; michael@0: bool isMutable; michael@0: }; michael@0: michael@0: struct StandardURLSegment michael@0: { michael@0: uint32_t position; michael@0: int32_t length; michael@0: }; michael@0: michael@0: struct StandardURLParams michael@0: { michael@0: uint32_t urlType; michael@0: int32_t port; michael@0: int32_t defaultPort; michael@0: nsCString spec; michael@0: StandardURLSegment scheme; michael@0: StandardURLSegment authority; michael@0: StandardURLSegment username; michael@0: StandardURLSegment password; michael@0: StandardURLSegment host; michael@0: StandardURLSegment path; michael@0: StandardURLSegment filePath; michael@0: StandardURLSegment directory; michael@0: StandardURLSegment baseName; michael@0: StandardURLSegment extension; michael@0: StandardURLSegment query; michael@0: StandardURLSegment ref; michael@0: nsCString originCharset; michael@0: bool isMutable; michael@0: bool supportsFileURL; michael@0: uint32_t hostEncoding; michael@0: }; michael@0: michael@0: struct JARURIParams michael@0: { michael@0: URIParams jarFile; michael@0: URIParams jarEntry; michael@0: nsCString charset; michael@0: }; michael@0: michael@0: struct GenericURIParams michael@0: { michael@0: nsCString spec; michael@0: nsCString charset; michael@0: }; michael@0: michael@0: union URIParams michael@0: { michael@0: SimpleURIParams; michael@0: StandardURLParams; michael@0: JARURIParams; michael@0: GenericURIParams; michael@0: }; michael@0: michael@0: union OptionalURIParams michael@0: { michael@0: void_t; michael@0: URIParams; michael@0: }; michael@0: michael@0: } // namespace ipc michael@0: } // namespace mozilla