2015-05-03 22:32:37 +03: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 17:41:00 +03: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 15:46:50 +03:00
|
|
|
#include "mozilla/BasePrincipal.h"
|
2017-08-17 01:11:59 +03:00
|
|
|
#include "nsCycleCollectionParticipant.h"
|
2014-11-06 17:41:00 +03:00
|
|
|
#include "nsIBrowserDOMWindow.h"
|
2019-02-16 01:20:53 +03:00
|
|
|
#include "nsFrameLoaderOwner.h"
|
2019-04-26 23:29:30 +03:00
|
|
|
#include "nsIContentSecurityPolicy.h"
|
|
|
|
#include "nsIPrincipal.h"
|
2019-03-15 08:11:43 +03:00
|
|
|
#include "nsIReferrerInfo.h"
|
2014-11-06 17:41:00 +03:00
|
|
|
#include "nsString.h"
|
|
|
|
|
2016-02-18 11:33:07 +03:00
|
|
|
namespace mozilla {
|
2017-01-12 19:38:48 +03:00
|
|
|
class OriginAttributes;
|
2019-04-26 23:29:30 +03:00
|
|
|
namespace dom {
|
|
|
|
class Element;
|
|
|
|
} // namespace dom
|
|
|
|
} // namespace mozilla
|
2016-02-18 11:33:07 +03:00
|
|
|
|
2015-03-21 19:28:04 +03:00
|
|
|
class nsOpenURIInFrameParams final : public nsIOpenURIInFrameParams {
|
2014-11-06 17:41:00 +03:00
|
|
|
public:
|
2017-08-17 01:11:59 +03:00
|
|
|
NS_DECL_CYCLE_COLLECTION_CLASS(nsOpenURIInFrameParams)
|
|
|
|
NS_DECL_CYCLE_COLLECTING_ISUPPORTS
|
2014-11-06 17:41:00 +03:00
|
|
|
NS_DECL_NSIOPENURIINFRAMEPARAMS
|
|
|
|
|
2017-08-17 01:11:59 +03:00
|
|
|
explicit nsOpenURIInFrameParams(
|
2019-04-26 23:29:30 +03:00
|
|
|
const mozilla::OriginAttributes& aOriginAttributes,
|
|
|
|
mozilla::dom::Element* aOpener);
|
2014-11-06 17:41:00 +03:00
|
|
|
|
|
|
|
private:
|
|
|
|
~nsOpenURIInFrameParams();
|
2016-02-18 11:33:07 +03:00
|
|
|
|
2017-01-12 19:38:48 +03:00
|
|
|
mozilla::OriginAttributes mOpenerOriginAttributes;
|
2019-04-26 23:29:30 +03:00
|
|
|
RefPtr<mozilla::dom::Element> mOpenerBrowser;
|
2019-03-15 08:11:43 +03:00
|
|
|
nsCOMPtr<nsIReferrerInfo> mReferrerInfo;
|
2017-07-05 22:57:47 +03:00
|
|
|
nsCOMPtr<nsIPrincipal> mTriggeringPrincipal;
|
2019-02-21 18:00:32 +03:00
|
|
|
nsCOMPtr<nsIContentSecurityPolicy> mCsp;
|
2014-11-06 17:41:00 +03:00
|
|
|
};
|