|
93 | 93 | #include <wtf/text/MakeString.h> |
94 | 94 | #include <wtf/text/WTFString.h> |
95 | 95 |
|
96 | | -#if PLATFORM(QT) |
97 | | -#include "ResourceLoadTrackerQt.h" |
98 | | -#endif |
99 | 96 |
|
100 | 97 | #if ENABLE(APPLICATION_MANIFEST) |
101 | 98 | #include "CachedApplicationManifest.h" |
@@ -1126,10 +1123,6 @@ ResourceErrorOr<CachedResourceHandle<CachedResource>> CachedResourceLoader::requ |
1126 | 1123 |
|
1127 | 1124 | LOG(ResourceLoading, "CachedResourceLoader::requestResource '%.255s', charset '%s', priority=%d, forPreload=%u", url.stringCenterEllipsizedToLength().latin1().data(), request.charset().latin1().data(), request.priority() ? static_cast<int>(request.priority().value()) : -1, forPreload == ForPreload::Yes); |
1128 | 1125 |
|
1129 | | -#if PLATFORM(QT) |
1130 | | - ResourceLoadTrackerQt::instance().trackRequestStarted(url, type, request, frame.ptr()); |
1131 | | -#endif |
1132 | | - |
1133 | 1126 | request.setDestinationIfNotSet(destinationForType(type, frame)); |
1134 | 1127 |
|
1135 | 1128 | // Entry point to https://fetch.spec.whatwg.org/#main-fetch. |
@@ -1350,9 +1343,6 @@ ResourceErrorOr<CachedResourceHandle<CachedResource>> CachedResourceLoader::requ |
1350 | 1343 | if (auto metricsFromResource = resource->takeNetworkLoadMetrics(); metricsFromResource && documentLoader && metricsFromResource->redirectStart >= documentLoader->timing().timeOrigin()) |
1351 | 1344 | metrics = WTFMove(metricsFromResource); |
1352 | 1345 | auto resourceTiming = ResourceTiming::fromMemoryCache(url, request.initiatorType(), loadTiming, resource->response(), metrics ? *metrics : NetworkLoadMetrics::emptyMetrics(), *request.protectedOrigin()); |
1353 | | -#if PLATFORM(QT) |
1354 | | - ResourceLoadTrackerQt::instance().trackMemoryCacheHit(url, resource->encodedSize(), metrics ? *metrics : NetworkLoadMetrics::emptyMetrics(), frame.ptr()); |
1355 | | -#endif |
1356 | 1346 | if (initiatorContext == InitiatorContext::Worker) |
1357 | 1347 | downcast<CachedRawResource>(resource.get())->finishedTimingForWorkerLoad(WTFMove(resourceTiming)); |
1358 | 1348 | else { |
@@ -1805,10 +1795,6 @@ void CachedResourceLoader::decrementRequestCount(const CachedResource& resource) |
1805 | 1795 |
|
1806 | 1796 | --m_requestCount; |
1807 | 1797 | ASSERT(m_requestCount > -1); |
1808 | | - |
1809 | | -#if PLATFORM(QT) |
1810 | | - ResourceLoadTrackerQt::instance().trackRequestFinished(resource, frame()); |
1811 | | -#endif |
1812 | 1798 | } |
1813 | 1799 |
|
1814 | 1800 | void CachedResourceLoader::notifyFinished(const CachedResource& resource) |
|
0 commit comments