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

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

Issue 2390583002: [WIP] WebFonts cache-aware timeout adaption (Closed)
Patch Set: revise RemoteFontFaceSource cache-aware logic, fix 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/core/fetch/FetchRequest.h
diff --git a/third_party/WebKit/Source/core/fetch/FetchRequest.h b/third_party/WebKit/Source/core/fetch/FetchRequest.h
index 93c26cfddf0ab562714c1ca99c15779a4ac6a2b8..a09ac3633dfcde442a2f715a2b6a2477de96ceef 100644
--- a/third_party/WebKit/Source/core/fetch/FetchRequest.h
+++ b/third_party/WebKit/Source/core/fetch/FetchRequest.h
@@ -121,6 +121,13 @@ class CORE_EXPORT FetchRequest {
m_options.parserDisposition = parserDisposition;
}
+ bool isCacheAwareLoadingEnabled() const {
+ return m_isCacheAwareLoadingEnabled;
+ }
+ void setIsCacheAwareLoadingEnabled(bool isCacheAwareLoadingEnabled) {
+ m_isCacheAwareLoadingEnabled = isCacheAwareLoadingEnabled;
+ }
+
void makeSynchronous();
private:
@@ -132,6 +139,7 @@ class CORE_EXPORT FetchRequest {
double m_preloadDiscoveryTime;
DeferOption m_defer;
OriginRestriction m_originRestriction;
+ bool m_isCacheAwareLoadingEnabled;
ResourceWidth m_resourceWidth;
ClientHintsPreferences m_clientHintPreferences;
};

Powered by Google App Engine
This is Rietveld 408576698