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

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

Issue 2647643004: Report nav timing 2 instance as soon as it's requested. (Closed)
Patch Set: got rid of test cases that don't apply anymore Created 3 years, 11 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.h
diff --git a/third_party/WebKit/Source/platform/loader/fetch/ResourceFetcher.h b/third_party/WebKit/Source/platform/loader/fetch/ResourceFetcher.h
index 49a1456172a361cbcf63a4852d7ebae3259d9d48..1743cfca3acaaf8e58da3665f89c010c54a8f4cd 100644
--- a/third_party/WebKit/Source/platform/loader/fetch/ResourceFetcher.h
+++ b/third_party/WebKit/Source/platform/loader/fetch/ResourceFetcher.h
@@ -142,7 +142,8 @@ class PLATFORM_EXPORT ResourceFetcher
void reloadLoFiImages();
// Calling this method before main document resource is fetched is invalid.
- ResourceTimingInfo* getNavigationTimingInfo();
+ // This method should only be called once.
+ std::unique_ptr<ResourceTimingInfo> getNavigationTimingInfo();
// This is only exposed for testing purposes.
HeapListHashSet<Member<Resource>>* preloads() { return m_preloads.get(); }

Powered by Google App Engine
This is Rietveld 408576698