summaryrefslogtreecommitdiffstats
path: root/netwerk/base/nsRedirectHistoryEntry.h
blob: bc916062a87cc60aceb7df6a2bcbb4d989895e32 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

#ifndef nsRedirectHistoryEntry_h__
#define nsRedirectHistoryEntry_h__

#include "nsCOMPtr.h"
#include "nsString.h"
#include "nsIRedirectHistoryEntry.h"

class nsIURI;
class nsIPrincipal;

namespace mozilla {
namespace net {

class nsRedirectHistoryEntry final : public nsIRedirectHistoryEntry {
 public:
  NS_DECL_THREADSAFE_ISUPPORTS
  NS_DECL_NSIREDIRECTHISTORYENTRY

  nsRedirectHistoryEntry(nsIPrincipal* aPrincipal, nsIURI* aReferrer,
                         const nsACString& aRemoteAddress);

 private:
  ~nsRedirectHistoryEntry() = default;

  nsCOMPtr<nsIPrincipal> mPrincipal;
  nsCOMPtr<nsIURI> mReferrer;
  nsCString mRemoteAddress;
};

}  // namespace net
}  // namespace mozilla

#endif  // nsRedirectHistoryEntry_h__