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

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

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.cpp
diff --git a/third_party/WebKit/Source/core/fetch/FetchRequest.cpp b/third_party/WebKit/Source/core/fetch/FetchRequest.cpp
index eeb6ea61f2d5ab740a88079b670ad7b6adc196c2..e2c5a92fac712e8f100a1a635102ee6802e3bc13 100644
--- a/third_party/WebKit/Source/core/fetch/FetchRequest.cpp
+++ b/third_party/WebKit/Source/core/fetch/FetchRequest.cpp
@@ -42,7 +42,8 @@ FetchRequest::FetchRequest(const ResourceRequest& resourceRequest,
m_preloadDiscoveryTime(0.0),
m_defer(NoDefer),
m_originRestriction(UseDefaultOriginRestrictionForType),
- m_placeholderImageRequestType(DisallowPlaceholder) {
+ m_placeholderImageRequestType(DisallowPlaceholder),
+ m_isCacheAwareLoadingEnabled(false) {
m_options.initiatorInfo.name = initiator;
}
@@ -57,7 +58,8 @@ FetchRequest::FetchRequest(const ResourceRequest& resourceRequest,
m_defer(NoDefer),
m_originRestriction(UseDefaultOriginRestrictionForType),
m_placeholderImageRequestType(
- PlaceholderImageRequestType::DisallowPlaceholder) {
+ PlaceholderImageRequestType::DisallowPlaceholder),
+ m_isCacheAwareLoadingEnabled(false) {
m_options.initiatorInfo.name = initiator;
}
@@ -71,7 +73,8 @@ FetchRequest::FetchRequest(const ResourceRequest& resourceRequest,
m_defer(NoDefer),
m_originRestriction(UseDefaultOriginRestrictionForType),
m_placeholderImageRequestType(
- PlaceholderImageRequestType::DisallowPlaceholder) {
+ PlaceholderImageRequestType::DisallowPlaceholder),
+ m_isCacheAwareLoadingEnabled(false) {
m_options.initiatorInfo = initiator;
}

Powered by Google App Engine
This is Rietveld 408576698