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

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

Issue 2511313002: transferSize implementation (Closed)
Patch Set: addressed comments Created 4 years 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 10991d53bc1c1f9a5faf09c75fcd50f4e2971b0d..4727b7210d7a26a38744ad57638d6b1dd92636d3 100644
--- a/third_party/WebKit/Source/core/fetch/ResourceFetcher.h
+++ b/third_party/WebKit/Source/core/fetch/ResourceFetcher.h
@@ -164,6 +164,9 @@ class CORE_EXPORT ResourceFetcher
void reloadLoFiImages();
+ // Calling this method before main resource is fetched is invalid.
+ ResourceTimingInfo* getMainResourceTimingInfo();
+
// This is only exposed for testing purposes.
HeapListHashSet<Member<Resource>>* preloads() { return m_preloads.get(); }
@@ -176,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);
@@ -234,6 +237,9 @@ class CORE_EXPORT ResourceFetcher
HeapHashMap<Member<Resource>, std::unique_ptr<ResourceTimingInfo>>;
ResourceTimingInfoMap m_resourceTimingInfoMap;
+ unsigned long m_mainResourceIdentifier;
+ std::unique_ptr<ResourceTimingInfo> m_mainResourceTimingInfo;
+
Vector<std::unique_ptr<ResourceTimingInfo>> m_scheduledResourceTimingReports;
HeapHashSet<Member<ResourceLoader>> m_loaders;

Powered by Google App Engine
This is Rietveld 408576698