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

Unified Diff: content/public/renderer/document_state.h

Issue 18601004: Add the UMA PLT.BeginToFinish{,Doc}_AfterPreconnectRequest (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix unittest compilation failure Created 7 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: content/public/renderer/document_state.h
diff --git a/content/public/renderer/document_state.h b/content/public/renderer/document_state.h
index c7829d60ec308395075fdefa6a3e32c11a03e291..40a5f4241d787547cae23ae3fb4366f90503e55e 100644
--- a/content/public/renderer/document_state.h
+++ b/content/public/renderer/document_state.h
@@ -186,6 +186,11 @@ class CONTENT_EXPORT DocumentState
return was_referred_by_prefetcher_;
}
+ void set_was_after_preconnect_request(bool value) {
+ was_after_preconnect_request_ = value;
+ }
+ bool was_after_preconnect_request() { return was_after_preconnect_request_; }
+
// Record the nature of this load, for use when histogramming page load times.
LoadType load_type() const { return load_type_; }
void set_load_type(LoadType load_type) { load_type_ = load_type; }
@@ -220,6 +225,7 @@ class CONTENT_EXPORT DocumentState
// A prefetcher is a page that contains link rel=prefetch elements.
bool was_prefetcher_;
bool was_referred_by_prefetcher_;
+ bool was_after_preconnect_request_;
LoadType load_type_;

Powered by Google App Engine
This is Rietveld 408576698