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

Unified Diff: Source/core/fetch/ResourceFetcher.cpp

Issue 313043002: Notify DevTools about cached resources when stylesheet is restored. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Polish Created 6 years, 6 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/fetch/ResourceFetcher.cpp
diff --git a/Source/core/fetch/ResourceFetcher.cpp b/Source/core/fetch/ResourceFetcher.cpp
index fcc979a7fda1e47a351196d734270365a62ad673..dbd1bf89aff850a428698a083534ba5d3c04516a 100644
--- a/Source/core/fetch/ResourceFetcher.cpp
+++ b/Source/core/fetch/ResourceFetcher.cpp
@@ -632,6 +632,9 @@ bool ResourceFetcher::resourceNeedsLoad(Resource* resource, const FetchRequest&
void ResourceFetcher::requestLoadStarted(Resource* resource, const FetchRequest& request, ResourceLoadStartType type)
{
+ if (type == ResourceLoadingFromCache)
+ notifyLoadedFromMemoryCache(resource);
+
if (request.resourceRequest().url().protocolIsData() || (m_documentLoader && m_documentLoader->substituteData().isValid()))
return;
@@ -685,7 +688,6 @@ ResourcePtr<Resource> ResourceFetcher::requestResource(Resource::Type type, Fetc
break;
case Use:
memoryCache()->updateForAccess(resource.get());
- notifyLoadedFromMemoryCache(resource.get());
break;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698