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

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

Issue 2511313002: transferSize implementation (Closed)
Patch Set: Got rid of DCHECKS cause they don't stand any more 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 4f6734398b67a731d7934b7946e16f97feda4131..37aa8ff52ec678565b98528cfdb14aedbbe6459a 100644
--- a/third_party/WebKit/Source/core/fetch/ResourceFetcher.h
+++ b/third_party/WebKit/Source/core/fetch/ResourceFetcher.h
@@ -159,6 +159,9 @@ class CORE_EXPORT ResourceFetcher
void reloadLoFiImages();
+ // Calling this method before main resource is fetched is invalid.
Yoav Weiss 2016/12/03 19:55:35 Nit: spurious space
sunjian 2016/12/07 19:09:50 Done.
+ ResourceTimingInfo* getMainResourceTimingInfo();
+
// This is only exposed for testing purposes.
HeapListHashSet<Member<Resource>>* preloads() { return m_preloads.get(); }
@@ -171,7 +174,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);
@@ -229,6 +232,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