ipc/glue/PBackgroundSharedTypes.ipdlh
author Mark Banner <standard8@mozilla.com>
Fri, 29 Jul 2016 18:14:48 +0100
changeset 307376 9346c1a86c6c5f09817f60eb600543bcac65ce94
parent 295065 6b8afcb75d337366a6dd6d163adee7cc8385e66c
child 314926 52bc3ac33f86732512b547552e12360aa221007c
permissions -rw-r--r--
Backed out changeset 1a8114aa64c1 (bug 1287827) for breaking tests

/* 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
{
  PrincipalOriginAttributes attrs;
};

struct ExpandedPrincipalInfo
{
  PrincipalInfo[] whitelist;
};

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

union OptionalPrincipalInfo
{
  void_t;
  PrincipalInfo;
};

} // namespace ipc
} // namespace mozilla