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

Unified Diff: third_party/WebKit/Source/core/loader/FrameFetchContext.cpp

Issue 2925963002: Create NetworkQuietDetector. (Closed)
Patch Set: Add kNetworkIdle state. Created 3 years, 6 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/core/loader/FrameFetchContext.cpp
diff --git a/third_party/WebKit/Source/core/loader/FrameFetchContext.cpp b/third_party/WebKit/Source/core/loader/FrameFetchContext.cpp
index 92e76b7a0daddc290f6d349084370051bb31f948..9082c4a9b0f4fbd86b39ca4625730d1f7ead7c20 100644
--- a/third_party/WebKit/Source/core/loader/FrameFetchContext.cpp
+++ b/third_party/WebKit/Source/core/loader/FrameFetchContext.cpp
@@ -54,6 +54,7 @@
#include "core/loader/FrameLoader.h"
#include "core/loader/MixedContentChecker.h"
#include "core/loader/NetworkHintsInterface.h"
+#include "core/loader/NetworkQuietDetector.h"
#include "core/loader/PingLoader.h"
#include "core/loader/ProgressTracker.h"
#include "core/loader/SubresourceFilter.h"
@@ -501,6 +502,7 @@ void FrameFetchContext::DidLoadResource(Resource* resource) {
if (!GetDocument())
return;
FirstMeaningfulPaintDetector::From(*GetDocument()).CheckNetworkStable();
+ NetworkQuietDetector::From(*GetDocument()).CheckNetworkStable();
if (resource->IsLoadEventBlockingResourceType())
GetDocument()->CheckCompleted();
}

Powered by Google App Engine
This is Rietveld 408576698