| 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 8682a497ea5430af68372f09f248e4434df41c3a..c3efd40fcbb5b9a05a40b7c515e7c4f7e1ad6f1f 100644
|
| --- a/third_party/WebKit/Source/platform/network/ResourceRequest.h
|
| +++ b/third_party/WebKit/Source/platform/network/ResourceRequest.h
|
| @@ -302,6 +302,21 @@ class PLATFORM_EXPORT ResourceRequest final {
|
| void setRedirectStatus(RedirectStatus status) { m_redirectStatus = status; }
|
| RedirectStatus redirectStatus() const { return m_redirectStatus; }
|
|
|
| + bool isCacheAwareLoadingEnabled() const {
|
| + return m_isCacheAwareLoadingEnabled;
|
| + }
|
| +
|
| + void setIsCacheAwareLoadingEnabled(bool isCacheAwareLoadingEnabled) {
|
| + m_isCacheAwareLoadingEnabled = isCacheAwareLoadingEnabled;
|
| + }
|
| +
|
| + bool isCacheAwareLoadingActivated() const {
|
| + return m_isCacheAwareLoadingActivated;
|
| + }
|
| +
|
| + void mayActivateCacheAwareLoading();
|
| + void deactivateCacheAwareLoading();
|
| +
|
| private:
|
| void initialize(const KURL&);
|
|
|
| @@ -343,6 +358,9 @@ class PLATFORM_EXPORT ResourceRequest final {
|
| double m_uiStartTime;
|
| bool m_isExternalRequest;
|
| InputToLoadPerfMetricReportPolicy m_inputPerfMetricReportPolicy;
|
| + bool m_isCacheAwareLoadingEnabled;
|
| + bool m_isCacheAwareLoadingActivated;
|
| + WebCachePolicy m_savedCachePolicy;
|
|
|
| mutable CacheControlHeader m_cacheControlHeaderCache;
|
|
|
| @@ -392,6 +410,9 @@ struct CrossThreadResourceRequestData {
|
| double m_uiStartTime;
|
| bool m_isExternalRequest;
|
| InputToLoadPerfMetricReportPolicy m_inputPerfMetricReportPolicy;
|
| + bool m_isCacheAwareLoadingEnabled;
|
| + bool m_isCacheAwareLoadingActivated;
|
| + WebCachePolicy m_savedCachePolicy;
|
| ResourceRequest::RedirectStatus m_redirectStatus;
|
| };
|
|
|
|
|