2015-05-03 19:32:37 +00:00
|
|
|
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
|
|
/* vim: set ts=8 sts=2 et sw=2 tw=80: */
|
2014-11-06 14:41:00 +00: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/. */
|
|
|
|
|
2016-06-08 12:46:50 +00:00
|
|
|
#include "mozilla/BasePrincipal.h"
|
2017-08-16 22:11:59 +00:00
|
|
|
#include "nsCycleCollectionParticipant.h"
|
2014-11-06 14:41:00 +00:00
|
|
|
#include "nsIBrowserDOMWindow.h"
|
2018-03-22 02:43:17 +00:00
|
|
|
#include "nsIFrameLoaderOwner.h"
|
2014-11-06 14:41:00 +00:00
|
|
|
#include "nsString.h"
|
|
|
|
|
2016-02-18 08:33:07 +00:00
|
|
|
namespace mozilla {
|
2017-01-12 16:38:48 +00:00
|
|
|
class OriginAttributes;
|
2016-02-18 08:33:07 +00:00
|
|
|
}
|
|
|
|
|
2015-03-21 16:28:04 +00:00
|
|
|
class nsOpenURIInFrameParams final : public nsIOpenURIInFrameParams
|
2014-11-06 14:41:00 +00:00
|
|
|
{
|
|
|
|
public:
|
2017-08-16 22:11:59 +00:00
|
|
|
NS_DECL_CYCLE_COLLECTION_CLASS(nsOpenURIInFrameParams)
|
|
|
|
NS_DECL_CYCLE_COLLECTING_ISUPPORTS
|
2014-11-06 14:41:00 +00:00
|
|
|
NS_DECL_NSIOPENURIINFRAMEPARAMS
|
|
|
|
|
2017-08-16 22:11:59 +00:00
|
|
|
explicit nsOpenURIInFrameParams(const mozilla::OriginAttributes& aOriginAttributes,
|
|
|
|
nsIFrameLoaderOwner* aOpener);
|
2014-11-06 14:41:00 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
~nsOpenURIInFrameParams();
|
2016-02-18 08:33:07 +00:00
|
|
|
|
2017-01-12 16:38:48 +00:00
|
|
|
mozilla::OriginAttributes mOpenerOriginAttributes;
|
2017-08-16 22:11:59 +00:00
|
|
|
nsCOMPtr<nsIFrameLoaderOwner> mOpenerBrowser;
|
2014-11-06 14:41:00 +00:00
|
|
|
nsString mReferrer;
|
2017-11-30 13:42:05 +00:00
|
|
|
uint32_t mReferrerPolicy;
|
2017-07-05 19:57:47 +00:00
|
|
|
nsCOMPtr<nsIPrincipal> mTriggeringPrincipal;
|
2014-11-06 14:41:00 +00:00
|
|
|
};
|