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

Unified Diff: third_party/WebKit/Source/platform/network/ResourceRequest.h

Issue 2390583002: [WIP] WebFonts cache-aware timeout adaption (Closed)
Patch Set: check ERR_CACHE_MISS directly in ResourceError Created 4 years, 2 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/network/ResourceRequest.h
diff --git a/third_party/WebKit/Source/platform/network/ResourceRequest.h b/third_party/WebKit/Source/platform/network/ResourceRequest.h
index 85abacc726f61ff2cf0d64ba9f88a3b2450703a9..71744dcd9681ba78b27182ba29bd8d595115060d 100644
--- a/third_party/WebKit/Source/platform/network/ResourceRequest.h
+++ b/third_party/WebKit/Source/platform/network/ResourceRequest.h
@@ -308,6 +308,14 @@ class PLATFORM_EXPORT ResourceRequest final {
void setNavigationStartTime(double);
double navigationStartTime() const { return m_navigationStart; }
+ bool isCacheAwareLoadingActivated() const {
+ return m_isCacheAwareLoadingActivated;
+ }
+
+ static bool isCacheAwareLoadingSupported(WebCachePolicy);
+ void mayActivateCacheAwareLoading();
+ void deactivateCacheAwareLoading();
+
private:
void initialize(const KURL&);
@@ -349,6 +357,8 @@ class PLATFORM_EXPORT ResourceRequest final {
double m_uiStartTime;
bool m_isExternalRequest;
InputToLoadPerfMetricReportPolicy m_inputPerfMetricReportPolicy;
+ bool m_isCacheAwareLoadingActivated;
+ WebCachePolicy m_savedCachePolicy;
mutable CacheControlHeader m_cacheControlHeaderCache;
@@ -400,6 +410,8 @@ struct CrossThreadResourceRequestData {
double m_uiStartTime;
bool m_isExternalRequest;
InputToLoadPerfMetricReportPolicy m_inputPerfMetricReportPolicy;
+ bool m_isCacheAwareLoadingActivated;
+ WebCachePolicy m_savedCachePolicy;
ResourceRequest::RedirectStatus m_redirectStatus;
};

Powered by Google App Engine
This is Rietveld 408576698