2012-08-23 23:33:46 +04: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/. */
|
|
|
|
|
|
|
|
|
2020-11-23 19:05:20 +03:00
|
|
|
using struct mozilla::void_t from "mozilla/ipc/IPCCore.h";
|
2012-08-23 23:33:46 +04:00
|
|
|
|
2015-03-07 00:33:00 +03:00
|
|
|
include PBackgroundSharedTypes;
|
|
|
|
|
2012-08-23 23:33:46 +04:00
|
|
|
namespace mozilla {
|
|
|
|
namespace ipc {
|
|
|
|
|
|
|
|
struct SimpleURIParams
|
|
|
|
{
|
|
|
|
nsCString scheme;
|
|
|
|
nsCString path;
|
|
|
|
nsCString ref;
|
2016-11-14 15:04:33 +03:00
|
|
|
nsCString query;
|
2012-08-23 23:33:46 +04:00
|
|
|
};
|
|
|
|
|
2019-12-11 23:17:53 +03:00
|
|
|
struct DefaultURIParams
|
|
|
|
{
|
|
|
|
nsCString spec;
|
|
|
|
};
|
|
|
|
|
2012-08-23 23:33:46 +04:00
|
|
|
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;
|
|
|
|
bool supportsFileURL;
|
2019-10-11 05:25:54 +03:00
|
|
|
bool isSubstituting;
|
2012-08-23 23:33:46 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
struct JARURIParams
|
|
|
|
{
|
|
|
|
URIParams jarFile;
|
|
|
|
URIParams jarEntry;
|
|
|
|
nsCString charset;
|
|
|
|
};
|
|
|
|
|
2015-02-13 02:41:21 +03:00
|
|
|
struct IconURIParams
|
|
|
|
{
|
2019-03-06 17:05:50 +03:00
|
|
|
URIParams? uri;
|
2015-02-13 02:41:21 +03:00
|
|
|
uint32_t size;
|
|
|
|
nsCString contentType;
|
|
|
|
nsCString fileName;
|
|
|
|
nsCString stockIcon;
|
|
|
|
int32_t iconSize;
|
|
|
|
int32_t iconState;
|
|
|
|
};
|
|
|
|
|
2015-03-07 00:33:00 +03:00
|
|
|
struct HostObjectURIParams
|
|
|
|
{
|
|
|
|
SimpleURIParams simpleParams;
|
2018-07-24 23:15:57 +03:00
|
|
|
bool revoked;
|
2015-03-07 00:33:00 +03:00
|
|
|
};
|
|
|
|
|
2012-08-23 23:33:46 +04:00
|
|
|
union URIParams
|
|
|
|
{
|
|
|
|
SimpleURIParams;
|
|
|
|
StandardURLParams;
|
|
|
|
JARURIParams;
|
2015-02-13 02:41:21 +03:00
|
|
|
IconURIParams;
|
2015-03-07 00:33:00 +03:00
|
|
|
JSURIParams;
|
2015-03-07 00:33:00 +03:00
|
|
|
SimpleNestedURIParams;
|
2015-03-07 00:33:00 +03:00
|
|
|
HostObjectURIParams;
|
2019-12-11 23:17:53 +03:00
|
|
|
DefaultURIParams;
|
2020-08-28 20:20:43 +03:00
|
|
|
NestedAboutURIParams;
|
2023-04-28 08:40:41 +03:00
|
|
|
SubstitutingJARURIParams;
|
2012-08-23 23:33:46 +04:00
|
|
|
};
|
|
|
|
|
2015-03-07 00:33:00 +03:00
|
|
|
struct JSURIParams
|
|
|
|
{
|
|
|
|
SimpleURIParams simpleParams;
|
2019-03-06 17:05:50 +03:00
|
|
|
URIParams? baseURI;
|
2015-03-07 00:33:00 +03:00
|
|
|
};
|
|
|
|
|
2015-03-07 00:33:00 +03:00
|
|
|
struct SimpleNestedURIParams
|
|
|
|
{
|
|
|
|
SimpleURIParams simpleParams;
|
|
|
|
URIParams innerURI;
|
|
|
|
};
|
|
|
|
|
2020-08-28 20:20:43 +03:00
|
|
|
struct NestedAboutURIParams
|
|
|
|
{
|
|
|
|
SimpleNestedURIParams nestedParams;
|
|
|
|
URIParams? baseURI;
|
|
|
|
};
|
|
|
|
|
2023-04-28 08:40:41 +03:00
|
|
|
struct SubstitutingJARURIParams
|
|
|
|
{
|
|
|
|
URIParams source;
|
|
|
|
JARURIParams resolved;
|
|
|
|
};
|
|
|
|
|
2012-08-23 23:33:46 +04:00
|
|
|
} // namespace ipc
|
|
|
|
} // namespace mozilla
|