summaryrefslogtreecommitdiffstats
path: root/docshell/base/nsDocShellLoadState.h
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-20 04:01:55 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-20 04:01:55 +0000
commit0409b8aa646ea5192cd91976a89f71024129344c (patch)
treef95ba411e9e8b81d511c448d9fc010a876e8b481 /docshell/base/nsDocShellLoadState.h
parentAdding upstream version 127.0. (diff)
downloadfirefox-0409b8aa646ea5192cd91976a89f71024129344c.tar.xz
firefox-0409b8aa646ea5192cd91976a89f71024129344c.zip
Adding upstream version 127.0.1.upstream/127.0.1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'docshell/base/nsDocShellLoadState.h')
-rw-r--r--docshell/base/nsDocShellLoadState.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/docshell/base/nsDocShellLoadState.h b/docshell/base/nsDocShellLoadState.h
index 8a8aad5a2c..8b1c430128 100644
--- a/docshell/base/nsDocShellLoadState.h
+++ b/docshell/base/nsDocShellLoadState.h
@@ -24,6 +24,7 @@ class nsIURI;
class nsIDocShell;
class nsIChannel;
class nsIReferrerInfo;
+struct HTTPSFirstDowngradeData;
namespace mozilla {
class OriginAttributes;
template <typename, class>
@@ -148,6 +149,11 @@ class nsDocShellLoadState final {
void SetIsExemptFromHTTPSFirstMode(bool aIsExemptFromHTTPSFirstMode);
+ RefPtr<HTTPSFirstDowngradeData> GetHttpsFirstDowngradeData() const;
+
+ void SetHttpsFirstDowngradeData(
+ RefPtr<HTTPSFirstDowngradeData> const& aHttpsFirstTelemetryData);
+
bool OriginalFrameSrc() const;
void SetOriginalFrameSrc(bool aOriginalFrameSrc);
@@ -484,6 +490,10 @@ class nsDocShellLoadState final {
// will be exempt from HTTPS-Only-Mode upgrades.
bool mIsExemptFromHTTPSFirstMode;
+ // If set, this load is a HTTPS-First downgrade, and the downgrade data will
+ // be submitted to telemetry later if the load succeeds.
+ RefPtr<HTTPSFirstDowngradeData> mHttpsFirstDowngradeData;
+
// If this attribute is true, this load corresponds to a frame
// element loading its original src (or srcdoc) attribute.
bool mOriginalFrameSrc;