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

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

Issue 2511313002: transferSize implementation (Closed)
Patch Set: add nullptr checking against m_mainResource Created 4 years, 1 month 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/ResourceFetcher.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/ResourceFetcher.h
diff --git a/third_party/WebKit/Source/core/fetch/ResourceFetcher.h b/third_party/WebKit/Source/core/fetch/ResourceFetcher.h
index 09e983f8154803853fd1bab6cc1dc6471809240e..688ae7beca9f6b877cc300fa0d6684acce879f85 100644
--- a/third_party/WebKit/Source/core/fetch/ResourceFetcher.h
+++ b/third_party/WebKit/Source/core/fetch/ResourceFetcher.h
@@ -165,6 +165,8 @@ class CORE_EXPORT ResourceFetcher
void reloadLoFiImages();
+ ResourceTimingInfo* getMainResourceTimingInfo(unsigned long identifier);
+
// This is only exposed for testing purposes.
HeapListHashSet<Member<Resource>>* preloads() { return m_preloads.get(); }
@@ -235,6 +237,10 @@ class CORE_EXPORT ResourceFetcher
HeapHashMap<Member<Resource>, std::unique_ptr<ResourceTimingInfo>>;
ResourceTimingInfoMap m_resourceTimingInfoMap;
+ using MainResourceTimingInfoMap =
+ HashMap<unsigned long, std::unique_ptr<ResourceTimingInfo>>;
panicker 2016/11/22 02:17:42 HeapHashMap?
sunjian 2016/11/22 02:39:20 Talked offline. Agreed that no need to use a HeapH
+ MainResourceTimingInfoMap m_mainResourceTimingInfoMap;
+
Vector<std::unique_ptr<ResourceTimingInfo>> m_scheduledResourceTimingReports;
HeapHashSet<Member<ResourceLoader>> m_loaders;
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698