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

Unified Diff: third_party/WebKit/Source/core/fetch/FetchRequest.h

Issue 1987013002: Add UMA to track time between preload discovery and reference (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@preload_timing_uma
Patch Set: Include preloads generated by LinkLoader Created 4 years, 7 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/fetch/FetchRequest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/fetch/FetchRequest.h
diff --git a/third_party/WebKit/Source/core/fetch/FetchRequest.h b/third_party/WebKit/Source/core/fetch/FetchRequest.h
index 1518bbd593a38d4dd9b6d4db3f8d170cc3020a57..990df2e4e6a0173133ee2c32f9d49517e7d9772c 100644
--- a/third_party/WebKit/Source/core/fetch/FetchRequest.h
+++ b/third_party/WebKit/Source/core/fetch/FetchRequest.h
@@ -85,7 +85,13 @@ public:
ClientHintsPreferences& clientHintsPreferences() { return m_clientHintPreferences; }
bool forPreload() const { return m_forPreload; }
- void setForPreload(bool forPreload) { m_forPreload = forPreload; }
+ void setForPreload(bool forPreload, double discoveryTime = 0)
Yoav Weiss 2016/05/31 18:36:18 maybe move the implementation to the cpp file, as
Charlie Harrison 2016/05/31 19:06:06 Done.
+ {
+ m_forPreload = forPreload;
+ m_preloadDiscoveryTime = discoveryTime;
+ }
+
+ double preloadDiscoveryTime() { return m_preloadDiscoveryTime; }
bool isLinkPreload() { return m_linkPreload; }
void setLinkPreload(bool isLinkPreload) { m_linkPreload = isLinkPreload; }
@@ -104,6 +110,7 @@ private:
ResourceLoadPriority m_priority;
bool m_forPreload;
bool m_linkPreload;
+ double m_preloadDiscoveryTime;
DeferOption m_defer;
OriginRestriction m_originRestriction;
ResourceWidth m_resourceWidth;
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/fetch/FetchRequest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698