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

Unified Diff: third_party/WebKit/public/platform/WebURLError.h

Issue 2390583002: [WIP] WebFonts cache-aware timeout adaption (Closed)
Patch Set: handle case in RemoteFontFaceSource if cache-aware deactivated in startLoad(), rebase 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/public/platform/WebURLError.h
diff --git a/third_party/WebKit/public/platform/WebURLError.h b/third_party/WebKit/public/platform/WebURLError.h
index 9fdbe756640b8983e9566e6af4714539d78d7ff5..bff08a70b147aa9b44f8c56e0856556b2ed45894 100644
--- a/third_party/WebKit/public/platform/WebURLError.h
+++ b/third_party/WebKit/public/platform/WebURLError.h
@@ -62,6 +62,10 @@ struct WebURLError {
// ignored (e.g. through shouldOverrideUrlLoading).
bool wasIgnoredByHandler;
+ // A flag showing whether this error is a disk cache miss by requesting to
+ // load only from cache (net::ERR_CACHE_MISS).
+ bool isCacheMiss;
+
// The url that failed to load.
WebURL unreachableURL;
@@ -72,7 +76,8 @@ struct WebURLError {
: reason(0),
staleCopyInCache(false),
isCancellation(false),
- wasIgnoredByHandler(false) {}
+ wasIgnoredByHandler(false),
+ isCacheMiss(false) {}
#if INSIDE_BLINK
BLINK_PLATFORM_EXPORT WebURLError(const ResourceError&);

Powered by Google App Engine
This is Rietveld 408576698