Backed out changeset b462e7b742d8 (bug 1908261) for causing multiple reftest failures...
[gecko.git] / dom / base / nsOpenURIInFrameParams.h
blob3324155977bf526620b2c5f0b48a867277b40ace
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 "nsIPrincipal.h"
12 #include "nsIReferrerInfo.h"
13 #include "nsString.h"
15 class nsIContentSecurityPolicy;
17 namespace mozilla {
18 class OriginAttributes;
19 namespace dom {
20 class Element;
21 } // namespace dom
22 } // namespace mozilla
24 class nsOpenURIInFrameParams final : public nsIOpenURIInFrameParams {
25 public:
26 NS_DECL_CYCLE_COLLECTION_CLASS(nsOpenURIInFrameParams)
27 NS_DECL_CYCLE_COLLECTING_ISUPPORTS
28 NS_DECL_NSIOPENURIINFRAMEPARAMS
30 explicit nsOpenURIInFrameParams(nsIOpenWindowInfo* aOpenWindowInfo,
31 mozilla::dom::Element* aOpener);
33 private:
34 ~nsOpenURIInFrameParams();
36 nsCOMPtr<nsIOpenWindowInfo> mOpenWindowInfo;
37 RefPtr<mozilla::dom::Element> mOpenerBrowser;
38 nsCOMPtr<nsIReferrerInfo> mReferrerInfo;
39 nsCOMPtr<nsIPrincipal> mTriggeringPrincipal;
40 nsCOMPtr<nsIContentSecurityPolicy> mCsp;