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

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

Issue 2511313002: transferSize implementation (Closed)
Patch Set: addressed comments 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
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 6d2b7203d38ea64aad0f4975b1221ddff93d7473..c505b72ac8e8bfec9bf4a9453a7c596e9a35f1fb 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(); }
@@ -177,7 +179,7 @@ class CORE_EXPORT ResourceFetcher
Resource* createResourceForLoading(FetchRequest&,
const String& charset,
const ResourceFactory&);
- void storeResourceTimingInitiatorInformation(Resource*);
+ void storePerformanceTimingInitiatorInformation(Resource*);
ResourceLoadPriority computeLoadPriority(Resource::Type,
const FetchRequest&,
ResourcePriority::VisibilityStatus);
@@ -235,6 +237,11 @@ class CORE_EXPORT ResourceFetcher
HeapHashMap<Member<Resource>, std::unique_ptr<ResourceTimingInfo>>;
ResourceTimingInfoMap m_resourceTimingInfoMap;
+ // Find out whether a map is an overkill in here, crbugs/669300.
+ using MainResourceTimingInfoMap =
+ HashMap<unsigned long, std::unique_ptr<ResourceTimingInfo>>;
+ MainResourceTimingInfoMap m_mainResourceTimingInfoMap;
kinuko 2016/11/30 07:34:54 Again my gut feeling is we probably wouldn't need
sunjian 2016/12/01 21:21:59 Done.
+
Vector<std::unique_ptr<ResourceTimingInfo>> m_scheduledResourceTimingReports;
HeapHashSet<Member<ResourceLoader>> m_loaders;

Powered by Google App Engine
This is Rietveld 408576698