nsRedirectHistoryEntry.h (939B)
1 /* This Source Code Form is subject to the terms of the Mozilla Public 2 * License, v. 2.0. If a copy of the MPL was not distributed with this 3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 4 5 #ifndef nsRedirectHistoryEntry_h__ 6 #define nsRedirectHistoryEntry_h__ 7 8 #include "nsCOMPtr.h" 9 #include "nsString.h" 10 #include "nsIRedirectHistoryEntry.h" 11 12 class nsIURI; 13 class nsIPrincipal; 14 15 namespace mozilla { 16 namespace net { 17 18 class nsRedirectHistoryEntry final : public nsIRedirectHistoryEntry { 19 public: 20 NS_DECL_THREADSAFE_ISUPPORTS 21 NS_DECL_NSIREDIRECTHISTORYENTRY 22 23 nsRedirectHistoryEntry(nsIPrincipal* aPrincipal, nsIURI* aReferrer, 24 const nsACString& aRemoteAddress); 25 26 private: 27 ~nsRedirectHistoryEntry() = default; 28 29 nsCOMPtr<nsIPrincipal> mPrincipal; 30 nsCOMPtr<nsIURI> mReferrer; 31 nsCString mRemoteAddress; 32 }; 33 34 } // namespace net 35 } // namespace mozilla 36 37 #endif // nsRedirectHistoryEntry_h__