2014-07-07 22:13:04 +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/. */
|
|
|
|
|
2015-11-03 04:50:54 +03:00
|
|
|
using mozilla::PrincipalOriginAttributes from "mozilla/ipc/BackgroundUtils.h";
|
2015-03-07 00:33:00 +03:00
|
|
|
using struct mozilla::void_t from "ipc/IPCMessageUtils.h";
|
|
|
|
|
2014-07-07 22:13:04 +04:00
|
|
|
namespace mozilla {
|
|
|
|
namespace ipc {
|
|
|
|
|
|
|
|
struct ContentPrincipalInfo
|
|
|
|
{
|
2015-11-03 04:50:54 +03:00
|
|
|
PrincipalOriginAttributes attrs;
|
2014-07-07 22:13:04 +04:00
|
|
|
nsCString spec;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct SystemPrincipalInfo
|
|
|
|
{ };
|
|
|
|
|
|
|
|
struct NullPrincipalInfo
|
|
|
|
{ };
|
|
|
|
|
2015-04-07 01:44:04 +03:00
|
|
|
struct ExpandedPrincipalInfo
|
|
|
|
{
|
|
|
|
PrincipalInfo[] whitelist;
|
|
|
|
};
|
|
|
|
|
2014-07-07 22:13:04 +04:00
|
|
|
union PrincipalInfo
|
|
|
|
{
|
|
|
|
ContentPrincipalInfo;
|
|
|
|
SystemPrincipalInfo;
|
|
|
|
NullPrincipalInfo;
|
2015-04-07 01:44:04 +03:00
|
|
|
ExpandedPrincipalInfo;
|
2014-07-07 22:13:04 +04:00
|
|
|
};
|
|
|
|
|
2015-03-07 00:33:00 +03:00
|
|
|
union OptionalPrincipalInfo
|
|
|
|
{
|
|
|
|
void_t;
|
|
|
|
PrincipalInfo;
|
|
|
|
};
|
|
|
|
|
2014-07-07 22:13:04 +04:00
|
|
|
} // namespace ipc
|
|
|
|
} // namespace mozilla
|