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

Unified Diff: content/child/web_url_request_util.cc

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: content/child/web_url_request_util.cc
diff --git a/content/child/web_url_request_util.cc b/content/child/web_url_request_util.cc
index 777e9b7df85dc42580b60d2314c1a1d78a14788a..0abc0254e3d97f07bcc3dd154d0e5674b55355e5 100644
--- a/content/child/web_url_request_util.cc
+++ b/content/child/web_url_request_util.cc
@@ -487,6 +487,7 @@ blink::WebURLError CreateWebURLError(const blink::WebURL& unreachable_url,
error.reason = reason;
error.unreachableURL = unreachable_url;
error.staleCopyInCache = stale_copy_in_cache;
+ error.isCacheMiss = reason == net::ERR_CACHE_MISS;
kouhei (in TOK) 2016/10/20 10:43:07 Should this be moved to if branches below? Or woul
Shao-Chuan Lee 2016/10/21 04:35:02 It's required to set the field here since WebURLEr
kouhei (in TOK) 2016/10/21 05:08:42 Blink should not know about net::ERR_CACHE_MISS, b
Shao-Chuan Lee 2016/10/21 05:22:17 This method should be in third_party/WebKit/public
Shao-Chuan Lee 2016/10/21 06:52:03 Now having utility methods under blink::NetworkUti
if (reason == net::ERR_ABORTED) {
error.isCancellation = true;
} else if (reason == net::ERR_TEMPORARILY_THROTTLED) {

Powered by Google App Engine
This is Rietveld 408576698