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

Unified Diff: third_party/WebKit/Source/core/fetch/FetchRequest.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/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 35fc57556031f3c80b3e72f88efc5eecf5d60555..5cf9ee5affa9c81a252b160160f2bbb186c939b9 100644
--- a/third_party/WebKit/Source/core/fetch/FetchRequest.h
+++ b/third_party/WebKit/Source/core/fetch/FetchRequest.h
@@ -125,6 +125,13 @@ class CORE_EXPORT FetchRequest {
m_options.parserDisposition = parserDisposition;
}
+ bool isCacheAwareLoadingEnabled() const {
+ return m_isCacheAwareLoadingEnabled;
+ }
+ void setIsCacheAwareLoadingEnabled(bool isCacheAwareLoadingEnabled) {
+ m_isCacheAwareLoadingEnabled = isCacheAwareLoadingEnabled;
+ }
+
void makeSynchronous();
PlaceholderImageRequestType placeholderImageRequestType() const {
@@ -149,6 +156,7 @@ class CORE_EXPORT FetchRequest {
ResourceWidth m_resourceWidth;
ClientHintsPreferences m_clientHintPreferences;
PlaceholderImageRequestType m_placeholderImageRequestType;
+ bool m_isCacheAwareLoadingEnabled;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698