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

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

Issue 2390583002: [WIP] WebFonts cache-aware timeout adaption (Closed)
Patch Set: 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 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;
};

Powered by Google App Engine
This is Rietveld 408576698