dom/base/nsOpenURIInFrameParams.h
author Michael Layzell <michael@thelayzells.com>
Tue, 06 Jun 2017 14:22:17 -0400
changeset 413207 8dd6234e2a18f9fb9ab6ec32d84fbb38c8a7d7fa
parent 376439 8fe52da5cb90209689b41879843ba93f6acda884
child 418639 68b0765559eff69f367bf5b6af98c1f9d1601655
permissions -rw-r--r--
Bug 1368046 - Part 2: Propagate OriginAttributes across processes for RecvCreateWindowInDifferentProcess, r=smaug MozReview-Commit-ID: 8ok4DI9zgfR

/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* vim: set ts=8 sts=2 et sw=2 tw=80: */
/* 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 "mozilla/BasePrincipal.h"
#include "nsIBrowserDOMWindow.h"
#include "nsString.h"

namespace mozilla {
class OriginAttributes;
}

class nsOpenURIInFrameParams final : public nsIOpenURIInFrameParams
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSIOPENURIINFRAMEPARAMS

  explicit nsOpenURIInFrameParams(const mozilla::OriginAttributes& aOriginAttributes);

private:
  ~nsOpenURIInFrameParams();

  mozilla::OriginAttributes mOpenerOriginAttributes;
  nsString mReferrer;
};