2012-08-23 12:33:46 -07:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
|
|
|
|
|
2013-10-01 12:25:07 -07:00
|
|
|
using struct mozilla::void_t from "ipc/IPCMessageUtils.h";
|
2012-08-23 12:33:46 -07:00
|
|
|
|
2015-03-06 13:33:00 -08:00
|
|
|
include PBackgroundSharedTypes;
|
|
|
|
|
2012-08-23 12:33:46 -07:00
|
|
|
namespace mozilla {
|
|
|
|
namespace ipc {
|
|
|
|
|
|
|
|
struct SimpleURIParams
|
|
|
|
{
|
|
|
|
nsCString scheme;
|
|
|
|
nsCString path;
|
|
|
|
nsCString ref;
|
|
|
|
bool isMutable;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct StandardURLSegment
|
|
|
|
{
|
|
|
|
uint32_t position;
|
|
|
|
int32_t length;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct StandardURLParams
|
|
|
|
{
|
|
|
|
uint32_t urlType;
|
|
|
|
int32_t port;
|
|
|
|
int32_t defaultPort;
|
|
|
|
nsCString spec;
|
|
|
|
StandardURLSegment scheme;
|
|
|
|
StandardURLSegment authority;
|
|
|
|
StandardURLSegment username;
|
|
|
|
StandardURLSegment password;
|
|
|
|
StandardURLSegment host;
|
|
|
|
StandardURLSegment path;
|
|
|
|
StandardURLSegment filePath;
|
|
|
|
StandardURLSegment directory;
|
|
|
|
StandardURLSegment baseName;
|
|
|
|
StandardURLSegment extension;
|
|
|
|
StandardURLSegment query;
|
|
|
|
StandardURLSegment ref;
|
|
|
|
nsCString originCharset;
|
|
|
|
bool isMutable;
|
|
|
|
bool supportsFileURL;
|
|
|
|
uint32_t hostEncoding;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct JARURIParams
|
|
|
|
{
|
|
|
|
URIParams jarFile;
|
|
|
|
URIParams jarEntry;
|
|
|
|
nsCString charset;
|
|
|
|
};
|
|
|
|
|
2015-02-12 15:41:21 -08:00
|
|
|
struct IconURIParams
|
|
|
|
{
|
|
|
|
OptionalURIParams uri;
|
|
|
|
uint32_t size;
|
|
|
|
nsCString contentType;
|
|
|
|
nsCString fileName;
|
|
|
|
nsCString stockIcon;
|
|
|
|
int32_t iconSize;
|
|
|
|
int32_t iconState;
|
|
|
|
};
|
|
|
|
|
2015-02-24 12:54:40 -08:00
|
|
|
struct NullPrincipalURIParams
|
|
|
|
{
|
|
|
|
// Purposefully empty. Null principal URIs do not round-trip.
|
|
|
|
};
|
|
|
|
|
2015-03-06 13:33:00 -08:00
|
|
|
struct HostObjectURIParams
|
|
|
|
{
|
|
|
|
SimpleURIParams simpleParams;
|
|
|
|
OptionalPrincipalInfo principal;
|
|
|
|
};
|
|
|
|
|
2012-08-23 12:33:46 -07:00
|
|
|
union URIParams
|
|
|
|
{
|
|
|
|
SimpleURIParams;
|
|
|
|
StandardURLParams;
|
|
|
|
JARURIParams;
|
2015-02-12 15:41:21 -08:00
|
|
|
IconURIParams;
|
2015-02-24 12:54:40 -08:00
|
|
|
NullPrincipalURIParams;
|
2015-03-06 13:33:00 -08:00
|
|
|
JSURIParams;
|
2015-03-06 13:33:00 -08:00
|
|
|
SimpleNestedURIParams;
|
2015-03-06 13:33:00 -08:00
|
|
|
HostObjectURIParams;
|
2012-08-23 12:33:46 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
union OptionalURIParams
|
|
|
|
{
|
|
|
|
void_t;
|
|
|
|
URIParams;
|
|
|
|
};
|
|
|
|
|
2015-03-06 13:33:00 -08:00
|
|
|
struct JSURIParams
|
|
|
|
{
|
|
|
|
SimpleURIParams simpleParams;
|
|
|
|
OptionalURIParams baseURI;
|
|
|
|
};
|
|
|
|
|
2015-03-06 13:33:00 -08:00
|
|
|
struct SimpleNestedURIParams
|
|
|
|
{
|
|
|
|
SimpleURIParams simpleParams;
|
|
|
|
URIParams innerURI;
|
|
|
|
};
|
|
|
|
|
2012-08-23 12:33:46 -07:00
|
|
|
} // namespace ipc
|
|
|
|
} // namespace mozilla
|