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

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

Issue 1615803004: Avoid double download for late discovered link preload resources. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Permit memcache removal when ResourceFetcher is destroyed Created 4 years, 11 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/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 2f5a2849a805912e2472570c5c9867700088c933..397c5a8fd781e4628a0418bd65824140bb0a28c1 100644
--- a/third_party/WebKit/Source/core/fetch/ResourceFetcher.h
+++ b/third_party/WebKit/Source/core/fetch/ResourceFetcher.h
@@ -93,8 +93,10 @@ public:
int requestCount() const;
+ enum ClearPreloadsType { ClearAllPreloads, ClearSpeculativeMarkupPreloads };
Nate Chapin 2016/01/21 19:07:14 ClearPreloadsPolicy?
Yoav Weiss 2016/01/21 20:34:09 yup
+
bool isPreloaded(const KURL&) const;
- void clearPreloads();
+ void clearPreloads(ClearPreloadsType = ClearAllPreloads);
Nate Chapin 2016/01/21 19:07:14 How many callsites are there for clearPreloads()?
Yoav Weiss 2016/01/21 20:34:09 Yeah, but the preFinalizer is taking this as a met
void preloadStarted(Resource*);
void printPreloadStats();

Powered by Google App Engine
This is Rietveld 408576698