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"
15 class nsIContentSecurityPolicy
;
18 class OriginAttributes
;
22 } // namespace mozilla
24 class nsOpenURIInFrameParams final
: public nsIOpenURIInFrameParams
{
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
);
34 ~nsOpenURIInFrameParams();
36 nsCOMPtr
<nsIOpenWindowInfo
> mOpenWindowInfo
;
37 RefPtr
<mozilla::dom::Element
> mOpenerBrowser
;
38 nsCOMPtr
<nsIReferrerInfo
> mReferrerInfo
;
39 nsCOMPtr
<nsIPrincipal
> mTriggeringPrincipal
;
40 nsCOMPtr
<nsIContentSecurityPolicy
> mCsp
;