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

Unified Diff: Source/core/loader/cache/CachedResourceLoader.h

Issue 16950017: Reland [Resource Timing] Expose redirect timing information (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebase Created 7 years, 5 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
« no previous file with comments | « Source/core/loader/ResourceLoaderHost.h ('k') | Source/core/loader/cache/CachedResourceLoader.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/loader/cache/CachedResourceLoader.h
diff --git a/Source/core/loader/cache/CachedResourceLoader.h b/Source/core/loader/cache/CachedResourceLoader.h
index b0b05bf06725359519155c540d4ab27c24c773d6..2682e9ed44ac6fe4321f000e854d12531a49ef3e 100644
--- a/Source/core/loader/cache/CachedResourceLoader.h
+++ b/Source/core/loader/cache/CachedResourceLoader.h
@@ -56,6 +56,7 @@ class Frame;
class FrameLoader;
class ImageLoader;
class KURL;
+class ResourceTimingInfo;
// The CachedResourceLoader provides a per-context interface to the MemoryCache
// and enforces a bunch of security checks and rules for resource revalidation.
@@ -132,6 +133,7 @@ public:
virtual void incrementRequestCount(const CachedResource*) OVERRIDE;
virtual void decrementRequestCount(const CachedResource*) OVERRIDE;
virtual void didLoadResource(CachedResource*) OVERRIDE;
+ virtual void redirectReceived(CachedResource*, const ResourceResponse&) OVERRIDE;
virtual void didFinishLoading(const CachedResource*, double finishTime, const ResourceLoaderOptions&) OVERRIDE;
virtual void didChangeLoadingPriority(const CachedResource*, ResourceLoadPriority) OVERRIDE;
virtual void didFailLoading(const CachedResource*, const ResourceError&, const ResourceLoaderOptions&) OVERRIDE;
@@ -196,7 +198,8 @@ private:
Timer<CachedResourceLoader> m_garbageCollectDocumentResourcesTimer;
- HashMap<CachedResource*, CachedResourceInitiatorInfo> m_initiatorMap;
+ typedef HashMap<CachedResource*, RefPtr<ResourceTimingInfo> > ResourceTimingInfoMap;
+ ResourceTimingInfoMap m_resourceTimingInfoMap;
// 29 bits left
bool m_autoLoadImages : 1;
« no previous file with comments | « Source/core/loader/ResourceLoaderHost.h ('k') | Source/core/loader/cache/CachedResourceLoader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698