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

Unified Diff: third_party/WebKit/Source/platform/network/NetworkUtils.cpp

Issue 2390583002: [WIP] WebFonts cache-aware timeout adaption (Closed)
Patch Set: switchToSwapPeriod(), Inspector disable cache check workaround 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/platform/network/NetworkUtils.cpp
diff --git a/third_party/WebKit/Source/platform/network/NetworkUtils.cpp b/third_party/WebKit/Source/platform/network/NetworkUtils.cpp
index 2305b6a16800974cc35ded9000ef2ce01e482506..310be225ad979819a3e79b61337de47575d8950a 100644
--- a/third_party/WebKit/Source/platform/network/NetworkUtils.cpp
+++ b/third_party/WebKit/Source/platform/network/NetworkUtils.cpp
@@ -77,6 +77,14 @@ PassRefPtr<SharedBuffer> parseDataURL(const KURL& url,
return nullptr;
}
+int cacheMissErrorCode() {
+ return net::ERR_CACHE_MISS;
+}
+
+bool isCacheMissErrorCode(int code) {
+ return code == net::ERR_CACHE_MISS;
+}
+
} // NetworkUtils
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698