summaryrefslogtreecommitdiffstats
path: root/image/imgLoader.h
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 01:13:33 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 01:13:33 +0000
commit086c044dc34dfc0f74fbe41f4ecb402b2cd34884 (patch)
treea4f824bd33cb075dd5aa3eb5a0a94af221bbe83a /image/imgLoader.h
parentAdding debian version 124.0.1-1. (diff)
downloadfirefox-086c044dc34dfc0f74fbe41f4ecb402b2cd34884.tar.xz
firefox-086c044dc34dfc0f74fbe41f4ecb402b2cd34884.zip
Merging upstream version 125.0.1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'image/imgLoader.h')
-rw-r--r--image/imgLoader.h24
1 files changed, 13 insertions, 11 deletions
diff --git a/image/imgLoader.h b/image/imgLoader.h
index c515506790..7423517925 100644
--- a/image/imgLoader.h
+++ b/image/imgLoader.h
@@ -37,6 +37,7 @@ class imgMemoryReporter;
namespace mozilla {
namespace dom {
class Document;
+enum class FetchPriority : uint8_t;
}
} // namespace mozilla
@@ -238,7 +239,8 @@ class imgLoader final : public imgILoader,
nsLoadFlags aLoadFlags, nsISupports* aCacheKey,
nsContentPolicyType aContentPolicyType, const nsAString& initiatorType,
bool aUseUrgentStartForChannel, bool aLinkPreload,
- uint64_t aEarlyHintPreloaderId, imgRequestProxy** _retval);
+ uint64_t aEarlyHintPreloaderId,
+ mozilla::dom::FetchPriority aFetchPriority, imgRequestProxy** _retval);
[[nodiscard]] nsresult LoadImageWithChannel(
nsIChannel* channel, imgINotificationObserver* aObserver,
@@ -349,7 +351,8 @@ class imgLoader final : public imgILoader,
bool aCanMakeNewChannel, bool* aNewChannelCreated,
imgRequestProxy** aProxyRequest,
nsIPrincipal* aTriggeringPrincipal, mozilla::CORSMode,
- bool aLinkPreload, uint64_t aEarlyHintPreloaderId);
+ bool aLinkPreload, uint64_t aEarlyHintPreloaderId,
+ mozilla::dom::FetchPriority aFetchPriority);
bool ValidateRequestWithNewChannel(
imgRequest* request, nsIURI* aURI, nsIURI* aInitialDocumentURI,
@@ -359,15 +362,14 @@ class imgLoader final : public imgILoader,
nsLoadFlags aLoadFlags, nsContentPolicyType aContentPolicyType,
imgRequestProxy** aProxyRequest, nsIPrincipal* aLoadingPrincipal,
mozilla::CORSMode, bool aLinkPreload, uint64_t aEarlyHintPreloaderId,
- bool* aNewChannelCreated);
-
- void NotifyObserversForCachedImage(imgCacheEntry* aEntry, imgRequest* request,
- nsIURI* aURI,
- nsIReferrerInfo* aReferrerInfo,
- mozilla::dom::Document* aLoadingDocument,
- nsIPrincipal* aLoadingPrincipal,
- mozilla::CORSMode,
- uint64_t aEarlyHintPreloaderId);
+ mozilla::dom::FetchPriority aFetchPriority, bool* aNewChannelCreated);
+
+ void NotifyObserversForCachedImage(
+ imgCacheEntry* aEntry, imgRequest* request, nsIURI* aURI,
+ nsIReferrerInfo* aReferrerInfo, mozilla::dom::Document* aLoadingDocument,
+ nsIPrincipal* aTriggeringPrincipal, mozilla::CORSMode,
+ uint64_t aEarlyHintPreloaderId,
+ mozilla::dom::FetchPriority aFetchPriority);
// aURI may be different from imgRequest's URI in the case of blob URIs, as we
// can share requests with different URIs.
nsresult CreateNewProxyForRequest(imgRequest* aRequest, nsIURI* aURI,