Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(139)

Unified Diff: third_party/WebKit/Source/platform/loader/fetch/ResourceFetcher.cpp

Issue 2711893002: Loosen FirstMeaningfulPaint UMA network-idle heuristics (Closed)
Patch Set: Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/platform/loader/fetch/ResourceFetcher.cpp
diff --git a/third_party/WebKit/Source/platform/loader/fetch/ResourceFetcher.cpp b/third_party/WebKit/Source/platform/loader/fetch/ResourceFetcher.cpp
index fb2bdcf43f32b78ff0e0abbb5fe9f33539a82f32..fc563a9d2a56e0220a48b42944a4c070874d61a8 100644
--- a/third_party/WebKit/Source/platform/loader/fetch/ResourceFetcher.cpp
+++ b/third_party/WebKit/Source/platform/loader/fetch/ResourceFetcher.cpp
@@ -1049,12 +1049,12 @@ void ResourceFetcher::clearContext() {
m_context.clear();
}
-int ResourceFetcher::requestCount() const {
+int ResourceFetcher::blockingRequestCount() const {
return m_loaders.size();
}
-bool ResourceFetcher::hasPendingRequest() const {
- return m_loaders.size() > 0 || m_nonBlockingLoaders.size() > 0;
+int ResourceFetcher::nonblockingRequestCount() const {
+ return m_nonBlockingLoaders.size();
}
void ResourceFetcher::preloadStarted(Resource* resource) {

Powered by Google App Engine
This is Rietveld 408576698