nsOpenURIInFrameParams.h (1323B)
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/. */ 6 7 #include "mozilla/BasePrincipal.h" 8 #include "nsCycleCollectionParticipant.h" 9 #include "nsFrameLoaderOwner.h" 10 #include "nsIBrowserDOMWindow.h" 11 #include "nsIPrincipal.h" 12 #include "nsIReferrerInfo.h" 13 #include "nsString.h" 14 15 class nsIContentSecurityPolicy; 16 17 namespace mozilla { 18 class OriginAttributes; 19 namespace dom { 20 class Element; 21 } // namespace dom 22 } // namespace mozilla 23 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 29 30 explicit nsOpenURIInFrameParams(nsIOpenWindowInfo* aOpenWindowInfo, 31 mozilla::dom::Element* aOpener); 32 33 private: 34 ~nsOpenURIInFrameParams(); 35 36 nsCOMPtr<nsIOpenWindowInfo> mOpenWindowInfo; 37 RefPtr<mozilla::dom::Element> mOpenerBrowser; 38 nsCOMPtr<nsIReferrerInfo> mReferrerInfo; 39 nsCOMPtr<nsIPrincipal> mTriggeringPrincipal; 40 nsCOMPtr<nsIPolicyContainer> mPolicyContainer; 41 };