mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-04 02:57:38 +00:00
0b6fcd9466
This makes our builds a bit more reproducible. Without it when processing #include "IPC/IPCMessageUtils.h we end up in #include "ShadowLayers.h" which in the final XUL translates into the symbol (run nm -a to see it): - 00 0000 SOL ../../../../gfx/layers/IPC/ShadowLayers.h now when some file in gfx/layers/ipc does #include "ShadowLayres.h" the file found is the local one with the lowercase directory name and we end up with - 00 0000 SOL ../../../../gfx/layers/ipc/ShadowLayers.h --HG-- extra : rebase_source : 96c68f6a3448eedaa280039960df911a9c707cac
79 lines
1.4 KiB
Plaintext
79 lines
1.4 KiB
Plaintext
/* 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/. */
|
|
|
|
include "ipc/IPCMessageUtils.h";
|
|
|
|
using mozilla::void_t;
|
|
|
|
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;
|
|
};
|
|
|
|
struct GenericURIParams
|
|
{
|
|
nsCString spec;
|
|
nsCString charset;
|
|
};
|
|
|
|
union URIParams
|
|
{
|
|
SimpleURIParams;
|
|
StandardURLParams;
|
|
JARURIParams;
|
|
GenericURIParams;
|
|
};
|
|
|
|
union OptionalURIParams
|
|
{
|
|
void_t;
|
|
URIParams;
|
|
};
|
|
|
|
} // namespace ipc
|
|
} // namespace mozilla
|