summaryrefslogtreecommitdiffstats
path: root/toolkit/components/places/History.h
diff options
context:
space:
mode:
Diffstat (limited to 'toolkit/components/places/History.h')
-rw-r--r--toolkit/components/places/History.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/toolkit/components/places/History.h b/toolkit/components/places/History.h
index 03a31186fd..a5007082cd 100644
--- a/toolkit/components/places/History.h
+++ b/toolkit/components/places/History.h
@@ -196,6 +196,16 @@ class History final : public BaseHistory,
};
nsTHashMap<nsURIHashKey, RecentURIVisit> mRecentlyVisitedURIs;
+
+ struct OriginFloodingRestriction {
+ TimeStamp mLastVisitTimeStamp;
+ uint32_t mExpireIntervalSeconds;
+ uint32_t mAllowedVisitCount;
+ };
+ nsTHashMap<nsCStringHashKey, OriginFloodingRestriction>
+ mOriginFloodingRestrictions;
+ void UpdateOriginFloodingRestriction(nsACString& aOrigin);
+ bool IsRestrictedOrigin(nsACString& aOrigin);
};
} // namespace mozilla::places