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

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

Issue 2751143003: Move FrameFetchContext::dispatchDidLoadResourceFromMemoryCache logic into ResourceFetcher (Closed)
Patch Set: addressed comments 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/ResourceFetcher.h
diff --git a/third_party/WebKit/Source/platform/loader/fetch/ResourceFetcher.h b/third_party/WebKit/Source/platform/loader/fetch/ResourceFetcher.h
index 44e7dfe76d4ddb0cd3e32bcd38230352d0585083..04acf5f55076b54e32da9962081967ffea7b1b58 100644
--- a/third_party/WebKit/Source/platform/loader/fetch/ResourceFetcher.h
+++ b/third_party/WebKit/Source/platform/loader/fetch/ResourceFetcher.h
@@ -123,10 +123,6 @@ class PLATFORM_EXPORT ResourceFetcher
void handleLoaderError(Resource*, const ResourceError&);
bool isControlledByServiceWorker() const;
- enum ResourceLoadStartType {
- ResourceLoadingFromNetwork,
- ResourceLoadingFromCache
- };
static const ResourceLoaderOptions& defaultResourceOptions();
String getCacheIdentifier() const;
@@ -204,9 +200,13 @@ class PLATFORM_EXPORT ResourceFetcher
void requestLoadStarted(unsigned long identifier,
Resource*,
const FetchRequest&,
- ResourceLoadStartType,
+ RevalidationPolicy,
bool isStaticData = false);
+ void didLoadResourceFromMemoryCache(unsigned long identifier,
+ Resource*,
+ const ResourceRequest&);
+
bool resourceNeedsLoad(Resource*, const FetchRequest&, RevalidationPolicy);
void resourceTimingReportTimerFired(TimerBase*);

Powered by Google App Engine
This is Rietveld 408576698