summaryrefslogtreecommitdiffstats
path: root/netwerk/protocol/http/AlternateServices.h
diff options
context:
space:
mode:
Diffstat (limited to 'netwerk/protocol/http/AlternateServices.h')
-rw-r--r--netwerk/protocol/http/AlternateServices.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/netwerk/protocol/http/AlternateServices.h b/netwerk/protocol/http/AlternateServices.h
index 4de5a281c0..02b45f7bee 100644
--- a/netwerk/protocol/http/AlternateServices.h
+++ b/netwerk/protocol/http/AlternateServices.h
@@ -23,6 +23,7 @@ https://tools.ietf.org/html/draft-ietf-httpbis-alt-svc-06
#ifndef mozilla_net_AlternateServices_h
#define mozilla_net_AlternateServices_h
+#include "nsHttp.h"
#include "nsRefPtrHashtable.h"
#include "nsString.h"
#include "nsIDataStorage.h"
@@ -53,7 +54,8 @@ class AltSvcMapping {
bool privateBrowsing, uint32_t expiresAt,
const nsACString& alternateHost, int32_t alternatePort,
const nsACString& npnToken,
- const OriginAttributes& originAttributes, bool aIsHttp3);
+ const OriginAttributes& originAttributes, bool aIsHttp3,
+ SupportedAlpnRank aRank);
public:
AltSvcMapping(nsIDataStorage* storage, int32_t storageEpoch,
@@ -103,6 +105,7 @@ class AltSvcMapping {
bool IsHttp3() { return mIsHttp3; }
const nsCString& NPNToken() const { return mNPNToken; }
+ SupportedAlpnRank AlpnRank() const { return mAlpnRank; }
private:
virtual ~AltSvcMapping() = default;
@@ -138,6 +141,7 @@ class AltSvcMapping {
bool mSyncOnlyOnSuccess{false};
bool mIsHttp3{false};
+ SupportedAlpnRank mAlpnRank{SupportedAlpnRank::NOT_SUPPORTED};
};
class AltSvcOverride : public nsIInterfaceRequestor,