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"
|
2019-02-15 22:20:53 +00:00
|
|
|
#include "nsFrameLoaderOwner.h"
|
2019-04-26 20:29:30 +00:00
|
|
|
#include "nsIContentSecurityPolicy.h"
|
|
|
|
#include "nsIPrincipal.h"
|
2019-03-15 05:11:43 +00:00
|
|
|
#include "nsIReferrerInfo.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;
|
2019-04-26 20:29:30 +00:00
|
|
|
namespace dom {
|
|
|
|
class Element;
|
|
|
|
} // namespace dom
|
|
|
|
} // namespace mozilla
|
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(
|
2019-04-26 20:29:30 +00:00
|
|
|
const mozilla::OriginAttributes& aOriginAttributes,
|
|
|
|
mozilla::dom::Element* 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;
|
2019-04-26 20:29:30 +00:00
|
|
|
RefPtr<mozilla::dom::Element> mOpenerBrowser;
|
2019-03-15 05:11:43 +00:00
|
|
|
nsCOMPtr<nsIReferrerInfo> mReferrerInfo;
|
2017-07-05 19:57:47 +00:00
|
|
|
nsCOMPtr<nsIPrincipal> mTriggeringPrincipal;
|
2019-02-21 15:00:32 +00:00
|
|
|
nsCOMPtr<nsIContentSecurityPolicy> mCsp;
|
2014-11-06 14:41:00 +00:00
|
|
|
};
|