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; |
}; |