ipc/glue/PBackgroundSharedTypes.ipdlh
author Peter Van der Beken <peterv@propagandism.org>
Fri, 02 Dec 2016 18:24:27 +0100
changeset 461974 778f65148b4009b087c6e7789ffe486a5349922c
parent 311410 0e4c4db3b90ff45937cc1eab4b7bbd61f4674326
child 356991 6b8afcb75d337366a6dd6d163adee7cc8385e66c
permissions -rw-r--r--
Bug 1287912. r=bz a=lizzard

/* 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/. */

using mozilla::PrincipalOriginAttributes from "mozilla/ipc/BackgroundUtils.h";
using struct mozilla::void_t from "ipc/IPCMessageUtils.h";

namespace mozilla {
namespace ipc {

struct ContentPrincipalInfo
{
  PrincipalOriginAttributes attrs;
  nsCString spec;
};

struct SystemPrincipalInfo
{ };

struct NullPrincipalInfo
{ };

struct ExpandedPrincipalInfo
{
  PrincipalInfo[] whitelist;
};

union PrincipalInfo
{
  ContentPrincipalInfo;
  SystemPrincipalInfo;
  NullPrincipalInfo;
  ExpandedPrincipalInfo;
};

union OptionalPrincipalInfo
{
  void_t;
  PrincipalInfo;
};

} // namespace ipc
} // namespace mozilla