Source code

Revision control

Other Tools

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 "nsIRedirectHistoryEntry.h"
9
10
class nsIURI;
11
class nsIPrincipal;
12
13
namespace mozilla {
14
namespace net {
15
16
class nsRedirectHistoryEntry final : public nsIRedirectHistoryEntry {
17
public:
18
NS_DECL_THREADSAFE_ISUPPORTS
19
NS_DECL_NSIREDIRECTHISTORYENTRY
20
21
nsRedirectHistoryEntry(nsIPrincipal* aPrincipal, nsIURI* aReferrer,
22
const nsACString& aRemoteAddress);
23
24
private:
25
~nsRedirectHistoryEntry() = default;
26
27
nsCOMPtr<nsIPrincipal> mPrincipal;
28
nsCOMPtr<nsIURI> mReferrer;
29
nsCString mRemoteAddress;
30
};
31
32
} // namespace net
33
} // namespace mozilla
34
35
#endif // nsRedirectHistoryEntry_h__