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

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

Issue 2039363003: FirstMeaningfulPaint UMA (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: ready for review Created 4 years, 5 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 f873f582a862959088feae2731098e1add6b3b7e..2f33906db9e24110bf686aba183006aa9ce85b9f 100644
--- a/third_party/WebKit/Source/core/loader/FrameFetchContext.cpp
+++ b/third_party/WebKit/Source/core/loader/FrameFetchContext.cpp
@@ -58,6 +58,7 @@
#include "core/loader/appcache/ApplicationCacheHost.h"
#include "core/page/NetworkStateNotifier.h"
#include "core/page/Page.h"
+#include "core/paint/FirstMeaningfulPaintDetector.h"
#include "core/svg/graphics/SVGImageChromeClient.h"
#include "core/timing/DOMWindowPerformance.h"
#include "core/timing/Performance.h"
@@ -414,6 +415,8 @@ void FrameFetchContext::didLoadResource(Resource* resource)
{
if (resource->isLoadEventBlockingResourceType())
frame()->loader().checkCompleted();
+ if (m_document)
+ FirstMeaningfulPaintDetector::from(*m_document).checkNetworkStable();
kouhei (in TOK) 2016/07/28 03:45:04 I think we can add a hook in FrameLoader::checkCom
Kunihiko Sakamoto 2016/08/01 08:52:07 I wanted to take into account all loading activiti
}
void FrameFetchContext::addResourceTiming(const ResourceTimingInfo& info)

Powered by Google App Engine
This is Rietveld 408576698