Backed out changeset 88fbb17e3c20 (bug 1865637) for causing animation related mochite...
[gecko.git] / netwerk / base / nsRedirectHistoryEntry.h
blobbc916062a87cc60aceb7df6a2bcbb4d989895e32
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/. */
5 #ifndef nsRedirectHistoryEntry_h__
6 #define nsRedirectHistoryEntry_h__
8 #include "nsCOMPtr.h"
9 #include "nsString.h"
10 #include "nsIRedirectHistoryEntry.h"
12 class nsIURI;
13 class nsIPrincipal;
15 namespace mozilla {
16 namespace net {
18 class nsRedirectHistoryEntry final : public nsIRedirectHistoryEntry {
19 public:
20 NS_DECL_THREADSAFE_ISUPPORTS
21 NS_DECL_NSIREDIRECTHISTORYENTRY
23 nsRedirectHistoryEntry(nsIPrincipal* aPrincipal, nsIURI* aReferrer,
24 const nsACString& aRemoteAddress);
26 private:
27 ~nsRedirectHistoryEntry() = default;
29 nsCOMPtr<nsIPrincipal> mPrincipal;
30 nsCOMPtr<nsIURI> mReferrer;
31 nsCString mRemoteAddress;
34 } // namespace net
35 } // namespace mozilla
37 #endif // nsRedirectHistoryEntry_h__