Bug 1660051 [wpt PR 25111] - Origin isolation: expand getter test coverage, a=testonly
[gecko.git] / dom / base / nsOpenURIInFrameParams.h
blob1c353ddedebb3a6f087a56874592636520921400
1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* vim: set ts=8 sts=2 et sw=2 tw=80: */
3 /* This Source Code Form is subject to the terms of the Mozilla Public
4 * License, v. 2.0. If a copy of the MPL was not distributed with this
5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
7 #include "mozilla/BasePrincipal.h"
8 #include "nsCycleCollectionParticipant.h"
9 #include "nsIBrowserDOMWindow.h"
10 #include "nsFrameLoaderOwner.h"
11 #include "nsIContentSecurityPolicy.h"
12 #include "nsIPrincipal.h"
13 #include "nsIReferrerInfo.h"
14 #include "nsString.h"
16 namespace mozilla {
17 class OriginAttributes;
18 namespace dom {
19 class Element;
20 } // namespace dom
21 } // namespace mozilla
23 class nsOpenURIInFrameParams final : public nsIOpenURIInFrameParams {
24 public:
25 NS_DECL_CYCLE_COLLECTION_CLASS(nsOpenURIInFrameParams)
26 NS_DECL_CYCLE_COLLECTING_ISUPPORTS
27 NS_DECL_NSIOPENURIINFRAMEPARAMS
29 explicit nsOpenURIInFrameParams(nsIOpenWindowInfo* aOpenWindowInfo,
30 mozilla::dom::Element* aOpener);
32 private:
33 ~nsOpenURIInFrameParams();
35 nsCOMPtr<nsIOpenWindowInfo> mOpenWindowInfo;
36 RefPtr<mozilla::dom::Element> mOpenerBrowser;
37 nsCOMPtr<nsIReferrerInfo> mReferrerInfo;
38 nsCOMPtr<nsIPrincipal> mTriggeringPrincipal;
39 nsCOMPtr<nsIContentSecurityPolicy> mCsp;