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

Unified Diff: third_party/WebKit/Source/platform/loader/fetch/FetchContext.h

Issue 2751143003: Move FrameFetchContext::dispatchDidLoadResourceFromMemoryCache logic into ResourceFetcher (Closed)
Patch Set: . Created 3 years, 9 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
Index: third_party/WebKit/Source/platform/loader/fetch/FetchContext.h
diff --git a/third_party/WebKit/Source/platform/loader/fetch/FetchContext.h b/third_party/WebKit/Source/platform/loader/fetch/FetchContext.h
index 5097526597e22da6b76283d3cdba239f38d917fa..5259613fb8671bab22983ba210503d540cff4837 100644
--- a/third_party/WebKit/Source/platform/loader/fetch/FetchContext.h
+++ b/third_party/WebKit/Source/platform/loader/fetch/FetchContext.h
@@ -56,6 +56,8 @@ enum class WebCachePolicy;
enum FetchResourceType { FetchMainResource, FetchSubresource };
+enum class ResourceLoadStartType { kNotFromMemoryCache, kFromMemoryCache };
Nate Chapin 2017/03/22 19:02:02 Nit: it's not really "LoadStart" for the kNotFromM
kinuko 2017/03/24 13:51:51 Good point, done.
+
// The FetchContext is an interface for performing context specific processing
// in response to events in the ResourceFetcher. The ResourceFetcher or its job
// class, ResourceLoader, may call the methods on a FetchContext.
@@ -96,16 +98,15 @@ class PLATFORM_EXPORT FetchContext
ResourceRequest&,
const ResourceResponse& redirectResponse,
const FetchInitiatorInfo& = FetchInitiatorInfo());
- virtual void dispatchDidLoadResourceFromMemoryCache(
- unsigned long identifier,
- Resource*,
- WebURLRequest::FrameType,
- WebURLRequest::RequestContext);
+ virtual void dispatchDidLoadResourceFromMemoryCache(unsigned long identifier,
+ const ResourceRequest&,
+ const ResourceResponse&);
virtual void dispatchDidReceiveResponse(unsigned long identifier,
const ResourceResponse&,
WebURLRequest::FrameType,
WebURLRequest::RequestContext,
- Resource*);
+ Resource*,
+ ResourceLoadStartType);
virtual void dispatchDidReceiveData(unsigned long identifier,
const char* data,
int dataLength);

Powered by Google App Engine
This is Rietveld 408576698